[Dica] - Adicionar comentários Facebook para seu primeiro poste

Started by candidosa2, 16 de July de 2011, 00:55

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

Go Down

candidosa2

Para SMF série 2.0 só!

Themes/default/index.template.php

Pesquisar
Code Select
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />

Adicionar antes
Code Select
        <meta property="fb:admins" content="YOUR FACEBOOK USER ID NUMBER GOES HERE"/>


Ponha o seu facebook NÚMERO DE ID  DO UTILIZADOR  AQUI com o seu facebook.

Themes/default/Display.template.php

Pesquisar
Code Select
// Maybe they want to report this post to the moderator(s)?

Adicionar antes
Code Select
//Facebook Comments
    if ($message['id'] == $context['topic_first_message'])
echo'
               <br /><br />
<div id="fb-root"></div><div align="left"><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&amp;xfbml=1"></script><fb:comments href=', $scripturl, '?topic=', $context['current_topic'], ' num_posts="2" width="500"></fb:comments></div>';
//Facebook Comments

Go Up