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 |
#12
|
|||
|
|||
Very cool little add-on, but will need to re-work it to work with vbSEO
installed+rating good job |
#13
|
|||
|
|||
i get an error =
Quote:
|
#14
|
|||
|
|||
|
#15
|
|||
|
|||
i agree 100 percent. with out the thread title of what you are liking its not descriptive enough to get people to visit.
|
#16
|
||||
|
||||
As it stands it will not work with 3.8 because the variable names have changed. I do not have a 3.x board to test on anymore.
|
#17
|
||||
|
||||
Quote:
Quote:
Code:
{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid} |
#18
|
|||
|
|||
If someone could supply the variable names to make this work on 3.8.X I'd really appreciate it.
|
#19
|
|||
|
|||
Even taking the stock "share" IFRAME from facebook, is giving me an error right now. Perhaps their system is overloaded?
|
#20
|
|||
|
|||
Using the code from the 2nd post mine looks like this with VBSEO installed. and I think it's a pretty cool mod.
Obviously I'm using Adsense so it makes more sence to have the like button beneath the title, but I've found no problems with VBSEO. One question, I have though is there a conditional, I can use to exclude certain forums? |
#21
|
||||
|
||||
If it has the red "error" upon clicking then it most likely means the URL path isn't setup correctly. I would double check it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|