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

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

Name:	fb_like3.JPG
Views:	8327
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.
  #16  
Old 22 Apr 2010, 19:52
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
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
Originally Posted by dirtycrow View Post
i agree 100 percent. with out the thread title of what you are liking its not descriptive enough to get people to visit.
Understood, let's see if we can get this working with VBSEO by presenting this question to them, we need to convert this to VBSEO:

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

Please see if you can get one of their people to answer this and we can then add a VBSEO version of this mod here.
Reply With Quote
  #17  
Old 22 Apr 2010, 19:53
wacnstac wacnstac is offline
 
Join Date: Nov 2001
If someone could supply the variable names to make this work on 3.8.X I'd really appreciate it.
Reply With Quote
  #18  
Old 22 Apr 2010, 20:07
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Even taking the stock "share" IFRAME from facebook, is giving me an error right now. Perhaps their system is overloaded?
Reply With Quote
  #19  
Old 22 Apr 2010, 20:07
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Using the code from the 2nd post mine looks like this with VBSEO installed. and I think it's a pretty cool mod.

Obviously I'm using Adsense so it makes more sence to have the like button beneath the title, but I've found no problems with VBSEO.



One question, I have though is there a conditional, I can use to exclude certain forums?
__________________
My Forum

Last edited by Da-Vinci; 22 Apr 2010 at 20:13.
Reply With Quote
  #20  
Old 22 Apr 2010, 20:12
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by wacnstac View Post
Even taking the stock "share" IFRAME from facebook, is giving me an error right now. Perhaps their system is overloaded?
If it has the red "error" upon clicking then it most likely means the URL path isn't setup correctly. I would double check it.
Reply With Quote
  #21  
Old 22 Apr 2010, 20:25
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Originally Posted by ericgtr View Post
Understood, let's see if we can get this working with VBSEO by presenting this question to them, we need to convert this to VBSEO:

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

Please see if you can get one of their people to answer this and we can then add a VBSEO version of this mod here.
I've taken the question to the devs.. it's odd. The link shows as the standard vB variable url inside the fb stuff, whether you use iframe or the js version.

Obviously the error is there to prevent people from having what they like link back to the wrong thing, but it's a tad annoying that it doesn't work with the way vbseo does it.

Does it work with the vB4 SEO options?
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #22  
Old 22 Apr 2010, 20:34
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by kall View Post
I've taken the question to the devs.. it's odd. The link shows as the standard vB variable url inside the fb stuff, whether you use iframe or the js version.

Obviously the error is there to prevent people from having what they like link back to the wrong thing, but it's a tad annoying that it doesn't work with the way vbseo does it.

Does it work with the vB4 SEO options?
I'm afraid I don't have vbseo to test it on so I can't say. But yeah, like you say it checks the URL before it allows it which is good and bad I guess depending on how you look at it. The benefit to me for iframe is that it won't affect the board if it's slow for any reason.
Reply With Quote
  #23  
Old 22 Apr 2010, 21:13
giorgino giorgino is offline
 
Join Date: Dec 2009
Originally Posted by Da-Vinci View Post
Using the code from the 2nd post mine looks like this with VBSEO installed. and I think it's a pretty cool mod.

Obviously I'm using Adsense so it makes more sence to have the like button beneath the title, but I've found no problems with VBSEO.



One question, I have though is there a conditional, I can use to exclude certain forums?

Great effect! How you have done? Can you give me the code please?
Reply With Quote
  #24  
Old 22 Apr 2010, 21:32
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Yes it's in the 2nd post of this thread.

http://www.vbulletin.org/forum/showp...32&postcount=2

Maybe the VBSEO problem is to do with the type of url rewrite you use, I use 002 - Hierarchic directory type URLs with content relevant threads (used at www.vBSEO.com) for my forumURL's, but obviously if your using a different type of URL rewrite it's not something you want to change.

Also not wanting to be a pest but can anybody answear this?

Is there a conditional, I can use to exclude certain forums?

The reason being we have a few private forums which I would prefer not to be displayed on Facebook, and although I can tell the members who have access to said forums not to click the Like button in the said sections, you will always get one or two, who will.
__________________
My Forum

Last edited by Da-Vinci; 22 Apr 2010 at 21:39.
Reply With Quote
  #25  
Old 22 Apr 2010, 21:38
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Nice mod. Will install it soon. I was waiting for this since the news of Facebook discontinuing the Facebook Connect soon.
Reply With Quote
  #26  
Old 22 Apr 2010, 21:42
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
On multi-page threads, it will put up the like text/icons at the top of every page.

Less than ideal, I'd like to see it only on page 1/post 1 of a thread...

Originally Posted by saviola8x View Post
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.
__________________
-Jason / WTF!?
Reply With Quote
  #27  
Old 22 Apr 2010, 21:58
giorgino giorgino is offline
 
Join Date: Dec 2009
Originally Posted by Da-Vinci View Post
Yes it's in the 2nd post of this thread.

http://www.vbulletin.org/forum/showp...32&postcount=2

Maybe the VBSEO problem is to do with the type of url rewrite you use, I use 002 - Hierarchic directory type URLs with content relevant threads (used at www.vBSEO.com) for my forumURL's, but obviously if your using a different type of URL rewrite it's not something you want to change.

Also not wanting to be a pest but can anybody answear this?

Is there a conditional, I can use to exclude certain forums?

The reason being we have a few private forums which I would prefer not to be displayed on Facebook, and although I can tell the members who have access to said forums not to click the Like button in the said sections, you will always get one or two, who will.
Great work perfectly with vBSeo (with 002 rules like you). Thank you very much!
Reply With Quote
  #28  
Old 22 Apr 2010, 22:03
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Cool glad it's worked for you, but I take no credit for any of the work, I just used what was available to me.
__________________
My Forum
Reply With Quote
  #29  
Old 22 Apr 2010, 22:05
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by Alien View Post
On multi-page threads, it will put up the like text/icons at the top of every page.

Less than ideal, I'd like to see it only on page 1/post 1 of a thread...
Here's the way around that:

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.

This will only show on the first post no matter how many pages there are.
Reply With Quote
  #30  
Old 22 Apr 2010, 22:10
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Excellent, eric. Thank you SO much. I'll just add an additional conditional to exclude some forums and we should be all set!
__________________
-Jason / WTF!?
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 18:42.

Layout Options | Width: Wide Color: