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:	461
Size:	79.1 KB
ID:	96339   Click image for larger version

Name:	fackbook2.png
Views:	421
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

  #61  
Old 24 Aug 2009, 19:36
joyboy2001 joyboy2001 is offline
 
Join Date: Nov 2008
now that facebook has released vanity usernames, can this be modified to include either the profile number or the profile name ...
If it's too complicated to make this happen automatically (if the user enters a number then the coding becomes different and if he enters a username the code automatically changes) then can there be an option to do this with the use of 2 text boxes ?

I'd love to install this as I've also integrated Facebook connect but can't till the time both type of facebook users (with profile ID and with usernames) are able to get correct URLs ...
Reply With Quote
  #62  
Old 11 Sep 2009, 22:50
hippyTRIBE hippyTRIBE is offline
 
Join Date: Aug 2009
^^
I am facing a problem as to how to retrieve the Facebook IDs as they have changed their model to vanity URL.

Hope UKBL will come up with a solution to this.. !!
Reply With Quote
  #63  
Old 15 Sep 2009, 18:16
itsheinz itsheinz is offline
 
Join Date: Feb 2009
nice one simply rocks
Reply With Quote
  #64  
Old 16 Sep 2009, 18:40
principino1984 principino1984 is offline
 
Join Date: Jul 2006
Real name: Marco Dominici

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

I solved with a simply mod to it...
Reply With Quote
  #65  
Old 18 Sep 2009, 23:48
taffy056 taffy056 is offline
 
Join Date: Sep 2004
very nice thanks
Reply With Quote
  #66  
Old 26 Oct 2009, 23:56
blaize blaize is offline
 
Join Date: Apr 2006
I worked around the new vanity url issue by creating two custom fields, one for numerical id and one for users with vanity urls.

This is the code I used for the postbit template edits. Change fields XX & YY to whatever your custom fields are.

<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7)">
<if condition="$post['fieldXX']">
<a href="http://www.facebook.com/home.php/#/profile.php?id=$post[fieldXX]&ref=profile">
<img alt="My Facebook" border="0" src="http://yourforums.com/forums/images/misc/facebook.png" border="0"/>
</if></if>

<if condition="is_member_of($bbuserinfo, 2, 5, 6, 7)">
<if condition="$post['fieldYY']">
<a href="http://www.facebook.com/$post[fieldYY]?ref=profile">
<img alt="My Facebook" border="0" src="http://yourforums.com/forums/images/misc/facebook.png" border="0"/>
</if></if>
Use at your own risk.

The first is for the numerical id & the second is used if the facebook profile uses a vanity url.

Last edited by blaize; 27 Oct 2009 at 01:14. Reason: clarification
Reply With Quote
  #67  
Old 15 Nov 2009, 18:41
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Been playing around with this trying to get it to work in VB 4.0, obviously it needs to be recoded as it doesn't work, anyway its a cool little hack and would love to have it on my forum again.

Thanks
Reply With Quote
  #68  
Old 17 Nov 2009, 15:30
greenbuildpost greenbuildpost is offline
 
Join Date: Sep 2009
I noticed when I set it up to use the vanity names you must include "?ref=nf" after you fill your vanity name in the user details field.

Is there a way around this so you can just enter your vanity name?
Reply With Quote
  #69  
Old 17 Nov 2009, 18:47
greenbuildpost greenbuildpost is offline
 
Join Date: Sep 2009
Originally Posted by greenbuildpost View Post
I noticed when I set it up to use the vanity names you must include "?ref=nf" after you fill your vanity name in the user details field.

Is there a way around this so you can just enter your vanity name?
For now I just added "?ref=nf" into the address on the style manager template and it seems to be working with only adding the custom Facebook URL in the details field.

Last edited by greenbuildpost; 19 Nov 2009 at 14:21.
Reply With Quote
  #70  
Old 22 Nov 2009, 09:35
GTX2 GTX2 is offline
 
Join Date: Jun 2006
Great mod !!

I just think my forum members won't find easy to find the facebook member number (most don't understand this kind of stuff).
Is there any way of associate their email with their member number, in order to fill out that field automatically?
Maybe i'm asking for something impossible
Reply With Quote
  #71  
Old 25 Nov 2009, 20:52
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Real name: Jack
Is there a way so people can input their facebook IDor their screen name? Remember that now with FB you can have your own profile URL like: facebook.com/cobraws

I mean, Like a conditional field or something, you can enter the numerical ID or just the screen name ID.

Cya!
__________________
cobraws
Reply With Quote
  #72  
Old 12 Dec 2009, 17:44
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
Originally Posted by greenbuildpost View Post
I noticed when I set it up to use the vanity names you must include "?ref=nf" after you fill your vanity name in the user details field.

Is there a way around this so you can just enter your vanity name?
You figured this out see below and nice job

Originally Posted by taffy056 View Post
Been playing around with this trying to get it to work in VB 4.0, obviously it needs to be recoded as it doesn't work, anyway its a cool little hack and would love to have it on my forum again.

Thanks
Send me a PM, I will update this but you cannot re-release it I want to wait for UKBL to re-release for 4.0 and he's busy in real life atm.

There are some others FB mods out for 4.0 some similar some different sorta check them out and or look for more

http://www.vbulletin.org/forum/showthread.php?t=228610
http://www.vbulletin.org/forum/showthread.php?t=229686

Originally Posted by greenbuildpost View Post
For now I just added "?ref=nf" into the address on the style manager template and it seems to be working with only adding the custom Facebook URL in the details field.


Originally Posted by GTX2 View Post
Great mod !!

I just think my forum members won't find easy to find the facebook member number (most don't understand this kind of stuff).
Is there any way of associate their email with their member number, in order to fill out that field automatically?
Maybe i'm asking for something impossible
When you create the profile field in admincp... the "Description area" allows you to enter in html so you can take a screenshot then use:


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

With an image and the number or vanity named circled in red ahh be creative and they will see an image along with your instrcutions on how to find it .

Originally Posted by COBRAws View Post
Is there a way so people can input their facebook IDor their screen name? Remember that now with FB you can have your own profile URL like: facebook.com/cobraws

I mean, Like a conditional field or something, you can enter the numerical ID or just the screen name ID.

Cya!
Do what greenbuildpost did by tinkering with the codes and check your url's of friends who have and have not done this to see how to change the code

Mike
__________________
Daddy Does Dios and Figs!
https://www.linkedin.com/in/thelastsuperman

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
  #73  
Old 12 Dec 2009, 23:13
bayXzor bayXzor is offline
 
Join Date: Oct 2009
thank you..
Reply With Quote
  #74  
Old 22 Dec 2009, 11:32
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Originally Posted by TheLastSuperman View Post
Send me a PM, I will update this but you cannot re-release it I want to wait for UKBL to re-release for 4.0 and he's busy in real life atm.
Mike
That's great Mike, only just seen your post about this, sent you a PM in regards to it, thank you very much its very kind of you
Reply With Quote
  #75  
Old 08 Jan 2010, 09:56
Miss Chatterbox's Avatar
Miss Chatterbox Miss Chatterbox is offline
 
Join Date: Sep 2009
Installed! Excellent idea! Thank you!
__________________
www.the-t-bar.org
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 14:35.

Layout Options | Width: Wide Color: