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 |
#192
|
||||
|
||||
Same problem here.
|
#193
|
||||
|
||||
Nice. Thanks
|
#194
|
|||
|
|||
it has stopped working for me the last two days, no click at all, the behavior started after i updated my user ranks! any ideas what could be wrong?
|
#195
|
|||
|
|||
Forgive me if this was already addressed; I didn't get anything when I searched.
Using method #1, is there a way to reduce the size of the margin it creates on the right side of the post? Thanks. |
#196
|
|||
|
|||
Quote:
Neither can I make it appear on a CMS Article. In the threads, it all works fine. Should the procedure over here be used? Or only what's mentioned on the vBSEO site? (we're running vBseo) Should I do both things? What's mentioned here, and then what's mentioned over in vBSEO.com? I'm at a loss... not sure what I'm doing wrong. Any help is much appreciated. Thanks. |
#197
|
|||
|
|||
Beautiful! Thanks for this!
|
#198
|
||||
|
||||
I am currently running on vb 4.06 and have the facebook connect enabled and set up. I just HATE the location of the ("Like" Be the first of your friends to like this), which is above the first post on the page and off to the right.
I would really like it to be like in the example #3. How would you suggest I do this? |
#199
|
|||
|
|||
At the bottom of posts would be an excellent location. (It's at that point that a user will know if they actually like what they just finished reading.)
|
#200
|
|||
|
|||
A couple of things:
1) Instead of it being per thread, can there be a like button per post? 2) My site is in this format: www.DOMAIN.com/forums/showthread... For some reason, when I put href=http://www.DOMAIN.com/forums/{vb:link thread, {vb:raw thread}}, it doesn't work and I get an error in the FB link. The keyword "forums" is missing from the URL and it incorrectly looks like this: http://www.DOMAIN.com/showthread... If I put anything else except "forums", like "forum", then the URL with that word shows up. Any ideas on why my URL wouldn't be properly generated? TIA! |
#201
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|