The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UKBL ~ FaceBook profile link on Postbit Details »» | |||||||||||||||||||||||||||||||||
UKBL ~ FaceBook profile link on Postbit
Developer Last Online: Feb 2012
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 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 :up: 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 Code:
<if condition="$post['joindate']"><div class="postbit">$vbphrase[join_date]: $post[joindate]</div></if> Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)"> <if condition="$post['field11']"> <a href="http://www.facebook.com/home.php/#/profile.php?id=$post[field11]&ref=profile"> <img alt="My Facebook" border="0" src="http://www.yourforum.com/images/misc/facebook.png" border="0"/> </if></if> 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 Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)"> 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
Screenshots
Show Your Support
|
Comments |
#62
|
|||
|
|||
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 ... |
#63
|
|||
|
|||
^^
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.. !! |
#64
|
|||
|
|||
nice one simply rocks
|
#65
|
|||
|
|||
Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)"> <if condition="$post['field12']"> <a href="http://www.facebook.com/$post[field12]?ref=profile"> <img alt="Il mio Facebook" border="0" src="images/misc/facebook.png" border="0"/> </if></if> |
#66
|
|||
|
|||
very nice thanks
|
#67
|
|||
|
|||
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. Quote:
The first is for the numerical id & the second is used if the facebook profile uses a vanity url. |
#68
|
|||
|
|||
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 |
#69
|
|||
|
|||
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? |
#70
|
|||
|
|||
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.
|
#71
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|