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)

fatdr 09-07-2011 08:05 AM

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?

Gemma 09-07-2011 08:25 AM

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 -->


hanhdn 09-07-2011 02:36 PM

Quote:

Originally Posted by fatdr (Post 2176167)
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:rolleyes:

Amr-Director 09-10-2011 10:09 PM

thanks alot >

hanhdn 09-13-2011 10:44 AM

<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 ;)

dertoon 09-23-2011 05:06 AM

very good thank you
it work fine

Ryan McBain 09-30-2011 03:20 AM

Quote:

Originally Posted by Gemma (Post 2242922)
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?

K!nG 10-02-2011 01:19 PM

Quote:

Originally Posted by Gemma (Post 2242922)
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 :)

Gemma 10-03-2011 11:57 AM

Quote:

Originally Posted by Ryan McBain (Post 2251486)
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 :)

Donavaz 10-04-2011 05:33 AM

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?


All times are GMT. The time now is 02:23 AM.

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.01210 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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