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 |
#182
|
|||
|
|||
Works great on the forum but can't get it to work on the CMS
|
#183
|
|||
|
|||
the number of likes a thread gets is going to dictate the next thread started on my site. BUT, i do not want to force people to connect to facebook to "like" something. So:
Is there any way to allow non facebook connected member to also "like" something? Thanks! |
#184
|
|||
|
|||
Quote:
hmmm, same here |
#185
|
|||
|
|||
Anyone know how to add this to appear above the Quick Reply box? I know the template is in Showthread, but I don't where to drop in the code to make it work. I am using 4.0.2 PL4.
Thanks. |
#186
|
|||
|
|||
Anyone?
|
#187
|
|||
|
|||
|
#188
|
||||
|
||||
This is great thanks!! I had just installed something just like this in one of my directories and I was just going to do this myself! Lucky I checked first I guess.
|
#189
|
|||
|
|||
Is there a way to get this working on the articles?
|
#190
|
|||
|
|||
This has to work with facebook? What If I dont wanyt my facebook having links to these posts/ Can't it just be for the forum?
|
#191
|
|||
|
|||
some problems though:
1. only users with facebook can 'Like' 2. like only appears on the first post of the thread 3. after i click the link in facebook after it was integrated, it came out like this No Topik specified. If you followed a valid link, please notify the administrator i checked the links, if i remove a character in this case '=', it'd work. or else can't. a lot of things you have to fix. meanwhile i have to uninstall the mod. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|