Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 690

[Tutorial] Adding a Facebook Comment Box

$
0
0
1- Admin Cp - Themes & Styles - Showthread Templates  - showthread_quickreply Find 

Add Below

Code:
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong><i class="fa fa-comment"></i> Facebook Commentators </strong>
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['unique_id']}.png" id="unique_id_img" class="expander" alt="[-]" title="[-]" /></div>
</td>
</tr>
<tbody style="{$collapsed['unique_id_e']}" id="unique_id_e">
<tr>
<td class="trow1"> <div class="fb-comments" data-href="http://Forumname.com/newreply.php?tid={$tid}&amp;processed=1" data-width="100%" data-numposts="5"data-colorscheme= "light"></div>
</td>
</tr>
</tbody>
</table>

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8&appId=1283325171732526";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

2- Add your own site address instead of Forumname.com

<div class="fb-comments" data-href="http://Forumname.com/newreply.php?tid={$tid}&amp;processed=1" data-width="100%" data-numposts="5"data-colorscheme= "light"></div>

Wiew

[Image: 1VB74p.png]

Viewing all articles
Browse latest Browse all 690

Trending Articles