![]() |
UKBL ~ FaceBook profile link on Postbit
1 Attachment(s)
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 :D https://vborg.vbsupport.ru/external/2009/03/31.png https://vborg.vbsupport.ru/external/2009/03/32.png 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 :rolleyes: 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)"> 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 :eek: 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 |
:D Reserved ;)
|
you are the best!
|
again, my humbelest thanks!
|
Good work, thank you......
Installed |
going to try one with Myspace. lol
|
Nice work - Thanks :rolleyes: :rolleyes:
regards macc |
Thanks again everyone :D
You can by all means do one for myspace, bebo and the such, simply by replacing the destination url and adding the fieldX attribute where the member id belongs. Don't forget to add the image url too ;) Have fun :D |
|
I want to install but where is the number on Facebook? Sorry I am really computer challenged when it comes to things like this.
|
Quote:
|
Quote:
Code:
http://www.facebook.com/home.php/#/profile.php?id=123456789123&ref=profile Code:
http://www.facebook.com/home.php/#/profile.php?id=$post[field11]&ref=profile When they enter there user number from their facebook profile in this profile field the code is complete, without this number the facebook logo is not shown. ;) |
Which of the profile field selections do I use for this? There are 6 to choose from.
|
Quote:
The User profile file which you've created just for this, You can't use an existing one :confused: |
Wouldnt it better to use
Code:
<if condition="$show['member']"></if> Code:
border="0" ________ Alcohol rehab advice |
all good!
|
Quote:
|
Oh, i was wondering about this, a good idea ^^
|
Quote:
Thanks :cool: |
I was going to try this however the line to search for doesnt exist.
Code:
<if condition="$post['joindate']"><div class="postbit">$vbphrase[join_date]: $post[joindate]</div></if> or maybe been changed? |
Quote:
The Hack Should be, I'm not sure what your trying to do with that condidtional? |
Quote:
I was trying to find it in the postbit template, its ok found it its broken into 2 lines made it more challenging to find lol. cant get it to display will have to mess about not over good at codeing :) |
Nice got it working, after a bit of trial and error works better for me place above $template_hook[postbit_userinfo_right] as where your code said it messed up the side display.
It would be nice to be able to have it inline with the msn aim etc if possible, but its ok now. https://vborg.vbsupport.ru/ |
Quote:
Sometimes Postbits are heavily modified and its a bit of a job to keep everyone happy ;) Glad you enjoy it though :D |
nice mod thankx for sharing
|
Quote:
https://vborg.vbsupport.ru/ Just followed by the last icon: ....$post[skypeicon]<if condition="is_member_of($bbuserinfo, 6, 5, 10,....... Greetings |
Quote:
|
Quote:
|
I'm a 3.8.1 user | This code doesn't work: Code:
<if condition="is_member_of($bbuserinfo, 6, 7, 9)"> It's missing a </a> Has an extra border="0" Why URL for href? | | | If you'd like to get you're facebook icon here: | https://vborg.vbsupport.ru/ | | First, upload https://vborg.vbsupport.ru/ to your server in this directory: images/misc/ Then edit postbit_legacy and look for this string: Code:
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if> | Below it add this string after changing both ?? to your field number: Code:
<if condition="$show['member']"> Save the template and you're done. | |
<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
In there what put...? My team members or my team members who dont show facebook ID....? |
Quote:
i'll update my first post in a moment :up: |
Quote:
|
If put said down.low the image put down but saw little up from others images
|
Quote:
can you be a bit clearer?? |
Finally i fixed..!!!The facebook ID where is...?
|
Quote:
|
I haven't ID Facebook and saw as put 12 numbers..!!!!!Can find this my members....?
|
Quote:
|
Who find the ID...?
|
Quote:
|
All times are GMT. The time now is 06:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|