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 |
#162
|
||||
|
||||
Works great! Thank you
|
#163
|
|||
|
|||
It works but doesn't seem to show on facebook.
|
#164
|
|||
|
|||
I've only been able to get it to show up on my personal page, it doesn't show in the newsfeed nor relates the actual website name.
Believe it has to do with the facebook connect and the new opengraph they got goin on, they don't talk quite right. Theres certain tags missing in headers that have to be added. |
#165
|
|||
|
|||
So I got the button to work, but why doesn't it show up on my Facebook wall when I like a thread? (like in picture #2)
|
#166
|
|||
|
|||
Quote:
try this code in the postbit/_legacy Template btw. use the vb ad system for this. HTML Code:
<a name="fb_share" type="button_count" share_url="{vb:raw $vboptions[bburl]}/{vb:link thread, {vb:raw thread}}" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> |
#167
|
|||
|
|||
Quote:
Yeah, it is not showing in my recent activities on my profile which this mod is supposed to be able to do that if you look at the second image. |
#168
|
|||
|
|||
Thank you! Thank you! Thank you!!!
Installed and rated. |
#169
|
||||
|
||||
Would it be possible to only show the Like button on threads with a certain prefix?
For instance, we've got a "Trip Report" prefix that works very well with the Like button. But it also shows on every other type of thread on the forum which is kind of a wasted space, such as questions about a trail or a shoe... I see how it can be limited to certain forums, but we post "Trip Reports" in most of the forums, as well as general questions and discussion. |
#170
|
|||
|
|||
Perhaps with a specially condition
PHP Code:
PHP Code:
read also http://www.vbulletin.com/forum/entry...d-the-Facebook... |
#171
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|