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.
  #31  
Old 22 Apr 2010, 22:14
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by Alien View Post
Excellent, eric. Thank you SO much. I'll just add an additional conditional to exclude some forums and we should be all set!
For reference, here is the code for it to only "show" in selected forums:


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

Reply With Quote
  #32  
Old 22 Apr 2010, 22:15
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Originally Posted by bogley View Post
Nice mod. Will install it soon.
Nevermind, couldn't wait. Had to install it now.

Working perfectly!
Reply With Quote
  #33  
Old 22 Apr 2010, 22:19
SuperGLS SuperGLS is offline
 
Join Date: Nov 2004
Very cool! I've done in like it post 29 and edited it so that the height=30 instead of 75 and it looks really good.

Would you put that forum conditional right underneath the code from post 29?
Reply With Quote
  #34  
Old 22 Apr 2010, 22:22
SuperGLS SuperGLS is offline
 
Join Date: Nov 2004
Here's a screenshot.

Reply With Quote
  #35  
Old 22 Apr 2010, 23:15
neil. neil. is offline
 
Join Date: Sep 2006
Any luck with vbseo, none work for me:

I get errors like:

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

with http obv.
Reply With Quote
  #36  
Old 22 Apr 2010, 23:26
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by neil. View Post
Any luck with vbseo, none work for me:

I get errors like:

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

with http obv.
Have you tried the code posted up in the second post of this thread?
Reply With Quote
  #37  
Old 22 Apr 2010, 23:34
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
Works a treat thanks Eric
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #38  
Old 22 Apr 2010, 23:46
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
Shouldnt :

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')"

be

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #39  
Old 22 Apr 2010, 23:56
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Originally Posted by ericgtr View Post
For reference, here is the code for it to only "show" in selected forums:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thank you Eric, but as for the conditional, is there not a way to just exclude certain forums rather than only show to certain forum as I have many many forums and sub forums that I would like to display the Like button on and only say 4 forums and 7 subforums I would like to exclude lol. I am just finding my way around conditional at the moment and will try to refer to the article that details the conditional to work this one out on my own, but any help is greatly appreciated.

Originally Posted by TimberFloorAu View Post
Shouldnt :

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')"

be

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
I don't want to look stupid here but are those 2 conditionals not identical?
__________________
My Forum
Reply With Quote
  #40  
Old 23 Apr 2010, 00:12
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
No he forgot closing bracket ">"
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #41  
Old 23 Apr 2010, 00:31
Uberguilds Uberguilds is offline
 
Join Date: Jun 2006
Postbit_Legacy:

With VBSEO

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




Without VBSEO

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


Last edited by Uberguilds; 23 Apr 2010 at 04:13.
Reply With Quote
  #42  
Old 23 Apr 2010, 00:35
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
this is nice and clean.It'll be nice to have something but for twitter
__________________
Android Custom Creations
Reply With Quote
  #43  
Old 23 Apr 2010, 01:35
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
I suppose there is no way to have this mod show the member's forum username, instead of their real name from FB?
__________________
http://www.theparentsanctuary.net - Australian Parents forum
Reply With Quote
  #44  
Old 23 Apr 2010, 01:51
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Originally Posted by RedTrinity View Post
I suppose there is no way to have this mod show the member's forum username, instead of their real name from FB?
Unfortunately not.
Reply With Quote
  #45  
Old 23 Apr 2010, 02:45
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
Code as follows mate:

<vb:if ........>

<--facebook code-->

</vb:if>
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
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:29.

Layout Options | Width: Wide Color: