Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
UKBL ~ FaceBook profile link on Postbit Details »
UKBL ~ FaceBook profile link on Postbit
Mod Version: 1.00, by UKBusinessLive (Designer) UKBusinessLive is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

vB Version: 3.8.1 Rating: (18 votes - 4.67 average) Installs: 110
Released: 12 Mar 2009 Last Update: Never Downloads: 351
Not Supported Template Edits Re-usable Code Translations  

UKBL ~ FaceBook profile link on Postbit ~ Clickable !!


Member on Facebook? Show other members that you have a Facebook presance by adding a facebook Icon to your postbit"

This is a cool hack which will let your members add a facebook Icon to their Postbit template, They need to add their facebook Profile user ID in their user CPfor this to show, If they don't enter one, then the badge don't show



How to install.

Its really easy to do, as always, so if your sitting comfortably, lets begin

Now we need to create a User Custome field, so.....

AdminCP and add a custom field > User Profile fields > Add New User Profile Field

Title = Facebook user ID

Description = Enter the Number ID from your Facebook User Profile

Default Value = Leave empty

Max length of allowed user input = 12

Display Size = 10

Display Order = 10 or 15

Field Required = No as default

Field Editable by User = Yes in case member wants to delete, Later

Private Field = No

Field Searchable on Members List = No

Show on Members List = Yes

Regular Expression = leave empty

Save the field

Once you've saved you can see what the field number is, So lets say its Field11 for example, Remember this as will need it for your Postbit Edits

Thats the first bit done, now Part Two

Go to the template you are using in Styles & Templates/Style Manager, and select Edit templates.

Go to "postbit templates" and select the template you are using, either postbit or postbit_legacy.

Find the following


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

Directly above it add


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

replace the RED Field attribute for your own

now when members sign up their facebook badge and enter their profile user ID into the "Enter the Number ID from your Facebook User Profile" section in their UserCP, The Badge will automatically appear in their Postbit

Don't forget to change the usergroup condition with the number of the usergroups that you want to be able to view this


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

That means that guests and banned users will not be able to view members facebook profile urls

Members who do not add a user id will not be shown anything.

Next, Upload the facebook icon to your forums/images/misc folder and add the full url to the part in the code which shows the image.

if you are just seeing a red cross on your postbit, then its because your image url is not right

Oh Forgot to say, Badge is fully clickable so members can click directly to facebook


Hope you enjoyed this new hack, and thanks to DobieGillis© for the idea

Please Click Installed and I'll support you 100%

Thanks

Download Now

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

Screenshots

Click image for larger version

Name:	facebook1.png
Views:	460
Size:	79.1 KB
ID:	96339   Click image for larger version

Name:	fackbook2.png
Views:	420
Size:	35.3 KB
ID:	96340  

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
Mini Mods MySpace & FaceBook buttons in member profile and postbit ChU v2 vBulletin 3.6 Template Modifications 74 24 Jan 2011 05:57
End-User Options UKBL ~ Selling on Ebay Link in Postbit UKBusinessLive vBulletin 3.8 Template Modifications 18 15 Feb 2010 11:21
End-User Options UKBL ~ Selling on Ebay Link in Postbit UKBusinessLive vBulletin 3.7 Template Modifications 10 21 May 2009 09:28
End-User Options UKBL ~ Selling on Ebay Link in Postbit UKBusinessLive vBulletin 3.6 Template Modifications 1 15 Feb 2009 13:09

  #46  
Old 19 May 2009, 04:40
MaRµ MaRµ is offline
 
Join Date: Aug 2008
Sorry I dint clik INSTALL, now I did:

How can I add link on profile???
Reply With Quote
  #47  
Old 29 May 2009, 18:09
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Real name: Valdet
Gerry,

On Profile field in Admin panel, you need to use this regex, to have users enter exactly 10 numbers.


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

Max length of allowed user input isn't the solution for this case, because users may enter less than 10 numbers in that profile field, while Facebook profiles have exactly 10 numbers each, so in some cases facebook profile links may be broken.

Val.
Reply With Quote
  #48  
Old 29 May 2009, 18:50
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by valdet View Post
Gerry,

On Profile field in Admin panel, you need to use this regex, to have users enter exactly 10 numbers.


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

Max length of allowed user input isn't the solution for this case, because users may enter less than 10 numbers in that profile field, while Facebook profiles have exactly 10 numbers each, so in some cases facebook profile links may be broken.

Val.
Thanks Val
Reply With Quote
  #49  
Old 13 Jun 2009, 04:30
rrudeboy's Avatar
rrudeboy rrudeboy is offline
 
Join Date: May 2009
hmz, installed this this morning and if i click on a user's FB icon it directs me to my own FB page...
__________________
~rb 
Reply With Quote
  #50  
Old 13 Jun 2009, 08:13
Mellymonster Mellymonster is offline
 
Join Date: Oct 2008
This is great, and also if you want to do it for Myspace you can use the Myspace image


and the code for that would be a little different not much


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

Reply With Quote
  #51  
Old 13 Jun 2009, 08:14
Mellymonster Mellymonster is offline
 
Join Date: Oct 2008
Originally Posted by rrudeboy View Post
hmz, installed this this morning and if i click on a user's FB icon it directs me to my own FB page...
Right but if you click on someone elses fb icon by there name it should take you to there FB page
Reply With Quote
  #52  
Old 13 Jun 2009, 13:09
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Sep 2006
Great mod!

Now If you don't want your users to leave your site when they click on the facebook icon then add this part of the code which is in blue.

<a href="http://www.facebook.com/home.php/#/profile.php?id=$post[field11]&ref=profile" target="_blank">
Reply With Quote
  #53  
Old 18 Jun 2009, 19:55
rrudeboy's Avatar
rrudeboy rrudeboy is offline
 
Join Date: May 2009
Originally Posted by Mellymonster View Post
Right but if you click on someone elses fb icon by there name it should take you to there FB page
but it does not... i tried both FB id # and since saturday i tried the vanity name, but it does NOT take me to the users FB page.

** fixed my issue.
__________________
~rb 

Last edited by rrudeboy; 19 Jun 2009 at 14:52. Reason: **fixed**
Reply With Quote
  #54  
Old 19 Jun 2009, 20:18
rrudeboy's Avatar
rrudeboy rrudeboy is offline
 
Join Date: May 2009
Facebook link with your FB number works.... but when a member uses his "vanity" name it does not work.

coder of this mod still around ?
__________________
~rb 
Reply With Quote
  #55  
Old 05 Jul 2009, 15:16
skariko skariko is offline
 
Join Date: Apr 2006
Real name: Andrea
What about now that is possible to change the link on own facebook?
__________________
Webmaster of http://www.czeta.com
Reply With Quote
  #56  
Old 18 Jul 2009, 16:26
Ov3rrun Ov3rrun is offline
 
Join Date: Apr 2008
I need it works with vanity name's ??????? ex: facebook.com/myname
Reply With Quote
  #57  
Old 20 Jul 2009, 07:04
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by Ov3rrun View Post
I need it works with vanity name's ??????? ex: facebook.com/myname
All you need to do is to change the URL part of the code


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

to something like this


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

keeping the field ID for the actual Vanity name

Last edited by UKBusinessLive; 20 Jul 2009 at 20:17.
Reply With Quote
  #58  
Old 31 Jul 2009, 12:31
Pokerbanter Pokerbanter is offline
 
Join Date: Dec 2008
Originally Posted by UKBusinessLive View Post
All you need to do is to change the URL part of the code


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

to something like this


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

keeping the field ID for the actual Vanity name
No, this doesn't work. It's actually trying to take my to that url rather than replacing field with vanity name.

Suggestions?

PS - I'm trying to do it for Bebo, not Facebook.
Reply With Quote
  #59  
Old 31 Jul 2009, 12:55
Pokerbanter Pokerbanter is offline
 
Join Date: Dec 2008
Originally Posted by UKBusinessLive View Post
All you need to do is to change the URL part of the code


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

to something like this


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

keeping the field ID for the actual Vanity name
Fixed it, it should actually be:


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

Reply With Quote
  #60  
Old 10 Aug 2009, 14:37
rrudeboy's Avatar
rrudeboy rrudeboy is offline
 
Join Date: May 2009
dangit, it stopped working (after malicious hack)

code:

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

url it takes you: http://www.facebook.com/roeiboot?ref=profile

the id is 7, and i tried both 7 and 11... both no worky :]

tks.
__________________
~rb 
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 21:57.

Layout Options | Width: Wide Color: