Jump to content

Addthis


peterpah

Recommended Posts

  • 2 weeks later...

Não da na mesma ta aqui o Código de 1 pagina onde coloco isso

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<meta property="fb:admins" content="{100003717226232}"/>
<head >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8_decode" />
   <link rel="stylesheet" href="zoom/thickbox.css" type="text/css" media="screen" />
   <link rel="Shortcut Icon" type="image/ico" href="images/riri.ico">
<link rel="icon" type="image/ico" href="images/riri.ico">
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
<?php
global $nome;  
$nome=$_GET['cond'];
include 'cont.php';   
$sql = mysql_query("SELECT * FROM anedota where id_anedota=$_GET[cond]");

    while($row = mysql_fetch_array($sql)) {



 echo"<title>".  $row['titulo']  ."</title>";
    }
 mysql_close($con);
 ?>
<link rel="stylesheet" type="text/css" href="css.css" title="Variant Light" media="screen,projection" />
<title>RirOnFire</title>
</head>
<script language="Javascript" src="gen_validatorv4.js" type="text/javascript" xml:space="preserve"></script>
<body>
<div id="heade">
<div id="title">
 <h1 align="center"><a href="index.php"><img src="images/logo.png" width="431" height="289"/></a></h1>
    </div>
</div>
<div id="topmenu">
<p>
 <strong class="hide">Main menu:</strong>
<?php include 'menu.php' ?>
</p>
   </p>
</div>
<div id="wrap"> 
<div id="sidebar">
    <?php include 'lateral.php' ?></div>


<div id="content">    <?php
   $con=$_GET['cond'];
   include 'cont.php';
 $sql = mysql_query("SELECT * FROM anedota where id_anedota=$_GET[cond] ");

    while($row = mysql_fetch_array($sql)) {
echo"<div class='post'>
 <h2>". $row['titulo'] ." </h2>
  <p>". $row['anedota'] . "</p>

  </p><h2></h2><table cellpadding='10' cellspacing='10' align=center'>
  <tr>
  <td  width='500'><!-- AddThis Button BEGIN -->
<div class='addthis_toolbox addthis_default_style addthis_32x32_style'>
<a class='addthis_button_preferred_1'></a>
<a class='addthis_button_preferred_2'></a>
<a class='addthis_button_preferred_3'></a>
<a class='addthis_button_preferred_4'></a>
<a class='addthis_button_compact'></a>
<a class='addthis_counter addthis_bubble_style'></a>
</div>
<script type='text/javascript'>var addthis_config = {'data_track_addressbar':true};</script>
<script type='text/javascript' src='http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-5001cebc40f4c93b'></script>
<!-- AddThis Button END --></td></tr></table>
  </div>";

    }
 mysql_close($con);
include 'comentariofb.php';
?>

</div>
</div>
</div>
<div id="footer">
<p align="center">Copyright © 2012   RirOnFire - Todos os direitos reservados</p>
</div>
</body>
</html>
Link to comment
Share on other sites

  • 3 weeks later...

Eles permitem-te indicar essa informação com propriedades do namespace deles:

<div class="addthis_toolbox addthis_default_style"
   addthis:url="$page_url"
   addthis:title="$page_title"
   addthis:description="$page_summary"

Deves adicionar o namespace à tag html:

<html xmlns:addthis="http://www.addthis.com/help/api-spec">

“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

-- Tony Hoare

Link to comment
Share on other sites

Epah, a minha intenção não era fazeres copy-paste. De facto eu não escrevi o código a olhar para o teu, apenas o escrevi para indicar que o addthis permite que tu definas as propriedades que pretendes. Tens é que adaptar o teu para aquilo que pretendes, adicionando as propriedades addthis:title e addthis:description e o namespace à tag html.

A div já tu a tens:

<div class='addthis_toolbox addthis_default_style addthis_32x32_style'>

“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

-- Tony Hoare

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.