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

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

Name:	fb_like3.JPG
Views:	8323
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.
  #121  
Old 05 May 2010, 21:14
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by gyaronn View Post
ok and another question i am traying to make a Like Box from facebook as a widget at my web site (www.fmsas.org) by using this code :

but for some reason it does not work can any one help me?
I just took a look and can't see why that's happening either, I even tested your code here http://developers.facebook.com/docs/...ugins/like-box I wonder if there is a problem with that right now on their end.
Reply With Quote
  #122  
Old 05 May 2010, 21:27
gyaronn's Avatar
gyaronn gyaronn is offline
 
Join Date: Dec 2009
should it be an static HTML or something deferent ?
__________________
http://s3.amazonaws.com/ember/3QZPu7C2j62bYc44PpHqtznsowfSxznK_m.png

WWW.FMSAS.ORG
Reply With Quote
  #123  
Old 05 May 2010, 21:32
gyaronn's Avatar
gyaronn gyaronn is offline
 
Join Date: Dec 2009
ok got it working the idiots on FB wrote the wrong code dont know how i did not see it before :-(
they wrote: profile_id=XXXX but its not a profile so if you delete the "profile" and stay with id=XXXX than it works perfect :-)

this is the corect code to use (you need to change the XXXXXXXX to the page id):


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

you can see an example at my site :-)
__________________
http://s3.amazonaws.com/ember/3QZPu7C2j62bYc44PpHqtznsowfSxznK_m.png

WWW.FMSAS.ORG

Last edited by gyaronn; 05 May 2010 at 21:41.
Reply With Quote
  #124  
Old 06 May 2010, 15:04
Xencored Xencored is offline
 
Join Date: Sep 2008
Real name: Mike
Awesome!
I hate facebook but soo many use it. Its free SEO!! Thanks<33

edit does not work on Albums

even with the changed code


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

As soon as i click it it shows my image than bang a second later its gone

Last edited by Xencored; 07 May 2010 at 02:53.
Reply With Quote
  #125  
Old 07 May 2010, 17:50
salvador21 salvador21 is offline
 
Join Date: Mar 2009
Originally Posted by ericgtr View Post
I've updated the first post to give the locations frequently asked here, these include photo albums, blogs and vbcms.
Thanks but it still isn't working in CMS or blog.

It's fine and dandy in the forum
Reply With Quote
  #126  
Old 07 May 2010, 18:07
Xencored Xencored is offline
 
Join Date: Sep 2008
Real name: Mike
Originally Posted by salvador21 View Post
Thanks but it still isn't working in CMS or blog.

It's fine and dandy in the forum
The code linked above works fine on CMS
Reply With Quote
  #127  
Old 07 May 2010, 18:26
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
When we see the on and off (sporadic) behavior it could have to do with FB being overloaded and not loading. That's one of the benefits of iframe, it lets the rest of the page load around it.
Reply With Quote
  #128  
Old 07 May 2010, 18:34
Xencored Xencored is offline
 
Join Date: Sep 2008
Real name: Mike
Originally Posted by ericgtr View Post
When we see the on and off (sporadic) behavior it could have to do with FB being overloaded and not loading. That's one of the benefits of iframe, it lets the rest of the page load around it.
I see but it works fine everytime on say forums
not albums /blog
Reply With Quote
  #129  
Old 07 May 2010, 18:58
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by Animemike View Post
I see but it works fine everytime on say forums
not albums /blog
Okay, just a couple of basics just to double check things. First we want to make sure you are sure the template is for the style you are using (even I overlook this sometimes) what I like to do is just type in "test" or something that will stick out where you would normally put that code and see if it displays.
Reply With Quote
  #130  
Old 07 May 2010, 19:06
Xencored Xencored is offline
 
Join Date: Sep 2008
Real name: Mike
Originally Posted by ericgtr View Post
Okay, just a couple of basics just to double check things. First we want to make sure you are sure the template is for the style you are using (even I overlook this sometimes) what I like to do is just type in "test" or something that will stick out where you would normally put that code and see if it displays.
Album code


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

I added it here because is shows alot better

facebook album.png

And it is now working on my blogs
Reply With Quote
  #131  
Old 08 May 2010, 22:24
Cadellin's Avatar
Cadellin Cadellin is offline
 
Join Date: Jan 2009
Firstly this is a great mod - my members love it already and I'm expecting to pick a lot of traffic up from it so thank you

Secondly I can't get it working on albums. Using the {vb:raw page_URL} in the href attribute results in the following error from Facebook

You must specify an URL as part of this widget or API.
What should I be using as the href for albums?

Last edited by Cadellin; 08 May 2010 at 22:50.
Reply With Quote
  #132  
Old 09 May 2010, 09:25
salvador21 salvador21 is offline
 
Join Date: Mar 2009
Originally Posted by ericgtr View Post
Okay, just a couple of basics just to double check things. First we want to make sure you are sure the template is for the style you are using (even I overlook this sometimes) what I like to do is just type in "test" or something that will stick out where you would normally put that code and see if it displays.
OK I tried it with "test" and it showed up fine. Then I tried the code and nothing.

Then I tried the code with the vb:if and it works.


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

Maybe I missed it before in the CMS because it is positioned at the bottom of the article. I now have the code at the top of the article, after


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

Reply With Quote
  #133  
Old 09 May 2010, 09:33
salvador21 salvador21 is offline
 
Join Date: Mar 2009
I can now get it to show in a blog by using the code without the "vb:if etc", but when you click on it the link in Facebook is going to a thread in the forum instead.
Reply With Quote
  #134  
Old 09 May 2010, 19:14
BiZiMDiYaR BiZiMDiYaR is offline
 
Join Date: Aug 2006
Hi,

I tried option 2, but it doesn;t show up... I have VB .3 and also edited the postbit with the code and added it, but still doesn't show up.. What am I doing wrong ?


Thanks.
Reply With Quote
  #135  
Old 09 May 2010, 19:24
Xencored Xencored is offline
 
Join Date: Sep 2008
Real name: Mike
Originally Posted by BiZiMDiYaR View Post
Hi,

I tried option 2, but it doesn;t show up... I have VB .3 and also edited the postbit with the code and added it, but still doesn't show up.. What am I doing wrong ?


Thanks.
In Postbit (or legacy)
Which ever you are using you edit
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 23:44.

Layout Options | Width: Wide Color: