Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Add Facebook "Like" button to your threads [vB 3.8.x] Details »
Add Facebook "Like" button to your threads [vB 3.8.x]
Mod Version: 1.00, by hubie (Member) hubie is offline
Developer Last Online: Jun 2013 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (24 votes - 4.67 average) Installs: 224
Released: 23 Apr 2010 Last Update: Never Downloads: 1326
Not Supported Template Edits  

This mod is based on this, but working on vB 3.8.x.

As was said there: 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.

DEMO

IFrame Method

There is two kind of "Like" button (IFrame Method):

- With a smallest counter at his side *

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


- With a largest counter (and names of people who have clicked) *

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

*Change show_faces=false for true if you want to see faces

Installation:

Go to your Postbit/Postbit Legacy template and search for:

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

And add below the code that you previously selected according your favorite button style.

If you want that the button only appears in first post of a thread, add this variables at the beginning and end of the code that you previously selected:

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

*You should add these variables, otherwise the button will be displayed in every post, which makes no sense.



XFBML Method (recommended)
This is a richer way to send the contents of your board to Facebook, because it gives to users the possibility to add more information and also an image of your site is displayed on their FB wall (see the screenshots below).

Installation: (provided by cdoyle, thanks mate )

You'll need to register your app here: http://developers.facebook.com/setup/, and get an ID to place into the code below.


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

-----------------------------------------------------------------------------------------------------

Internet Explorer browser fix: http://www.vbulletin.org/forum/showp...5&postcount=70

-----------------------------------------------------------------------------------------------------

For additional information on this button and different parameters please visit http://developers.facebook.com/docs/...e/plugins/like

Remember to click Mark as Installed if you use this modification

Download Now

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

Screenshots

Click image for larger version

Name:	faceb1.jpg
Views:	4738
Size:	41.1 KB
ID:	116200   Click image for larger version

Name:	faceb2.jpg
Views:	2580
Size:	6.9 KB
ID:	116201   Click image for larger version

Name:	faceb3.jpg
Views:	3083
Size:	32.8 KB
ID:	116202   Click image for larger version

Name:	fbk1.jpg
Views:	3405
Size:	17.4 KB
ID:	116518  

Click image for larger version

Name:	fbk2.jpg
Views:	2577
Size:	28.4 KB
ID:	116519  

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.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Add New Facebook "Like" button to your threads ericgtr vBulletin 4.x Template Modifications 252 16 Sep 2014 03:30

  #121  
Old 15 Aug 2010, 21:11
paradoxx109 paradoxx109 is offline
 
Join Date: Mar 2007
I guess I didnt realize about that one, thank you so much. Although I still have the loop of like dislike in firefox.
Reply With Quote
  #122  
Old 16 Aug 2010, 05:21
m2006's Avatar
m2006 m2006 is offline
 
Join Date: Jan 2006
Many thanks for Mode is the result of a page to load slowly silk
Reply With Quote
  #123  
Old 19 Aug 2010, 16:23
paradoxx109 paradoxx109 is offline
 
Join Date: Mar 2007
anyone has problems with FF when clicking the like button?
Reply With Quote
  #124  
Old 21 Aug 2010, 07:29
WinnipegHeights's Avatar
WinnipegHeights WinnipegHeights is offline
 
Join Date: Apr 2005
Why would you not simply add this to the social bookmarking template??

In Show Thread templates..

showthread_bookmarksite

Paste the following after the existing code


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

All that is required is to create a Social Bookmark for Facebook, as suggested in this thread..

http://www.vbulletin.org/forum/showt...light=facebook

The reason this works more nicely, is that
a) It puts the LIKE button with the rest of the social networking stuff.
b) Vbulletin will only display the Social Bookmarking bits in threads that are GUEST viewable.
__________________
WinnipegHeights.com
Reply With Quote
  #125  
Old 07 Sep 2010, 01:46
SnakeEaterITA SnakeEaterITA is offline
 
Join Date: Jul 2010
Hi guys, one problem for me.

I put this code in the Showthread


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

and the Like button is nicely displayed next to the Post Reply, but I have some problems:

1) IE doesn't show anything

2) If I press the Like button and I go in my facebook wall, it doesn't show the infos of the thread.



No thread title, no thread url, no thread description.

What should I do?
Reply With Quote
  #126  
Old 21 Sep 2010, 12:16
FSA FSA is offline
 
Join Date: Jan 2007
:edit

i've solved it with the share-button.


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


Last edited by FSA; 21 Sep 2010 at 18:37.
Reply With Quote
  #127  
Old 05 Oct 2010, 03:44
LakeAnna LakeAnna is offline
 
Join Date: Jan 2009
I have applied the IE fix and still not working - is this still an open issue? Or a dead hack?
Reply With Quote
  #128  
Old 07 Oct 2010, 14:51
Raptor Raptor is offline
 
Join Date: Nov 2001
How about having a like option that links displays who liked the post and also adds to the OP's Karma - but not linking to facebook ?
Reply With Quote
  #129  
Old 09 Oct 2010, 00:47
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
I'm using the code from the first (top) post and it's working fine for me in IE8 (XFBML method)... is that unusual?
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #130  
Old 10 Oct 2010, 21:36
Chance4Today Chance4Today is offline
 
Join Date: Aug 2007
Real name: Vic
Thanks
__________________
Just keep moving forward and don't look back
Reply With Quote
  #131  
Old 11 Oct 2010, 18:35
soundbarrierpro soundbarrierpro is offline
 
Join Date: Dec 2007
Originally Posted by FSA View Post
:edit

i've solved it with the share-button.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
I'm using this. Great post. All I use is Firefox Browser and the facebook Like button just won't work for me. All I get is an error code. This appears to fix the problem to get the pages posted on facebook.
Reply With Quote
  #132  
Old 15 Oct 2010, 19:11
Nova99 Nova99 is offline
 
Join Date: Dec 2005
IF you use the FB Like button in your forums you should read this:
http://www.searchmarketingman.com/20...utton-bug.html

The Like button messes up the URLs and indexed pages in SE's and makes many pages in your forum blank for IE users, so I've removed it for now until Facebook applies a fix to this.
http://bugs.developers.facebook.net/...ug.cgi?id=9777

It's listed as a priority 5 bug by Facebook now, and that's the lowest priority so it may take a while until it's getting fixed, so the Like button may really mess up your forums now!
Reply With Quote
  #133  
Old 15 Oct 2010, 21:13
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
I don't know if this XFBML code is affected by this bug, this code is relatively old and been out for a while... The code they are talking about is when linked directly to facebook's servers to download the latest javascript code...

As a test I put this into google:
inurl:fb_xd_fragment site:mydomain.com

And it didn't return any URL's so so far my site has been unaffected. However if you use a site name that has been affected hundreds of blank pages come up, such as:
inurl:fb_xd_fragment site:thefootballnetwork.net
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #134  
Old 15 Oct 2010, 22:55
Nova99 Nova99 is offline
 
Join Date: Dec 2005
Originally Posted by BirdOPrey5 View Post
And it didn't return any URL's so so far my site has been unaffected. However if you use a site name that has been affected hundreds of blank pages come up, such as:
inurl:fb_xd_fragment site:thefootballnetwork.net
Your site may be affected even if no pages with fb_xd_fragment has been indexed in SEs, visitors using IE may see blank pages sometimes anyway with the result that they exit your site right away and you may loose a possible registering member.

The best way to see this, and the way I found out the bug on my site (I didn't have any indexed pages with fb_xd_fragment either) ,was through Google Analytics.
I started to notice several links ending in fb_xd_fragment that visitors where only on for a few secs.
When I removed the FB Like button it was ok again, so the bug is still there.
Reply With Quote
  #135  
Old 16 Oct 2010, 15:18
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Thanks... sure enough they were there in the Analytics... switched back to the iframe for now.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
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 20:21.

Layout Options | Width: Wide Color: