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: Jul 2013 I like it Show Printable Version Email this Page

vB Version: 4.0.2 Rating: (32 votes - 4.84 average) Installs: 315
Released: 22 Apr 2010 Last Update: 22 Apr 2010 Downloads: 973
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:	7785
Size:	89.7 KB
ID:	116172Click image for larger version

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

Name:	fb_like3.JPG
Views:	7645
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.
  #211  
Old 16 Feb 2011, 11:01
DaanLT DaanLT is offline
 
Join Date: Jun 2007
after latest vbb 4 update its broken again ><
Reply With Quote
  #212  
Old 16 Feb 2011, 12:22
matrixmark matrixmark is offline
 
Join Date: Dec 2010
I just installed the latest vbulletin (upgrade from 4.1.1) and its working fine for me. I did the postbit_legacy edit way.

Mark
Reply With Quote
  #213  
Old 18 Feb 2011, 02:26
asus78's Avatar
asus78 asus78 is offline
 
Join Date: Feb 2010
How can i change in my newsfeed that is does not show the page title for every like button i click but only the thread title + domain?
Reply With Quote
  #214  
Old 18 Feb 2011, 03:25
asus78's Avatar
asus78 asus78 is offline
 
Join Date: Feb 2010
the links .../forum/ & .../album/ take me to the album & forum instead of the thread & image?

it only works for .../content/ with the right title and post?!

any idea on how to change the url?
Reply With Quote
  #215  
Old 20 Feb 2011, 13:27
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Hi I have changed show_faces to false but it is still showing the little square images of peoples profile pictures, I don't want that to show.
Reply With Quote
  #216  
Old 02 Mar 2011, 04:52
asus78's Avatar
asus78 asus78 is offline
 
Join Date: Feb 2010
I still havent figured it out for album & threads. C'mon guys pls help!

The new like button also inserts a thumbnail image to your fb newsfeed which is great unless the like button takes you to your homepage instead of the image in the album.

Pls heeeelp!
Reply With Quote
  #217  
Old 02 Mar 2011, 04:56
asus78's Avatar
asus78 asus78 is offline
 
Join Date: Feb 2010
<div id="picturecontainer">
<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://myttoos.com/community/album/{vb:raw page_url}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like& amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
<!-- / Facebook Like -->

Is this the wrong URL i put in for fetching the album images thru clicking like?
Reply With Quote
  #218  
Old 20 Apr 2011, 22:56
BBF BBF is offline
 
Join Date: Dec 2006
Real name: Nadav Peretz
Am i the only one that get "You must reduce the number of redirects for this URL" error after i click "Like" button?

Thread for example:
http://www.root.co.il/threads/257957...D7%99%D7%9D%29

I just try to figure it out, so i tried to directly enter to the like.php and href to random thread.
http://www.facebook.com/plugins/like...d.php?t=123456 (123456, just for example)
but just got the same error.

Any ideas?
Reply With Quote
  #219  
Old 22 Apr 2011, 03:09
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Real name: Jim
Thank you! It works - Nominated MOTM
__________________
Jim - Webadmin 3:33am Paranormal Research - History will always repeat itself but sometimes the past never leave
vb4.x Email Reminders for Inactive Users, Add Mass Child Forums for vb3.8.6 & vb4.1.2
Reply With Quote
  #220  
Old 23 Apr 2011, 20:39
lild100 lild100 is offline
 
Join Date: Oct 2010
Great mod! Just need some quick help.. in my forum my background is black... how can i make the writing that says

'Be the first of your friends to like this.'

How can i change that to white rather then black?

You can see an example here on my forum how the colours have matched well

Speak soon

Dan

http://www.tabletennisdaily.co.uk/fo...of-each-member
Reply With Quote
  #221  
Old 25 Apr 2011, 07:01
pharlap pharlap is offline
 
Join Date: Oct 2010
great mod

Great Mod.

Is it possible to have this shown on every post ( not just post #1 in a thread) ?

Cheers
Reply With Quote
  #222  
Old 25 Apr 2011, 13:01
ttran ttran is offline
 
Join Date: Aug 2010
Could it be "Like" in every post like mod "Thanks" guys?
Reply With Quote
  #223  
Old 25 Apr 2011, 21:54
Bundle's Avatar
Bundle Bundle is offline
 
Join Date: Apr 2010
I'm having an issue with this, in that it duplicates showthread.php when it posts to facebook (resulting in an incorrect link, and incorrect page info on the like)... i.e. it links to this:

DOMAIN.com/showthread.php/showthread.php/4465

instead of

DOMAIN.com/showthread.php/4465

Anyone have any idea why this is happening?
__________________
http://www.thebundlejungle.com - Pregnancy and parenting forums
Offering help, support and general chat about all things related to pregnancy and parenting!
Reply With Quote
  #224  
Old 25 Apr 2011, 22:12
XiTCLUB's Avatar
XiTCLUB XiTCLUB is offline
 
Join Date: Jan 2010
Real name: Mian Shahzad Raza
Tagged
Reply With Quote
  #225  
Old 28 Apr 2011, 06:03
itforumz itforumz is offline
 
Join Date: Aug 2009
Good mod
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 00:42.

Layout Options | Width: Wide Color: