The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add New Facebook "Like" button to your threads Details »» | |||||||||||||||||||||||||||||||||||
Add New Facebook "Like" button to your threads
Developer Last Online: Feb 2022
Please remember to click Mark as Installed if you use this modification.
Facebook has just launched their latest "Like" button to developers to use on any site. What this does is utilizes the Advertising module to add the "Like" button to the first post of each thread. Please see screenshots to get an idea. In your Admin CP go to Advertising > New Ad > Choose "Thread" from the dropdown and then select the first thread box. Give it a title (I called mine FB Like) leave "First Post Content" at default and paste in this code: HTML Code:
<!-- Facebook Like --> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}&layout=button_count&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:px"></iframe> <!-- / Facebook Like --> The VBSEO team has instructions on how to make this work for their product here http://www.vbseo.com/f2/facebook-lik...95/#post265997 =========================================== Option 2 (different from above, do not use together) will show at top, see screenshot #3 In Postbit (or legacy) find: Code:
{vb:raw ad_location.thread_first_post_content} Code:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')" <!-- Facebook Like --> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link thread, {vb:raw thread}}&layout=standard&show_faces=true&width=450&action=like&font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe> <!-- / Facebook Like --> </vb:if> ================================================= For those who have asked, here is the modification adds both the "Like" button and comments to a users profile https://vborg.vbsupport.ru/showthread.php?t=239424 ================================================= Additional locations to place this code: For CMS, in vbcms_content_article_page add the code below this: Code:
{vb:raw comment_block} Code:
{vb:raw picturecomment_commentarea} Download Now
Screenshots
Show Your Support
|
Comments |
#212
|
|||
|
|||
after latest vbb 4 update its broken again ><
|
#213
|
|||
|
|||
I just installed the latest vbulletin (upgrade from 4.1.1) and its working fine for me. I did the postbit_legacy edit way.
Mark |
#214
|
|||
|
|||
How can i change in my newsfeed that is does not show the page title for every like button i click but only the thread title + domain?
|
#215
|
|||
|
|||
the links .../forum/ & .../album/ take me to the album & forum instead of the thread & image?
it only works for .../content/ with the right title and post?! any idea on how to change the url? |
#216
|
|||
|
|||
Hi I have changed show_faces to false but it is still showing the little square images of peoples profile pictures, I don't want that to show.
|
#217
|
|||
|
|||
I still havent figured it out for album & threads. C'mon guys pls help!
The new like button also inserts a thumbnail image to your fb newsfeed which is great unless the like button takes you to your homepage instead of the image in the album. Pls heeeelp! |
#218
|
|||
|
|||
<div id="picturecontainer">
<!-- Facebook Like --> <iframe src="http://www.facebook.com/plugins/like.php?href=http://myttoos.com/community/album/{vb:raw page_url}&layout=standard&show_faces=true& amp;width=450&action=like& amp;font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe> <!-- / Facebook Like --> Is this the wrong URL i put in for fetching the album images thru clicking like? |
#219
|
|||
|
|||
Am i the only one that get "You must reduce the number of redirects for this URL" error after i click "Like" button?
Thread for example: http://www.root.co.il/threads/257957...D7%99%D7%9D%29 I just try to figure it out, so i tried to directly enter to the like.php and href to random thread. http://www.facebook.com/plugins/like...d.php?t=123456 (123456, just for example) but just got the same error. Any ideas? |
#220
|
||||
|
||||
Thank you! It works - Nominated MOTM
|
#221
|
|||
|
|||
Great mod! Just need some quick help.. in my forum my background is black... how can i make the writing that says
'Be the first of your friends to like this.' How can i change that to white rather then black? You can see an example here on my forum how the colours have matched well Speak soon Dan http://www.tabletennisdaily.co.uk/fo...of-each-member |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|