vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Add Facebook comments to threads (https://vborg.vbsupport.ru/showthread.php?t=239023)

ericgtr 03-23-2010 10:00 PM

Add Facebook comments to threads
 
1 Attachment(s)
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}
Add this above:
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 -->

Be sure to add your API key.

Kolbi 03-24-2010 05:14 PM

Nice. Tagged.

Juggernaut 03-24-2010 09:30 PM

Tagged :D

TNCclubman 03-24-2010 09:44 PM

Holy shit! MOTM!

Can you add facebook comments to the photos as well??

ericgtr 03-24-2010 10:44 PM

Quote:

Originally Posted by TNCclubman (Post 2009664)
Holy shit! MOTM!

Can you add facebook comments to the photos as well??

Thanks, please click install if you use it.:)

I have added it as a new tab in the profile page and have also added it below the comments section of the vbcms articles as well. Once you've setup the application you can pretty much use that code anywhere on your site.

Barakat 03-25-2010 05:04 AM

thanks a lottttttt

works fine ..

Jabong82 03-25-2010 06:10 AM

Great mod installed and 5 stars!

One question though, is there a way to shrink the width of the comment area? There seems to be a lot of empty space.

Thanks again.

ericgtr 03-25-2010 01:10 PM

Quote:

Originally Posted by Jabong82 (Post 2009843)
Great mod installed and 5 stars!

One question though, is there a way to shrink the width of the comment area? There seems to be a lot of empty space.

Thanks again.

I don't see a way right off but have a look here for the documentation on the script http://wiki.developers.facebook.com/...p/Comments_Box it doesn't look like there are a whole lot of options that way unfortunately.

ericgtr 03-25-2010 01:47 PM

Quote:

Originally Posted by ericgtr (Post 2009705)
Thanks, please click install if you use it.:)

I have added it as a new tab in the profile page and have also added it below the comments section of the vbcms articles as well. Once you've setup the application you can pretty much use that code anywhere on your site.

I dug this up, it's pretty easy.

Open album_pictureview template and find:
Code:

{vb:raw footer}
Add this above:
Code:

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<fb:comments></fb:comments>
<script type="text/javascript"> FB.init("YOUR_API_KEY_HERE", "<path from web root>/xd_receiver.htm"); </script>

Remember the api key and path need to be added as well.

malas2007 03-26-2010 12:26 AM

where is the cross-domain communication file (xd_receiver.htm)???


All times are GMT. The time now is 03:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01118 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete