vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Add Facebook "Like" button to your threads [vB 3.8.x] (https://vborg.vbsupport.ru/showthread.php?t=241053)

wacnstac 04-24-2010 02:22 AM

Quote:

Also how does it work..!?
Any way that i can "like" things from my FB group or company page, instead of my personal profile.?
That would be very cool, but I don't think it's possible right now.

Brandon Sheley 04-24-2010 04:27 AM

Very cool mod, thanks so much
it works exactly how it should :)
I'm going to play with the placement a little, but here is a "Like" demo if you want to check it out.

Geek Specialtie 04-24-2010 05:58 PM

Looks like a missing closing quote for src tag.

original
Code:

<iframe src="http://www.facebook.com/widgets/like.php?href=http://www.YOURSITE.com/showthread.php$session[sessionurl]?p=$post[postid]&amp;show_faces=false&amp
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:25px"></iframe>


closing quote added
Code:

<iframe src="http://www.facebook.com/widgets/like.php?href=http://www.YOURSITE.com/showthread.php$session[sessionurl]?p=$post[postid]&amp;show_faces=false&amp"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:25px"></iframe>

I haven't tried this yet but seems some browsers may have an issue with this.

Uberguilds 04-24-2010 06:20 PM

The button on every single post lags out my website in certain browsers/platforms. Had to take it down =/

hubie 04-24-2010 06:44 PM

Quote:

Originally Posted by Gamelobby (Post 2026266)
This is very cool, but it doesn't seem to work with "Chief 1st post"..?
Any ideas.?

You have to add the code manually in Chief 1st post templates to get it work.

Also how does it work..!?
Any way that i can "like" things from my FB group or company page, instead of my personal profile.?
I would like to know the same.

Quote:

Originally Posted by Loco.M (Post 2026316)
Very cool mod, thanks so much
it works exactly how it should :)
I'm going to play with the placement a little, but here is a "Like" demo if you want to check it out.

Great! but testing whit your demo i've noted that when i like the post and then go to my fb page the wall title shows the root of your forums and no the single post in particular. Maybe a miss of code there.

Quote:

Originally Posted by Geek Specialtie (Post 2026626)
Looks like a missing closing quote for src tag.

Thanks, i'll check and fix.

Quote:

Originally Posted by Uberguilds (Post 2026636)
The button on every single post lags out my website in certain browsers/platforms. Had to take it down =/

You must add the conditional "<if...>" (at first post of this thread) if don't want the button on every single post.

cdoyle 04-24-2010 11:52 PM

I'm going to add this to my site, just had a question on the demo.
I'm looking at it right now, and it only says 1 for the count (was 0 before I clicked it), is that right?

After so many from here trying it out, I would think it would be higher than that

hubie 04-25-2010 01:36 AM

Quote:

Originally Posted by cdoyle (Post 2026785)
I'm going to add this to my site, just had a question on the demo.
I'm looking at it right now, and it only says 1 for the count (was 0 before I clicked it), is that right?

After so many from here trying it out, I would think it would be higher than that

Yes you're right. i've replaced the button and the count is still at 0. Not sure if the problem is related with facebook, please give me feedback about it.

cdoyle 04-25-2010 01:46 AM

Quote:

Originally Posted by hubie (Post 2026202)
Put this code:
Code:

<if condition="$post[postcount] == 1 AND in_array($GLOBALS[forumid], array(X,Y,Z))">Your Code</if>
Where in X,Y,Z you have to put the forum IDs you want the button appear, and in the forum ID not especified the button won?t appear.

Just wanted to add, that I modified this IF a little, to make it so you only need to enter the forums you want to exclude
PHP Code:

<if condition="$post[postcount] == 1 AND !in_array($GLOBALS[forumid], array(c, j))"

Just enter the forums you want excluded, and these forums won't show the button and the rest will.

cdoyle 04-25-2010 12:23 PM

Quote:

Originally Posted by hubie (Post 2026812)
Yes you're right. i've replaced the button and the count is still at 0. Not sure if the problem is related with facebook, please give me feedback about it.

I just took another look at the demo, and right now it's only showing that I clicked the button.
I'm assuming that you clicked it too right?

I think I'm seeing the same thing on my forum, but I'm waiting for members to reply back if they clicked it in the test post.

I think it's a problem on Facebooks side, I've tried adding the like button to my RPG game. So far I only have 1 click there too, even though some have said they clicked it.

It also doesn't help that the facebook developer forums have been down all weekend too.

cdoyle 04-27-2010 02:18 AM

Has anyone else had any luck with the like button?
It seems for me, at least when I look at it. It only shows when I click on it, and doesn't give a total count of how many have clicked it.

Just like the demo, it only shows that I clicked on it and nobody else.

That can't be right can it?


All times are GMT. The time now is 06:56 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.01537 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_php_printable
  • (8)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