Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Add New Facebook "Like" button to your threads Details »
Add New Facebook "Like" button to your threads
Mod Version: 1.2, by ericgtr (Coder/Designer) ericgtr is offline
Developer Last Online: Jun 2016 I like it Show Printable Version Email this Page

vB Version: 4.0.2 Rating: (32 votes - 4.84 average) Installs: 326
Released: 22 Apr 2010 Last Update: 22 Apr 2010 Downloads: 1039
Not Supported Re-usable Code  

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.

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Screenshots

Click image for larger version

Name:	fb_like.JPG
Views:	8463
Size:	89.7 KB
ID:	116172   Click image for larger version

Name:	fb_like2.JPG
Views:	4367
Size:	11.7 KB
ID:	116173   Click image for larger version

Name:	fb_like3.JPG
Views:	8305
Size:	41.0 KB
ID:	116182  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 22 Apr 2010, 16:17
saviola8x's Avatar
saviola8x saviola8x is offline
 
Join Date: May 2006
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.
Attached Images
File Type: jpg 67676776.jpg (90.7 KB, 1501 views)
__________________
Facebook Vietnam

Last edited by saviola8x; 22 Apr 2010 at 16:42.
Reply With Quote
  #3  
Old 22 Apr 2010, 16:29
pjdaley's Avatar
pjdaley pjdaley is offline
 
Join Date: Feb 2004
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
__________________

Reply With Quote
  #4  
Old 22 Apr 2010, 16:38
Doctor Death Doctor Death is offline
 
Join Date: Jan 2006
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?

Last edited by Doctor Death; 22 Apr 2010 at 16:44.
Reply With Quote
  #5  
Old 22 Apr 2010, 16:50
saviola8x's Avatar
saviola8x saviola8x is offline
 
Join Date: May 2006
Originally Posted by Doctor Death View Post
Can it also be tagged to each post in a thread or can it only deal with first post?
Wherever you want.
__________________
Facebook Vietnam
Reply With Quote
  #6  
Old 22 Apr 2010, 17:35
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Real name: Jason
I changed the width to =50 so that it didnt push the content around
Reply With Quote
  #7  
Old 22 Apr 2010, 17:35
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Real name: Jason
Suggestion: Can you create a hack like this so users can like members profiles?
Reply With Quote
  #8  
Old 22 Apr 2010, 17:49
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
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.
Reply With Quote
  #9  
Old 22 Apr 2010, 17:54
PixelFx PixelFx is offline
 
Join Date: Dec 2002
looks like sweet addon thanks
Reply With Quote
  #10  
Old 22 Apr 2010, 18:21
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Can this also be used with 3.8.X?
Reply With Quote
  #11  
Old 22 Apr 2010, 18:26
pjdaley's Avatar
pjdaley pjdaley is offline
 
Join Date: Feb 2004
Very cool little add-on, but will need to re-work it to work with vbSEO

installed+rating good job
__________________

Reply With Quote
  #12  
Old 22 Apr 2010, 18:45
dirtycrow dirtycrow is offline
 
Join Date: Apr 2004
i get an error =

Reply With Quote
  #13  
Old 22 Apr 2010, 18:47
dirtycrow dirtycrow is offline
 
Join Date: Apr 2004
Originally Posted by dirtycrow View Post
i get an error =
nvm, i think i got it to work.
Reply With Quote
  #14  
Old 22 Apr 2010, 18:49
dirtycrow dirtycrow is offline
 
Join Date: Apr 2004
Originally Posted by pjdaley View Post
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.
Reply With Quote
  #15  
Old 22 Apr 2010, 18:49
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by wacnstac View Post
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:41.

Layout Options | Width: Wide Color: