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)

Dave234 04-28-2012 07:59 PM

That didn't work. It just added another one of those same "missing href" things...

coolankur49 04-29-2012 06:53 AM

Quote:

Originally Posted by Dave234 (Post 2324400)
That didn't work. It just added another one of those same "missing href" things...

Have you added that code in showthread template.

My method works perfectly.

Dave234 04-30-2012 12:51 AM

Yes, under the part of the code you said I should add it under. In the "SHOWTHREAD" template. I'm not sure why it's not working for me......

Angle4cor 05-04-2012 08:35 PM

Great mod, thanks. Now the comments are on the left, how to center them?

PS. Mark as installed and nominated!

Ok. Solved. Just add <center> tag at the beginning and the end of the code.

Angle4cor 05-05-2012 01:47 PM

Under the facebook comments I have some warning with "href" on it. How to fix that?

i156 05-07-2012 05:17 PM

Quote:

Originally Posted by Replicators (Post 2278721)
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 -->

Change APP ID with your app id on facebook, and change yourdomain.com with your domain, and also change data width to how wide you want it, along with color scheme to dark or light.

Works perfect. Thanks.

Dave234 05-09-2012 02:08 AM

Can you please just write out the instructions step by step, in plain English, for us who don't know anything about code to be able to do it?

Akyeame Kwame 05-16-2012 08:49 AM

Quote:

Originally Posted by ericgtr (Post 2010041)
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.

When I use this I get: Warning: this comments plugin is operating in compatibility mode, but has no posts yet. Consider specifying an explicit 'href' as suggested in the comments plugin documentation to take advantage of all plugin features.

Is there an update for this?

Gamelobby 05-21-2012 01:08 AM

Why does facebook app want a secure url for the canvas.?
And what if my site doesn't have one.?

Gamelobby 05-21-2012 02:33 AM

Also why does it choose a random image as the icon for each post.!?
It took a small fraction of an ad banner i have in the footer. lol

*edit*
Actually now thats all it puts for an image with each post is a fraction of an ad banner from my footer.!
Not even an option to have no image. This cant be the way it's meant to work. Why doesn't it grab an avatar or something.!?


All times are GMT. The time now is 08:13 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.01260 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (3)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