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: Aug 2020 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: 1040
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:	8487
Size:	89.7 KB
ID:	116172   Click image for larger version

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

Name:	fb_like3.JPG
Views:	8328
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.
  #46  
Old 23 Apr 2010, 01:48
Uberguilds Uberguilds is offline
 
Join Date: Jun 2006

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


Last edited by Uberguilds; 23 Apr 2010 at 06:04.
Reply With Quote
  #47  
Old 23 Apr 2010, 02:06
PixelFx PixelFx is offline
 
Join Date: Dec 2002
I had the error for setup .. found putting www.domain.com/forum/ .. in websitehere link above fixed the error for me. Tried both ad version and postbit version.

anyway awesome mod thanks for the work getting this out so fast.
Reply With Quote
  #48  
Old 23 Apr 2010, 02:54
wacnstac wacnstac is offline
 
Join Date: Nov 2001
So I got this working with 3.8.X and and able to click the like button and the numeric value goes up, but nothing every gets posted to my fb wall. What gives?
Reply With Quote
  #49  
Old 23 Apr 2010, 02:56
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by wacnstac View Post
So I got this working with 3.8.X and and able to click the like button and the numeric value goes up, but nothing every gets posted to my fb wall. What gives?
Sorry, as stated I cannot test on 3.8 because I no longer have that version, chances are the URL is not correct though, to double check view the source of your page to see the output URL.
Reply With Quote
  #50  
Old 23 Apr 2010, 02:57
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by ericgtr View Post
Sorry, as stated I cannot test on 3.8 because I no longer have that version, chances are the URL is not correct though, to double check view the source of your page to see the output URL.
For those who have asked about adding this to user profiles please see this mod http://www.vbulletin.org/forum/showthread.php?t=239424 which adds both the "Like" button and a comments box.
Reply With Quote
  #51  
Old 23 Apr 2010, 05:07
worried worried is offline
 
Join Date: Jan 2009
Thank you TimberFloorAu and Uberguilds for posting your code. Unfortunately, I couldn't get either to work. I can get the mod to work by itself except everytime I try to exclude forums it doesn't work. I've tried all different ways:



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



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

I bet I'm doing something simple that's wrong. I just don't see it.
Reply With Quote
  #52  
Old 23 Apr 2010, 05:20
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by Uberguilds View Post
Postbit_Legacy:

With VBSEO

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




Without VBSEO

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
This is a 4.0 mod. The bit in bold and big kind of jumps out as being totally incorrect..
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #53  
Old 23 Apr 2010, 05:27
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by worried View Post
Thank you TimberFloorAu and Uberguilds for posting your code. Unfortunately, I couldn't get either to work. I can get the mod to work by itself except everytime I try to exclude forums it doesn't work. I've tried all different ways:



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



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

I bet I'm doing something simple that's wrong. I just don't see it.
I bet they have to be combined, I don't have time to look at it tonight but I'll play with it some tomorrow.
Reply With Quote
  #54  
Old 23 Apr 2010, 05:46
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Originally Posted by TimberFloorAu View Post
No he forgot closing bracket ">"
Ah now I see it, give me a slap, I'll keep my mouth shut next time lol.

Thanks TimberFloorAu and everybody who has tweaked this, not forgetting EricGTR, I really like this mod and think overall, it's far better than Facebook Connect, I just hope Facebook don't decide to discontinue this like they the did with Facebook Connect.
__________________
My Forum
Reply With Quote
  #55  
Old 23 Apr 2010, 05:51
worried worried is offline
 
Join Date: Jan 2009
There is supposed to be a bug in 4.0.0 - 4.0.2 in which ads won't diplay at all if you set them for certain forums: http://www.vbulletin.com/forum/proje...d=34416&page=2

It's supposed to be fixed in 4.0.3 which I'm using yet I can't get it to work.
Reply With Quote
  #56  
Old 23 Apr 2010, 06:16
hubie hubie is offline
 
Join Date: Jul 2009
Here's an adaptation I made for 3.8.x: http://www.vbulletin.org/forum/showthread.php?t=241053

Cheers.

Last edited by hubie; 23 Apr 2010 at 06:17. Reason: vB 3.8.x adaptation
Reply With Quote
  #57  
Old 23 Apr 2010, 06:17
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
I just changed to option 2. Much better. Option 1 was wrapping my text strange, leaving big gaps.
Reply With Quote
  #58  
Old 23 Apr 2010, 06:28
reimic reimic is offline
 
Join Date: Dec 2004
How is the code for the CMS?
Reply With Quote
  #59  
Old 23 Apr 2010, 07:22
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
Option 2 to hide specific forums.


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

Dont forget if your forum is in folder [forum] change the above code to:


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

The code

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

This displays this MOD in these forum ID's

The code

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

Displays only in first post

To show in only ONE forum:
Replace

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

use this

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

Change x to the forum id of the forum you want this mod to display in.
__________________

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
  #60  
Old 23 Apr 2010, 08:10
AURFSCAN AURFSCAN is offline
 
Join Date: Jan 2008
Originally Posted by TimberFloorAu View Post
Option 2 to hide specific forums.


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

Dont forget if your forum is in folder [forum] change the above code to:


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

The code

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


This displays this MOD in these forum ID's

The code

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

Displays only in first post

To show in only ONE forum:
Replace

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

use this

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

Change x to the forum id of the forum you want this mod to display in.

confusing..the display and hide are both the same?


how do you combine these conditions?

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

with

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


thx
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:35.

Layout Options | Width: Wide Color: