The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add Facebook comments to threads Details »» | |||||||||||||||||||||||||||
This modification will integrate Facebook comments directly into the posts, at the bottom of the page.
What is needed for this modification:
Once that is done it's time to add the code to the SHOWTHREAD template. Find: Code:
{vb:raw similarthreads} Code:
<!-- FB Comments --> <h4 class="threadinfohead"><span class="optiontitle">Facebook Comments</span></h4> <div id="thread_tags_list" class="thread_info_block"> <div class="inner_block"> <div id='tag_list_cell'> <script src="http://static.ak.connect.facebook.com/connect.php/en_US" type="text/javascript"></script><script type="text/javascript">FB.init("YOUR API KEY");</script><fb:comments> </fb:comments> </div> </div> </div> <!-- /FB Comments --> Screenshots
Show Your Support
|
4 благодарности(ей) от: | ||
andro140, iiioroh, Razta, Toorak Times |
Comments |
#102
|
||||
|
||||
Okay thanks Gemma.. Sorry for so many questions but here's another: How come the comments posted were disappearing ?
|
#103
|
|||
|
|||
Tagged for install, thank you.
|
#104
|
||||
|
||||
Ive got a dark theme.How do I change the color so the comments will show like white or something?right now you cant see the comment unless you high light it.
Also when I go to reply to a thread it just goes to the quick reply an i dunno why... The code Im using is; Code:
<!-- FB Comments --> <h2 class="blockhead" style="padding-top:5px;"><span class="optiontitle">Facebook Comments</span></h2> <div id="thread_tags_list" class="thread_info_block blockbody formcontrols floatcontainer"> <div class="blockrow floatcontainer"> <div id='tag_list_cell'> <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="http://*******8.com" num_posts="3" width="300"></fb:comments><br/> </div> </div> </div> <img src="clear.gif" height="10" /><br /> <!-- /FB Comments --> |
#105
|
||||
|
||||
Question: I'm getting this message below the comment box:
Quote:
|
#106
|
|||
|
|||
Same
|
#107
|
|||
|
|||
Why download link shows "No Files Uploaded." ?
I very interest your module, please check download link. |
#108
|
||||
|
||||
Quote:
Replacing your current code with something like this should work Code:
<!-- FB Comments --> <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/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <h2 class="blockhead" style="padding-top:5px;"><span class="optiontitle">Facebook Comments</span></h2> <div id="thread_tags_list" class="thread_info_block blockbody formcontrols floatcontainer"> <div class="blockrow floatcontainer"> <div id='tag_list_cell'> <fb:comments <link rel="canonical" href="{vb:raw thread_url}" num_posts="5" width="500"></fb:comments> </div> </div> </div> <img src="clear.gif" height="10" /><br /> <!-- /FB Comments --> |
#109
|
|||
|
|||
Hi Gemma,
When i updated SHOWTHREA with the above codes it shows me this message now. Can u check. Thanks in advance |
#110
|
||||
|
||||
Hey K!ng, try this
Code:
<!-- FB Comments --> <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/all.js#xfbml=1&appId=APP ID"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <h2 class="blockhead" style="padding-top:5px;"><b><span class="optiontitle">Facebook Comments</span></b></h2> <div id="thread_tags_list" class="thread_info_block blockbody formcontrols floatcontainer"> <div class="blockrow floatcontainer"> <div id='tag_list_cell'> <center><div class="fb-comments" data-href="http://www.yourdomain.com/{vb:raw thread_url}" data-num-posts="2" data-width="800" data-colorscheme="dark"></div></center> </div> </div> </div> <img src="clear.gif" height="10" /><br /> <!-- /FB Comments --> |
Благодарность от: | ||
Akyeame Kwame |
#111
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|