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

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

Name:	fb_like3.JPG
Views:	8303
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.
  #76  
Old 23 Apr 2010, 18:27
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Originally Posted by Ranger375 View Post
Is there a way to use option 2, but have it so that it doesnt show the names of the people who like the post?

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

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

Reply With Quote
  #77  
Old 23 Apr 2010, 21:54
worried worried is offline
 
Join Date: Jan 2009
Marked as unistalled. Although there seems to be no danger, it serves no purpose in a inaccessible forum.
EDIT: Installed. Having the code to specify forums changed my mind

Last edited by worried; 24 Apr 2010 at 03:01. Reason: REVISED
Reply With Quote
  #78  
Old 23 Apr 2010, 22:02
dirtycrow dirtycrow is offline
 
Join Date: Apr 2004
Originally Posted by dirtycrow View Post
damn. no work around huh?
why doesn't it pull from the URL in private forums? the url's are supposed to be SEO friendly after all.
Reply With Quote
  #79  
Old 23 Apr 2010, 22:03
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by dirtycrow View Post
why doesn't it pull from the URL in private forums? the url's are supposed to be SEO friendly after all.
Because FB cannot access the URL as a guest. Try to think of FB as a guest on your site, if a guest cannot access a forum it cannot see the title.
Reply With Quote
  #80  
Old 23 Apr 2010, 22:13
AURFSCAN AURFSCAN is offline
 
Join Date: Jan 2008
ONLY DISPLAY IN CERTAIN FORUMS

29 and 133 being the forum ids you want this to show in.. more forums would be 29,44,123,49 etc


its not $forum[forumid] its $thread[forumid]





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


Last edited by AURFSCAN; 24 Apr 2010 at 00:03.
Reply With Quote
  #81  
Old 23 Apr 2010, 22:20
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
I disagree.

From my knowledge of conditionals, even with multiple and / if / else statements inline. To display in particular forums the correct conditional is:


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

__________________

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
  #82  
Old 23 Apr 2010, 22:21
AURFSCAN AURFSCAN is offline
 
Join Date: Jan 2008
$forum does not work for me


this does


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


Last edited by AURFSCAN; 24 Apr 2010 at 00:09.
Reply With Quote
  #83  
Old 23 Apr 2010, 22:23
AURFSCAN AURFSCAN is offline
 
Join Date: Jan 2008
just try $thread
Reply With Quote
  #84  
Old 23 Apr 2010, 22:49
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
On dark themes the part where it says "likes this.Be the first of your friends to like this." is too hard to read... Is there a way to color code that to a lighter color?
__________________
Reply With Quote
  #85  
Old 23 Apr 2010, 23:30
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
Its an iframe, so apply a class to a div. Then add that class to your css
__________________

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
  #86  
Old 24 Apr 2010, 01:33
worried worried is offline
 
Join Date: Jan 2009
Smile

Originally Posted by AURFSCAN View Post
$forum does not work for me


this does


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thanks! That works! I modified that line of code for my forum

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

Reply With Quote
  #87  
Old 24 Apr 2010, 14:02
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by CoZmicShReddeR View Post
On dark themes the part where it says "likes this.Be the first of your friends to like this." is too hard to read... Is there a way to color code that to a lighter color?
Try changing colorscheme=light to colorscheme=dark in the code.

Also, please click Install if you use this.
Reply With Quote
  #88  
Old 24 Apr 2010, 19:44
Ranger375 Ranger375 is offline
 
Join Date: Jun 2007
Originally Posted by Mutt View Post
change
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thanks for the response, but it is still showing names for some reason..
Reply With Quote
  #89  
Old 24 Apr 2010, 20:12
Uberguilds Uberguilds is offline
 
Join Date: Jun 2006
I had to take this off my site.

The button loads slow and cracks out some people's browsers. I have it on for every post, which is pretty much the only thing I have use for it. Problem on Facebook's end.

=(
Reply With Quote
  #90  
Old 24 Apr 2010, 20:16
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by Uberguilds View Post
I had to take this off my site.

The button loads slow and cracks out some people's browsers. I have it on for every post, which is pretty much the only thing I have use for it. Problem on Facebook's end.

=(
FB has been really slow for me but since this is iframe it still doesn't slow the site down but may affect the formatting a little bit. I think they are making site updates and it probably won't last too long.
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 00:34.

Layout Options | Width: Wide Color: