View Full Version : Forum Home Enhancements - UKBL ~ FaceBook profile link on Postbit
UKBusinessLive
03-11-2009, 10:00 PM
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
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 :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
<if condition="$post['joindate']"><div class="postbit">$vbphrase[join_date]: $post[joindate]</div></if>
Directly above it add
<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>
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 :eek:
Don't forget to change the usergroup condition with the number of the usergroups that you want to be able to view this
<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
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
UKBusinessLive
03-12-2009, 08:38 PM
:D Reserved ;)
DobieGillis?
03-12-2009, 08:40 PM
you are the best!
DobieGillis?
03-12-2009, 09:14 PM
again, my humbelest thanks!
Jasem
03-12-2009, 09:35 PM
Good work, thank you......
Installed
DobieGillis?
03-12-2009, 10:16 PM
going to try one with Myspace. lol
Nice work - Thanks :rolleyes: :rolleyes:
regards
macc
UKBusinessLive
03-13-2009, 12:24 AM
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
trotskid
03-13-2009, 01:24 AM
Thanks for this hack ;)
How can I modify the position of the icon?
https://vborg.vbsupport.ru/
scottny
03-13-2009, 04:50 AM
I want to install but where is the number on Facebook? Sorry I am really computer challenged when it comes to things like this.
UKBusinessLive
03-13-2009, 06:12 AM
Thanks for this hack ;)
How can I modify the position of the icon?
https://vborg.vbsupport.ru/
by looking at your picture you'll want to move it down a bit more, Just add it down the code a bit further in the postbit template, not sure without looking at your postbit, but just move it down below the Yahoo icon, you'll see the code for it, just make sure its on a new line and not in the middle of a line of code ;)
UKBusinessLive
03-13-2009, 06:18 AM
I want to install but where is the number on Facebook? Sorry I am really computer challenged when it comes to things like this.
below is what a normal profile page looks like in facebook, with the user id Colored red, thats the Url of the page when your logged onto your facebook profile.
http://www.facebook.com/home.php/#/profile.php?id=123456789123&ref=profile
This is what we have in the code, with the user number replaced with the custom profile file number, in red also
http://www.facebook.com/home.php/#/profile.php?id=$post[field11]&ref=profileThe thing that makes this show up or not in the postbit, is the custom user field in the edit options of the users CP
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. ;)
K4GAP
03-13-2009, 04:03 PM
Which of the profile field selections do I use for this? There are 6 to choose from.
UKBusinessLive
03-13-2009, 04:08 PM
Which of the profile field selections do I use for this? There are 6 to choose from.
Hi Gary
The User profile file which you've created just for this, You can't use an existing one :confused:
Sweeks
03-13-2009, 10:21 PM
Wouldnt it better to use <if condition="$show['member']"></if> wrapped around the edit so that all members can see it, but guests cant? Also you have added two border="0"'s to the edit ;)
________
Alcohol rehab advice (http://www.rehab-forum.com/alcohol-rehab/)
DobieGillis?
03-14-2009, 08:36 PM
all good!
UKBusinessLive
03-16-2009, 06:09 PM
Thanks for this hack ;)
How can I modify the position of the icon?
http://img14.imageshack.us/img14/1885/facebookj.jpg
Did you manage to move your icon Trotskid ?? :)
obmob
03-16-2009, 07:01 PM
Oh, i was wondering about this, a good idea ^^
UKBusinessLive
03-16-2009, 07:11 PM
Oh, i was wondering about this, a good idea ^^
Thanks :cool:
RedDevil
03-16-2009, 11:09 PM
I was going to try this however the line to search for doesnt exist.
<if condition="$post['joindate']"><div class="postbit">$vbphrase[join_date]: $post[joindate]</div></if>
Is this compatible with (vBulletin 3.8.1 Patch Level 1)
or maybe been changed?
UKBusinessLive
03-16-2009, 11:24 PM
I was going to try this however the line to search for doesnt exist.
<if condition="$post['joindate']"><div class="postbit">$vbphrase[join_date]: $post[joindate]</div></if>
Is this compatible with (vBulletin 3.8.1 Patch Level 1)
or maybe been changed?
Is what compatible with 3.8.1 the hack or the above code??
The Hack Should be, I'm not sure what your trying to do with that condidtional?
RedDevil
03-16-2009, 11:29 PM
Is what compatible with 3.8.1 the hack or the above code??
The Hack Should be, I'm not sure what your trying to do with that condidtional?
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 :)
RedDevil
03-16-2009, 11:46 PM
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/
UKBusinessLive
03-17-2009, 05:15 PM
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 in line with the msn aim etc if possible, but its ok now.
http://www.vrbforums.co.uk/pics/fbook.jpg
Try and move it further down the postbit code or add it after the other icons and see???
Sometimes Postbits are heavily modified and its a bit of a job to keep everyone happy ;)
Glad you enjoy it though
:D
010081
03-18-2009, 06:54 PM
nice mod thankx for sharing
trotskid
03-19-2009, 01:26 PM
Did you manage to move your icon Trotskid ?? :)
Finally! And looks great ;)
https://vborg.vbsupport.ru/
Just followed by the last icon:
....$post[skypeicon]<if condition="is_member_of($bbuserinfo, 6, 5, 10,.......
Greetings
UKBusinessLive
03-19-2009, 05:35 PM
Finally! And looks great ;)
https://vborg.vbsupport.ru/
Just followed by the last icon:
....$post[skypeicon]<if condition="is_member_of($bbuserinfo, 6, 5, 10,.......
Greetings
Nice :D
RedDevil
03-21-2009, 04:40 PM
Finally! And looks great ;)
http://img14.imageshack.us/img14/8951/33533817.jpg
Just followed by the last icon:
....$post[skypeicon]<if condition="is_member_of($bbuserinfo, 6, 5, 10,.......
Greetings
cheers :)
down.low
03-25-2009, 12:33 PM
I'm a 3.8.1 user
|
This code doesn't work:
<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>|
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:
<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:
<if condition="$show['member']">
<if condition="$post['field??']">
<a href="http://www.facebook.com/home.php/#/profile.php?id=$post[field??]&ref=profile">
<img alt="Facebook" src="images/misc/facebook.png" border="0"/></a>
</if></if>|
Save the template and you're done.
|
RedHacker
03-25-2009, 05:39 PM
<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....?
UKBusinessLive
03-25-2009, 05:58 PM
I'm a 3.8.1 user
|
This code doesn't work:
<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>|
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:
|
http://i472.photobucket.com/albums/rr88/ps_auction/face2.jpg
|
|
First, upload http://i472.photobucket.com/albums/rr88/ps_auction/facebook.png to your server in this directory: images/misc/
Then edit postbit_legacy and look for this string:
<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:
<if condition="$show['member']">
<if condition="$post['field??']">
<a href="http://www.facebook.com/home.php/#/profile.php?id=$post[field??]&ref=profile">
<img alt="Facebook" src="images/misc/facebook.png" border="0"/></a>
</if></if>|
Save the template and you're done.
|
wow thanks for the update :D
i'll update my first post in a moment :up:
UKBusinessLive
03-25-2009, 06:01 PM
<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....?
Thats for the user groups that you want to be able to use this hack, Just add your registered members usergroup ID, plus your mods and admins, if you don't add the usergroup id for unregistered, or banned members then they will not be able to see the facebook icon ;)
RedHacker
03-25-2009, 06:06 PM
If put said down.low the image put down but saw little up from others images
UKBusinessLive
03-25-2009, 06:37 PM
If put said down.low the image put down but saw little up from others images
What you've said don't make sense?? :confused:
can you be a bit clearer??
RedHacker
03-25-2009, 07:24 PM
Finally i fixed..!!!The facebook ID where is...?
UKBusinessLive
03-25-2009, 07:25 PM
Finally i fixed..!!!The facebook ID where is...?
Well done Buddy :D:D
RedHacker
03-25-2009, 07:40 PM
I haven't ID Facebook and saw as put 12 numbers..!!!!!Can find this my members....?
UKBusinessLive
03-25-2009, 08:38 PM
I haven't ID Facebook and saw as put 12 numbers..!!!!!Can find this my members....?
Not sure what you mean??
RedHacker
03-25-2009, 11:02 PM
Who find the ID...?
UKBusinessLive
03-26-2009, 12:53 AM
Who find the ID...?
the member get the id from their facebook profile url, and enters this into their Custom profile field, once they do that, the icon shows in their post bit ;)
DieselMinded
04-14-2009, 05:37 AM
Something very crazy !!!!!!
<!-- Myspace start -->
<if condition="$post[field6]"><a href="http://www.myspace.com/$post[field6]" target="_blank">
<img src="images/misc/myspace.gif" border="0" alt="View Member's MySpace Page" /></a>
</if>
<!-- Myspace end -->
<!-- Facebook start -->
<if condition="$post[field11]"><a href ="http://www.facebook.com/profile.php?id=$post[field11]" target="_blank"><img src ="images/misc/facebook.gif" border="0" alt="View Member's FaceBook Profile" /></a>
</if>
<!-- Facebook end -->
in post bit
But IE is completely striping out the face book code , ITS NOT EVEN ON THE PAGE SOURCE !
dilbert
04-14-2009, 04:11 PM
I believe the Facebook ID is always a number, so you might want to consider using a Regular Expression setting. I added something like this previously for Facebook and LinkedIn and also added them to the memberlist page.
I used this for the Facebook ID: ^[0-9]{5,25}$|^$
DieselMinded
04-18-2009, 09:24 PM
i had the field hidden works great thanks
How can I add link on profile???
ubcforums
05-18-2009, 05:26 AM
installed :D....working like charm...thanks
Sorry I dint clik INSTALL, now I did:
How can I add link on profile???
valdet
05-29-2009, 04:09 PM
Gerry,
On Profile field in Admin panel, you need to use this regex, to have users enter exactly 10 numbers.
^([0-9]{10})$
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.
UKBusinessLive
05-29-2009, 04:50 PM
Gerry,
On Profile field in Admin panel, you need to use this regex, to have users enter exactly 10 numbers.
^([0-9]{10})$
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 :D
rrudeboy
06-13-2009, 02:30 AM
hmz, installed this this morning and if i click on a user's FB icon it directs me to my own FB page...
Mellymonster
06-13-2009, 06:13 AM
This is great, and also if you want to do it for Myspace you can use the Myspace image
https://vborg.vbsupport.ru/external/2009/06/25.gif
and the code for that would be a little different not much
<if condition="is_member_of($bbuserinfo, 6, 7, 9)">
<if condition="$post['field11']">
<a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=$post[field11]">
<img alt="Myspace" border="0" src="http://www.yoursite.com/images/misc/icon_myspace.gif" border="0"/>
</if></if>
Mellymonster
06-13-2009, 06:14 AM
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 :)
Greek76
06-13-2009, 11:09 AM
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">
rrudeboy
06-18-2009, 05:55 PM
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.
rrudeboy
06-19-2009, 06:18 PM
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 ?
skariko
07-05-2009, 01:16 PM
What about now that is possible to change the link on own facebook?
:D
Ov3rrun
07-18-2009, 02:26 PM
I need it works with vanity name's ??????? ex: facebook.com/myname
UKBusinessLive
07-20-2009, 05:04 AM
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
http://www.facebook.com/home.php/#/profile.php?id=$post[field11]&ref=profile">
to something like this
http://www.facebook.com/[field11]
keeping the field ID for the actual Vanity name ;)
Pokerbanter
07-31-2009, 10:31 AM
All you need to do is to change the URL part of the code
http://www.facebook.com/home.php/#/profile.php?id=$post[field11]&ref=profile">
to something like this
http://www.facebook.com/[field11]
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.
Pokerbanter
07-31-2009, 10:55 AM
All you need to do is to change the URL part of the code
http://www.facebook.com/home.php/#/profile.php?id=$post[field11]&ref=profile">
to something like this
http://www.facebook.com/[field11]
keeping the field ID for the actual Vanity name ;)
Fixed it, it should actually be:
http://www.facebook.com/$post[field11]
rrudeboy
08-10-2009, 12:37 PM
dangit, it stopped working (after malicious hack)
code:
<if condition="is_member_of($bbuserinfo, 2, 4, 6, 7, 20, 19, 18, 16, 17)">
<if condition="$post['field7']">
<a href="http://www.facebook.com/home.php/#/profile.php?id=$post[field11]&ref=profile" target="_#new">
<img alt="My Facebook" border="0" src="http://everythingberry.net/forum/images/misc/facebook.png" border="0"/></a>
</if></if>
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.
joyboy2001
08-24-2009, 05:36 PM
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 ...
hippyTRIBE
09-11-2009, 08:50 PM
^^
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.. !!
itsheinz
09-15-2009, 04:16 PM
nice one simply rocks :)
principino1984
09-16-2009, 04:40 PM
<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>
I solved with a simply mod to it...
taffy056
09-18-2009, 09:48 PM
very nice thanks :)
blaize
10-26-2009, 09:56 PM
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.
taffy056
11-15-2009, 04:41 PM
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
greenbuildpost
11-17-2009, 01:30 PM
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?
greenbuildpost
11-17-2009, 04:47 PM
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.
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 ;)
COBRAws
11-25-2009, 06:52 PM
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!
TheLastSuperman
12-12-2009, 03:44 PM
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 :D
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 ;)
https://vborg.vbsupport.ru/showthread.php?t=228610
https://vborg.vbsupport.ru/showthread.php?t=229686
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.
:D
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:
<br />
<img src="htttp://www.yoursite.com/yourimage.jpg" style="border-style: none"/>
With an image and the number or vanity named circled in red ahh be creative :p and they will see an image along with your instrcutions on how to find it ;).
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
bayXzor
12-12-2009, 09:13 PM
thank you..
taffy056
12-22-2009, 09:32 AM
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 :up: its very kind of you
Miss Chatterbox
01-08-2010, 07:56 AM
Installed! Excellent idea! Thank you! :up:
greenbuildpost
01-22-2010, 11:56 AM
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.
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.
SVTOA
02-07-2010, 01:38 PM
It appears that the </a> is missing from the link??
Nice mod, members love it.
ramires
02-10-2010, 08:11 PM
nice mod, thanks
biggeorge
03-08-2010, 12:09 PM
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!
kuervo
03-21-2010, 09:24 PM
no cant modify :S help me!
sdfontanini
11-16-2010, 07:06 AM
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>
sdfontanini
11-16-2010, 07:12 AM
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>
sdfontanini
11-16-2010, 08:03 AM
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>
sdfontanini
11-16-2010, 09:23 AM
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>
TheLastSuperman
11-17-2010, 01:58 PM
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>
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>
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>
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>
Similar here:
https://vborg.vbsupport.ru/showthread.php?t=233432
... it was already done for 4.x ;)
MatiasCandy
11-18-2010, 11:14 PM
AdminCP and add a custom field > User Profile fields > Add New User Profile Field
Which "Profile Field Type"
I have 3.8.6 is there special install for that?
Sorry new to adding Badges and such
bestmilan
09-22-2011, 07:41 PM
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.
This was very helpful, thank you blaize :)
bestmilan
09-23-2011, 05:11 AM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.