![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||
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 ![]() 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
Directly above it add
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
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 Show Your Support
No members have liked this post.
|
![]() |
||||
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 |
#76
|
|||
|
|||
I had this uninstalled from my forum for a while and just reinstalled it today. Now for some reason I don't need the "?ref=nf" for it to work.
No members have liked this post.
|
#77
|
||||
|
||||
![]()
It appears that the
is missing from the link?? Nice mod, members love it. No members have liked this post.
|
#78
|
|||
|
|||
nice mod, thanks
No members have liked this post.
|
#79
|
||||
|
||||
The install instructions in the zip are different from what is posted in the description.
I moved the link to the bottom where the rest of the social icons are... just made it flow better. I also added target="_blank" Thanks! No members have liked this post.
|
#80
|
|||
|
|||
no cant modify :S help me!
No members have liked this post.
Last edited by kuervo; 22 Mar 2010 at 01:14. |
#81
|
|||
|
|||
I also noticed the </a> was missing, wasted about 20 min figuring it out. :-) LOL
Here's the code for VB 4 <vb:if condition="$post['field25']"> <a href="http://www.facebook.com/home.php/#/profile.php?id=$post[field25]&ref=profile"> <img src="http://www.yoursite.com/forums/images/misc/fb.bmp"></a> </vb:if> No members have liked this post.
|
#82
|
|||
|
|||
here's another modification to the vb 4 version, where i have made the ID code appear on hover
<vb:if condition="$post['field25']"> <a href="http://www.facebook.com/home.php/#/profile.php?id=$post[field25]&ref=profile"> <img alt="{vb:raw post.field25}" border="0" src="http://www.coloradoevo.com/forums/images/misc/fb.bmp"></a> </vb:if> No members have liked this post.
|
#83
|
|||
|
|||
Last but not least I fixed all the issues with the coding. this was a real pain, here's the new vb 4 version. it directly links to your friends facebook accounts
<vb:if condition="$post['field25']"> <a href="http://www.facebook.com/profile.php?id={vb:raw post.field25}"> <img alt="My Profile" border="1" src="http://www.yourforum.com/forums/images/misc/fb.bmp"></a> </vb:if> No members have liked this post.
|
#84
|
|||
|
|||
finally one more, this one opens the links in a new page
<vb:if condition="$post['field25']"> <a href="http://www.facebook.com/profile.php?id={vb:raw post.field25}" target="_blank"> <img alt="Facebook Profile" border="1" src="http://www.yoursite.com/forums/images/misc/fb.bmp"></a> </vb:if> No members have liked this post.
|
#85
|
||||
|
||||
Originally Posted by sdfontanini
![]()
Originally Posted by sdfontanini
![]()
Originally Posted by sdfontanini
![]()
Originally Posted by sdfontanini
Similar here:![]()
http://www.vbulletin.org/forum/showthread.php?t=233432 ... it was already done for 4.x ![]()
__________________
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! No members have liked this post.
|
#86
|
|||
|
|||
I have 3.8.6 is there special install for that? Sorry new to adding Badges and such No members have liked this post.
|
#87
|
||||
|
||||
![]()
Originally Posted by blaize
![]()
This was very helpful, thank you blaize ![]() No members have liked this post.
|
#88
|
||||
|
||||
BTW, I cut off "&ref=profile" from the code above to validate the code.
It seems to be working fine in the latest versions of all major browsers. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:31.