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:	8481
Size:	89.7 KB
ID:	116172   Click image for larger version

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

Name:	fb_like3.JPG
Views:	8323
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.
  #136  
Old 09 May 2010, 21:48
BiZiMDiYaR BiZiMDiYaR is offline
 
Join Date: Aug 2006
Originally Posted by Animemike View Post
In Postbit (or legacy)
Which ever you are using you edit
Hi,

I edited the postbit... I only need to edit 1, right ?

Thanks.
Reply With Quote
  #137  
Old 09 May 2010, 22:54
wIrEs wIrEs is offline
 
Join Date: Dec 2006
many unknown location in online.php, IP addresses are from facebook.
using vb4.0.3
Reply With Quote
  #138  
Old 09 May 2010, 23:14
Xencored Xencored is offline
 
Join Date: Sep 2008
Real name: Mike
Originally Posted by BiZiMDiYaR View Post
Hi,

I edited the postbit... I only need to edit 1, right ?

Thanks.
you will need to edit which ever one you are using on your forums mate

my forums uses legacy

postbit legacy


postbit
Reply With Quote
  #139  
Old 10 May 2010, 00:44
BiZiMDiYaR BiZiMDiYaR is offline
 
Join Date: Aug 2006
Originally Posted by Animemike View Post
you will need to edit which ever one you are using on your forums mate

my forums uses legacy

postbit legacy


postbit


Owwwww... so that was the case )))

Thanks very much animemike )) That did it..
Reply With Quote
  #140  
Old 11 May 2010, 07:54
murekhalir murekhalir is offline
 
Join Date: Oct 2006
option one... squishes my text content into a small box. Anyway to make the like button right aligned? and keep the true width of content text.
Reply With Quote
  #141  
Old 11 May 2010, 20:20
Michael2's Avatar
Michael2 Michael2 is offline
 
Join Date: Nov 2001
Is there a way to place this under the thread title at the top of the showthread template (above the first post and below the top reply button). I'd like to have it on every page since it's not convenient to go back to the first post to click "like." When I try it I get a big gap under the FB button/text.
Reply With Quote
  #142  
Old 11 May 2010, 20:58
Xencored Xencored is offline
 
Join Date: Sep 2008
Real name: Mike
Originally Posted by Michael2 View Post
Is there a way to place this under the thread title at the top of the showthread template (above the first post and below the top reply button). I'd like to have it on every page since it's not convenient to go back to the first post to click "like." When I try it I get a big gap under the FB button/text.
you will get a big gap under it, Thats the code ( the facebook members Avatars show after they click it)in this space
Reply With Quote
  #143  
Old 11 May 2010, 21:17
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by Animemike View Post
you will get a big gap under it, Thats the code ( the facebook members Avatars show after they click it)in this space
Right, it's the iframe container. Additionally, that could be a modification to the showthread template instead of the postbit and I'm not sure the URL code will work in that template.
Reply With Quote
  #144  
Old 11 May 2010, 22:41
sose sose is offline
 
Join Date: Oct 2007
I don't have an advertising section...
Reply With Quote
  #145  
Old 12 May 2010, 21:04
hilfe-forum hilfe-forum is offline
 
Join Date: Oct 2005
Location: http://www.alpha-board.eu
Real name: http://www.alpha-board.eu
We have a Problem with the Facebook-Like Button in our Board. Sometimes the words are in english, sometimes in german. If it is in english and sombody clicks the "Like"-Button, appears "You like ist". If it is in german, appears the complete Name. Is there an facility for doing something, so that there appears only "You"?
Reply With Quote
  #146  
Old 14 May 2010, 20:55
Cadellin's Avatar
Cadellin Cadellin is offline
 
Join Date: Jan 2009
Any suggestions how to get this to work in the gallery?
Reply With Quote
  #147  
Old 15 May 2010, 17:40
Gargi Gargi is offline
 
Join Date: May 2008
Hi! Maybe a silly question, but how do I exclude special forum ids with a conditional?

cu
Gargi
Reply With Quote
  #148  
Old 18 May 2010, 01:38
Dashmaster Dashmaster is offline
 
Join Date: Feb 2009
Sweet Dude. Works n1
__________________
VipPix.de Support Forum
Reply With Quote
  #149  
Old 19 May 2010, 09:41
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
Notice tonight we are getting an error.

Example http://www.australiabound.org/forum/...e-been-Cufon-d

Error is:

The page at http://www.australiabound.org/forum/...e-been-Cufon-d could not be reached.



STRIKE THAT;;;;; error seems to be if we have ' in title
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #150  
Old 19 May 2010, 10:17
Ocean-Wonders Ocean-Wonders is offline
 
Join Date: Jan 2009
seems to be working fine on mine so far, thanks
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 07:59.

Layout Options | Width: Wide Color: