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: 223
Released: 23 Apr 2010 Last Update: Never Downloads: 1314
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:	4717
Size:	41.1 KB
ID:	116200   Click image for larger version

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

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

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

Click image for larger version

Name:	fbk2.jpg
Views:	2563
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 04:30

  #91  
Old 31 May 2010, 16:03
fmckinnon fmckinnon is offline
 
Join Date: Jun 2008
Hi, I've installed in my postbits-legacy template (see below), but the button isn't showing up anywhere. I also tried the XFBML version (we have an AppID already for the Facebook Connect plugin) and it also didn't show. I'm not seeing any ERRORS on my page, just no "like" button. Below is the portion of my template ... and you can try to view any thread at:
http://www.theworshipcommunity.com/forums/
<!-- controls -->
<iframe src="http://www.facebook.com/widgets/like.php?href=http://www.theworshipcommunity.com/forums/showthread.php$session[sessionurl]?p=$post[postid]&amp;show_faces=false&amp"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:25px"></iframe>
Reply With Quote
  #92  
Old 31 May 2010, 17:05
cdoyle cdoyle is offline
 
Join Date: Oct 2004
Originally Posted by funmasti View Post
can somebody tell me that the coding is w3.org Valid? bcoz my forum is error free
I don't believe it is, I believe the facebook code doesn't validate.
Reply With Quote
  #93  
Old 31 May 2010, 21:58
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Real name: Nick
What happens when a user "Likes" a post/thread that isn't in a publicly-accessible section of the forum?

Is there any way to show the "Like" button for public threads/posts only?
__________________
Regards,
Nick

Reply With Quote
  #94  
Old 01 Jun 2010, 06:41
captainslater captainslater is offline
 
Join Date: Dec 2005
Real name: Dominic
Just wanted to register my Forum-URL and Facebook said the URL is invalid.
So what would be a valid URL?
Reply With Quote
  #95  
Old 01 Jun 2010, 20:21
jayunsplanet jayunsplanet is offline
 
Join Date: Jun 2006
Hello,

This could be a great mod!

I attempted to use the "recommended" version of this mod on my forum. I added the if condition, and inputted my appID from Facebook, code to my postbit_legacy template as instructed. It does indeed add the like button to the first post in the thread. When I click on it to "Like" something, it quickly pulls up my picture and is about to "like" it and then it throws an error.

The error says, verbatim, "The page at http://www.mdstreetscene.com/forum/s...546&amp;page=2 could not be reached."

Any ideas?

Thanks.
Reply With Quote
  #96  
Old 01 Jun 2010, 23:03
Cla75 Cla75 is offline
 
Join Date: Aug 2009
I have your same problem ...
placed the code in the postbit_legacy template, see i LIKE button, seems to work but then ERROR in the forum and nothing is published on FB.

I also tried to enter the forum Hubie ... this link ...
http://www.htceros.com/hd2-leo/284-e....html#post1019
I see the button LIKE, click and I get the same error:
Me gusta
Sť el primero de tus amigos al que le guste esto. ∑ Error
click error:
The page at http://www.htceros.com/hd2-leo/284-errores-htc-hd2.html#post1019 is unreachable
?!?!!?? the LINK is correct

Why??

thanks for support

Last edited by Cla75; 01 Jun 2010 at 23:08.
Reply With Quote
  #97  
Old 02 Jun 2010, 11:16
despo despo is offline
 
Join Date: May 2007
Hello,

http://developers.facebook.com/setup/ on this link i add a name and URL, but when İ do that the system gives an error : Invalid url

Whats wrong ? Any one ? :s
Reply With Quote
  #98  
Old 02 Jun 2010, 11:59
Cla75 Cla75 is offline
 
Join Date: Aug 2009
ou must add the / at the end of the link ...

eg http://www.vbulletin.org/
Reply With Quote
  #99  
Old 03 Jun 2010, 02:11
hubie hubie is offline
 
Join Date: Jul 2009
Originally Posted by WizKaz View Post
It doesnt work with my site either. When I includ "google.com" to test it, it works fine. But if i insert my own URL, I always get an error: "site MYURL not found."
But even if I copy an paste the url from the error in my browser, i find the site.

Any ideas, pls?
Have you tried putting "/" at the end of the url?

Originally Posted by Loco.M View Post
not working in IE even after the "IE fix" code
For me it works, but sometimes i have to refresh the page to get the button in IE. After refreshing, the button is shown on every page.

Originally Posted by StuSD View Post
what file do I make the modifications in ?
I cant find that code in class_postbit or class_postbitalt
thanks
You have to insert the code under </controls> or wherever you want in postbit/postbit_legacy (deppends wich template your site is using).

Originally Posted by Cla75 View Post
I have your same problem ...
placed the code in the postbit_legacy template, see i LIKE button, seems to work but then ERROR in the forum and nothing is published on FB.

I also tried to enter the forum Hubie ... this link ...
http://www.htceros.com/hd2-leo/284-e....html#post1019
I see the button LIKE, click and I get the same error:

click error:

?!?!!?? the LINK is correct

Why??

thanks for support
Cla75, i've tested that link and for me everything is working correctly. Also, the post content was posted right on my FB wall.
Reply With Quote
  #100  
Old 06 Jun 2010, 19:09
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Real name: Nick
Originally Posted by EagleNick View Post
What happens when a user "Likes" a post/thread that isn't in a publicly-accessible section of the forum?

Is there any way to show the "Like" button for public threads/posts only?
???
__________________
Regards,
Nick

Reply With Quote
  #101  
Old 12 Jun 2010, 22:04
jackburaks35 jackburaks35 is offline
 
Join Date: May 2010
thank you
Reply With Quote
  #102  
Old 25 Jun 2010, 08:44
Hellmaster Hellmaster is offline
 
Join Date: Sep 2009
Just installed, working perfect, but... how to change de languaje to Spanish (Latinoamerica)?

Thanx!


*****

FIX: es_MX

Last edited by Hellmaster; 25 Jun 2010 at 08:54.
Reply With Quote
  #103  
Old 25 Jun 2010, 15:38
hubie hubie is offline
 
Join Date: Jul 2009
Originally Posted by rockdrig View Post
Just installed, working perfect, but... how to change de languaje to Spanish (Latinoamerica)?

Thanx!


*****

FIX: es_MX
Just find:

... '//connect.facebook.net/en_US/all.js'; ...

and replace "en_US" for "es_MX" or "es_LA".
Reply With Quote
  #104  
Old 26 Jun 2010, 07:01
FitgirlWorld FitgirlWorld is offline
 
Join Date: Jul 2009
Any way to get this to post an image and comment on the person's news feed/wall? This only adds a small link to "recent activity" on the person's facebook page?

thanks
Reply With Quote
  #105  
Old 01 Jul 2010, 22:19
Endertr's Avatar
Endertr Endertr is offline
 
Join Date: Feb 2008
Real name: Ender Cengiz
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 02:26.

Layout Options | Width: Wide Color: