vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=241011

Add New Facebook "Like" button to your threads
by ericgtr
22 Apr 2010 16:50

4 Attachment(s)
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Be sure to change YOURSITE.com to your URL including your forum.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add this after:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For additional information on this button and different parameters please visit http://developers.facebook.com/docs/...e/plugins/like

=================================================

For those who have asked, here is the modification adds both the "Like" button and comments to a users profile http://www.vbulletin.org/forum/showthread.php?t=239424

=================================================
Additional locations to place this code:

For CMS, in vbcms_content_article_page add the code below this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For pictures, in template album_pictureview add the code below this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For Blog, in template blog_show_entry add at the very top.

saviola8x 22 Apr 2010 17:17

1 Attachment(s)
Fix with me ! Demo : http://s2facebook.com/forum/showthread.php?854

Open Postbit temp search

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add below :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Done.

pjdaley 22 Apr 2010 17:29

I also get "error"

The page at http://mysitehere.net/showthread.php?t could not be reached.

Also it seems not to work with VBSeo

Doctor Death 22 Apr 2010 17:38

Would be great to have a dislike button as well.

Can it also be tagged to each post in a thread or can it only deal with first post?

saviola8x 22 Apr 2010 17:50

Quote:

Originally Posted by Doctor Death (Post 2025445)
Can it also be tagged to each post in a thread or can it only deal with first post?

Wherever you want. :up:

trackpads 22 Apr 2010 18:35

I changed the width to =50 so that it didnt push the content around

trackpads 22 Apr 2010 18:35

Suggestion: Can you create a hack like this so users can like members profiles?

ericgtr 22 Apr 2010 18:49

To anyone getting a submit error, be sure your URL is correct. Also, I have not tested with vbseo and it will most likely need to be re-worked for that.

@trackpads I will look into that, I'm sure the parameters will have to be modified for that page.

PixelFx 22 Apr 2010 18:54

looks like sweet addon thanks :D

wacnstac 22 Apr 2010 19:21

Can this also be used with 3.8.X?

pjdaley 22 Apr 2010 19:26

Very cool little add-on, but will need to re-work it to work with vbSEO

installed+rating good job :)

dirtycrow 22 Apr 2010 19:45

i get an error =

Quote:

The page at http://%5BB%5Dhttp//forums.orderofth...pe-cod-edition could not be reached.

dirtycrow 22 Apr 2010 19:47

Quote:

Originally Posted by dirtycrow (Post 2025500)
i get an error =

nvm, i think i got it to work.

dirtycrow 22 Apr 2010 19:49

Quote:

Originally Posted by pjdaley (Post 2025497)
Very cool little add-on, but will need to re-work it to work with vbSEO

installed+rating good job :)

i agree 100 percent. with out the thread title of what you are liking its not descriptive enough to get people to visit.

ericgtr 22 Apr 2010 19:49

Quote:

Originally Posted by wacnstac (Post 2025494)
Can this also be used with 3.8.X?

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.


All times are GMT. The time now is 19:33.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.