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)

K!nG 12-31-2011 04:31 AM

Quote:

Originally Posted by MrBig (Post 2282445)
How can i change the width to match the thread?


Find this and u can change the width here.


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

AddwireCom 01-04-2012 04:35 AM

Quote:

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.
I get this, and nothing updates on FB, and this seems to be a global wide comment on all threads.

AddwireCom 01-04-2012 04:46 AM

Ok everything works, i used the info from this post: https://vborg.vbsupport.ru/showpost....&postcount=111 and it works like a charm. Thanks guys!

hyperviperx99 01-04-2012 06:15 AM

I really want to add Facebook comments on my CMS articles. Please let me know how to do it. I beg you PLEASE...let me know if you know any way to do this right.

Popa Andrei 01-08-2012 09:57 PM

doesent work on vb 4.1.9

fatdr 01-14-2012 09:17 PM

i only see the title "facebook comments" there is not any field for write a post

whats the problem? my version 4.1.2

djscoop 01-16-2012 07:24 PM

Quote:

Originally Posted by fatdr (Post 2287858)
i only see the title "facebook comments" there is not any field for write a post

whats the problem? my version 4.1.2

Same issue - uninstalled

Pvtiste 01-24-2012 02:56 AM

If you don't want to show the facebook comments anywhere (in order to avoid killing the contents of your forum), here a little code to put before:

PHP Code:

<vb:if condition="in_array($threadinfo['forumid'], array(xx,yy,zz))">
facebook comment code here
</vb:if> 

where xx, yy, zz are the forumID

dang3rzon3 01-27-2012 02:14 PM

how to insert in cms article?

baghdad4ever 01-29-2012 08:46 AM

thanks

why when i choose install this will pop?

You do not have permission to perform this action

blueperspective 02-18-2012 11:03 PM

Nice. Installed it on vB 4.1.10 and it's working!
Thanks for all your help, especially to Replicators.

deverill2010 02-19-2012 08:30 AM

Do you know what would be really great, if comments on Facebook we're posted as individual posts within a thread.

I share a lot of my threads on facebook and often people comment on Facebook rather than my site. I dream for comments being intergrated properly within a thread so it just looks like part of a thread.

Toorak Times 02-19-2012 01:28 PM

Thanks for this, installed, think I get it right, once I figure it out I'll give you some support mate, great stuff!!!

BF777 03-20-2012 08:35 PM

Quote:

Originally Posted by ericgtr (Post 2013062)
You only upload the xd_receiver.htm to your server, no edits of it at all. I would also be sure that your path to that file is correct where it says "<path from web root>/xd_receiver.htm"). So it would be something like "/home/site/public_html/forum/xd_receiver.htm")

Where does one find the xd_receive.htm file and what exactly is it supposed to do?

Dave234 03-31-2012 07:17 PM

All I see when I click your link (from above)

QUOTE
What is needed for this modification:
•A standard facebook account.
•A facebook application, anyone can set one up and it's simple http://www.facebook.com/developers/createapp.php
UNQUOTE

is "Apps" and to the right of that, a button that says "Create New App"

Nothing happens when I click on the "Apps".

I don't get it.....

Dave234 04-02-2012 03:53 AM

Please, can someone tell me how to get this modification?? When I click the link it goes to facebook but it doesn't show any apps to upload.

Dave234 04-02-2012 11:37 PM

Oh, wait, I think I got it.

Dave234 04-02-2012 11:39 PM

Where is the "SHOWTHREAD TEMPLATE"?

Dave234 04-02-2012 11:46 PM

Is it this???:

Customize Template: showthread-ie.css

I went into Admincp -> Styles & Templates -> Search in Templates -> in the "Search for Text" box I put "showthread")

Then what appears is a long list. There is a "CSS Templates" with two items beneath it ("showthread-ie.css" and "showthread.css") If I click on each of them I am taken to a different box with code in it. Which one do I choose?

Dave234 04-02-2012 11:48 PM

I don't see this "{vb:raw similarthreads}" in either of them, though. So does that mean it is neither of them?

Dave234 04-02-2012 11:53 PM

It didn't work.

Dave234 04-02-2012 11:58 PM

There is a note at the bottom of my forum that now says "The comments plugin requires an href parameter." and it's flashing.

Also, how can I get the facebook comments thing onto the main pages, like the news sections and the blogs?

David_R 04-03-2012 06:14 AM

I am unable to get the facebook APP ID. I have already created a page for my website on facebook but I am unable to find a api key for the same.

Dave234 04-03-2012 11:03 AM

Do "Create App".

I believe you actually create the app, if I'm not mistaken.

But the integration into the code is the part that stumps me. It just isn't 100% integrating once it's in there (please see my posts right above)

Dave234 04-05-2012 12:05 PM

Can anyone help with this??? Got a couple people here who really want to add this feature to our website, but it doesn't seem to work for us.

Dave234 04-12-2012 06:47 PM

How do we do this? It's not working for me.

Dave234 04-21-2012 09:27 PM

At the bottom it is saying: "The comments plugin requires an href parameter." and it is constantly trying to load, but nothing loads. Can someone please help??

K!nG 04-23-2012 01:11 AM

with 4.1.12 its not working... showing 2 iframe boxed in threads randomly ... i had it installed but removed because of these iframe boxes.

Dave234 04-26-2012 12:34 AM

Is it also not working for 4.1.11? Is this why I'm seeing the "The comment plugin requires an href parameter" and an icon next to it that is trying to load something? (But nothing happens)?

coolankur49 04-28-2012 08:35 AM

Well, people who are experiencing difficulties can use my method,

open showthread.php and search for this code

Code:

<vb:if condition="!is_browser('ie') AND $show['wysiwyg']">
        <!-- Mozilla work around for focusing on QR in WYSIWYG mode -->
        <div id="qr_scroll"></div>
</vb:if>
</form>

Add this below it and save.

Code:

<div class="fb-comments" data-href="http://www.helpline3d.com/showthread.php?t={vb:raw threadid}" data-num-posts="5" data-width="960"></div>
change helpline3d.com to your domain

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 04:07 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.01449 seconds
  • Memory Usage 1,821KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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