Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Add Facebook comments to threads Details »»
Add Facebook comments to threads
Version: 1.00, by ericgtr ericgtr is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.2 Rating:
Released: 03-23-2010 Last Update: 03-29-2010 Installs: 133
Template Edits
 
No support by the author.

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.

Screenshots

File Type: jpg screen.JPG (53.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
andro140, iiioroh, Razta, Toorak Times

Comments
  #72  
Old 09-07-2011, 08:05 AM
fatdr fatdr is offline
 
Join Date: Nov 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it doesn't work for 4.1.2,

and also facebook changed developer page, i see only API ID and secret key, there is no API KEY !

anyone has a solution?
Reply With Quote
  #73  
Old 09-07-2011, 08:25 AM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use this code and change the 2 APP_ID parts to your own Facebook Application ID

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'>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&amp;xfbml=1"></script><fb:comments expr:xid="APP_ID" simple="1" num_posts="10" width="500" publish_feed="true"></fb:comments><br/>
            </div>
        </div>
    </div>
    <!-- /FB Comments -->
Reply With Quote
  #74  
Old 09-07-2011, 02:36 PM
hanhdn hanhdn is offline
 
Join Date: Aug 2011
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fatdr View Post
First http://developers.facebook.com/docs/...gins/comments/ you must fill in the blanks
"url to comment on" is your facebook page

get the code

go to vbulletin admin panel

search in themes " postbit_legacy"

Find
Code:
{vb:raw template_hook.postbit_end}

add this above
Code:
<vb:if condition="$post[postcount] == 1">
YOUR FACEBOOK COMMENT CODE</vb:if>
it works thanks
Reply With Quote
  #75  
Old 09-10-2011, 10:09 PM
Amr-Director Amr-Director is offline
 
Join Date: Nov 2009
Location: egypt
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks alot >
Reply With Quote
  #76  
Old 09-13-2011, 10:44 AM
hanhdn hanhdn is offline
 
Join Date: Aug 2011
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="your website" num_posts="3" width="300"></fb:comments>

Add this code and change to your website address
Reply With Quote
  #77  
Old 09-23-2011, 05:06 AM
dertoon dertoon is offline
 
Join Date: Sep 2011
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very good thank you
it work fine
Reply With Quote
  #78  
Old 09-30-2011, 03:20 AM
Ryan McBain's Avatar
Ryan McBain Ryan McBain is offline
 
Join Date: Feb 2002
Location: Earth
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gemma View Post
Use this code and change the 2 APP_ID parts to your own Facebook Application ID

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'>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&amp;xfbml=1"></script><fb:comments expr:xid="APP_ID" simple="1" num_posts="10" width="500" publish_feed="true"></fb:comments><br/>
            </div>
        </div>
    </div>
    <!-- /FB Comments -->
That works for me, but it never works when someone posts a youtube video. Do you know why that is?
Reply With Quote
  #79  
Old 10-02-2011, 01:19 PM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gemma View Post
Use this code and change the 2 APP_ID parts to your own Facebook Application ID

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'>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&amp;xfbml=1"></script><fb:comments expr:xid="APP_ID" simple="1" num_posts="10" width="500" publish_feed="true"></fb:comments><br/>
            </div>
        </div>
    </div>
    <!-- /FB Comments -->

Thanks this worked just fi9 for me and when i had the original coding i had a problem on my forum that i wasn't able to edit any threads/posts but when i put this coding everything started working again. So Thanks once again
Reply With Quote
  #80  
Old 10-03-2011, 11:57 AM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ryan McBain View Post
That works for me, but it never works when someone posts a youtube video. Do you know why that is?
No idea, sorry. I don't use this modification - I just used that comments code with one of my v3 Arcade modifications and knew it worked and thought I'd share because the original code had changed
Reply With Quote
  #81  
Old 10-04-2011, 05:33 AM
Donavaz Donavaz is offline
 
Join Date: Jun 2009
Location: IRAN
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its very good.

can u do any work that we post a coment for post like this ? not for facebook.

i want send a small coment for some post like this.but it be in my forum.

do u enderstand?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10642 seconds
  • Memory Usage 2,338KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete