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 |
#92
|
|||
|
|||
Hi
I want to ask, the script works fine, it displays fine on peoples wall on facebook, but in VBULLETIN, different to how many people clicks on LIKE, it still displays , LIKE 1. Only 1 not acumulate, any help would be appreciated , thanks! |
#93
|
||||
|
||||
Quote:
Please click install. |
#94
|
||||
|
||||
tnx installed
|
#95
|
|||
|
|||
I have this installed and working fine for forum posts, but how do I go about adding it for CMS articles, blog posts, and albums/pictures?
|
#96
|
||||
|
||||
Quote:
For CMS, in vbcms_content_article_page add the code below this: Code:
{vb:raw comment_block} Code:
{vb:raw picturecomment_commentarea} |
#97
|
|||
|
|||
Thanks, I added this code:
<!-- Facebook Like --> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.npac.ca/2010/{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}&layout=button_count&show_f aces=false&width=450&action=like&color scheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px"></iframe> <!-- / Facebook Like --> in: vbcms_content_article_page after: <vb:if condition="$comment_block"> ... </vb:if> Example: http://npac.ca/2010/content.php/121-QA-with-Rod-MacIvor I click like, it shows up with the proper article title on my Facebook profile, however it links to the corresponding forum post for the article: http://www.npac.ca/2010/showthread.p...th-Rod-MacIvor The 'like' does appear in both the forum post and article though. How can I make it link straight back to the article? I'm not familiar with the {vb:link} stuff, so I don't really know what else to try instead. Thanks again for your help! |
#98
|
|||
|
|||
FYI, I had the error, and realized you need the trailing / on the end of the url.
Added that, worked liked a charm, this was in Postibit Legacy. |
#99
|
||||
|
||||
Awesome mod i will try it ..............
|
#100
|
|||
|
|||
Is possible to add like thanks button or same locations?
|
#101
|
|||
|
|||
I want code for button count 16x16
could you provide me code |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|