View Full Version : facebook like button in all post
jskoh
05-14-2011, 11:15 AM
hi, is there any mod that does this? adding " like " button in every post in a thread.?
jskoh
05-15-2011, 07:33 PM
can anybody advisehow to make fb "like" button be on every post of a thread? meaning user can click on like button on a thread on 3rd post but does not include the 1st post?
BirdOPrey5
05-16-2011, 08:19 PM
<iframe src="http://www.facebook.com/plugins/like.php?app_id=158420884225410&href=$vboptions[bburl]/showthread.php?p=$post[postid]#$post[postid]&send=false&layout=standard&width=450&show_faces=t rue&action=like&colorscheme=light&font&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
This code should work for specific posts. Put it somewhere in your postbit/legacy template, wherever works for your needs.
jskoh
05-17-2011, 02:04 AM
i need the fb "like" button to be on every post. which mean. a fb user can like #3 alone exculde #2 and #1.
or he can only like #2 and not #1 and #3.
anybody?
BirdOPrey5
05-17-2011, 02:54 AM
:erm: Did you try what I posted? :confused:
jskoh
05-17-2011, 03:15 AM
i tried it.. i dont know why it seem like there some error alway.
it work for the 1st time. when i do a refesh, and i click again at any post, its showing that the whole thread was "like"
--------------- Added 1305605918 at 1305605918 ---------------
and sometime, when a "like" is click, 2 or 3 post will alway have the "like" together instead of the whole thread.
BirdOPrey5
05-17-2011, 09:46 AM
I see what you are saying but there is no way to do what you want to do. The code I have will "Like" a specific post, if someone follows the link on Facebook they will be brought to that specific post.
However, the "counts" will never work correctly because facebook counts by the URL... But you never would browse your forum by the URL of the specific post (showthread.php?p=XXX#XXX) but usually by threads (showthread,php?t=YYY)- so the like's won't be counted by facebook correctly.
Unfortunately there is no easy way of disabling the count as far as I know.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.