PDA

View Full Version : Forum Home Enhancements - UKBL ~ FaceBook profile link on Postbit


UKBusinessLive
12 Mar 2009, 22:37
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://www.vbulletin.org/forum/external/2009/03/31.png

https://www.vbulletin.org/forum/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
12 Mar 2009, 22:38
:D Reserved ;)

DobieGillis©
12 Mar 2009, 22:40
you are the best!

DobieGillis©
12 Mar 2009, 23:14
again, my humbelest thanks!

Jasem
12 Mar 2009, 23:35
Good work, thank you......

Installed

DobieGillis©
13 Mar 2009, 00:16
going to try one with Myspace. lol

macc
13 Mar 2009, 01:46
Nice work - Thanks :rolleyes: :rolleyes:

regards

macc

UKBusinessLive
13 Mar 2009, 02:24
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
13 Mar 2009, 03:24
Thanks for this hack ;)

How can I modify the position of the icon?

https://www.vbulletin.org/forum/

scottny
13 Mar 2009, 06:50
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
13 Mar 2009, 08:12
Thanks for this hack ;)

How can I modify the position of the icon?

https://www.vbulletin.org/forum/

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
13 Mar 2009, 08:18
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
13 Mar 2009, 18:03
Which of the profile field selections do I use for this? There are 6 to choose from.

UKBusinessLive
13 Mar 2009, 18:08
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
14 Mar 2009, 00:21
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©
14 Mar 2009, 22:36
all good!

UKBusinessLive
16 Mar 2009, 20:09
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
16 Mar 2009, 21:01
Oh, i was wondering about this, a good idea ^^

UKBusinessLive
16 Mar 2009, 21:11
Oh, i was wondering about this, a good idea ^^


Thanks :cool:

RedDevil
17 Mar 2009, 01:09
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
17 Mar 2009, 01:24
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
17 Mar 2009, 01:29
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
17 Mar 2009, 01:46
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://www.vbulletin.org/forum/

UKBusinessLive
17 Mar 2009, 19:15
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
18 Mar 2009, 20:54
nice mod thankx for sharing

trotskid
19 Mar 2009, 15:26
Did you manage to move your icon Trotskid ?? :)

Finally! And looks great ;)

https://www.vbulletin.org/forum/

Just followed by the last icon:

....$post[skypeicon]<if condition="is_member_of($bbuserinfo, 6, 5, 10,.......

Greetings

UKBusinessLive
19 Mar 2009, 19:35
Finally! And looks great ;)

https://www.vbulletin.org/forum/

Just followed by the last icon:

....$post[skypeicon]<if condition="is_member_of($bbuserinfo, 6, 5, 10,.......

Greetings

Nice :D

RedDevil
21 Mar 2009, 18:40
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
25 Mar 2009, 14:33
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://www.vbulletin.org/forum/

|
|

First, upload https://www.vbulletin.org/forum/ 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
25 Mar 2009, 19:39
<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
25 Mar 2009, 19:58
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
25 Mar 2009, 20:01
<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
25 Mar 2009, 20:06
If put said down.low the image put down but saw little up from others images

UKBusinessLive
25 Mar 2009, 20:37
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
25 Mar 2009, 21:24
Finally i fixed..!!!The facebook ID where is...?

UKBusinessLive
25 Mar 2009, 21:25
Finally i fixed..!!!The facebook ID where is...?

Well done Buddy :D:D

RedHacker
25 Mar 2009, 21:40
I haven't ID Facebook and saw as put 12 numbers..!!!!!Can find this my members....?

UKBusinessLive
25 Mar 2009, 22:38
I haven't ID Facebook and saw as put 12 numbers..!!!!!Can find this my members....?
Not sure what you mean??

RedHacker
26 Mar 2009, 01:02
Who find the ID...?

UKBusinessLive
26 Mar 2009, 02:53
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
14 Apr 2009, 07:37
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
14 Apr 2009, 18:11
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
18 Apr 2009, 23:24
i had the field hidden works great thanks

MaRµ
18 May 2009, 04:12
How can I add link on profile???

ubcforums
18 May 2009, 07:26
installed :D....working like charm...thanks

MaRµ
19 May 2009, 04:40
Sorry I dint clik INSTALL, now I did:

How can I add link on profile???

valdet
29 May 2009, 18:09
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
29 May 2009, 18:50
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
13 Jun 2009, 04:30
hmz, installed this this morning and if i click on a user's FB icon it directs me to my own FB page...

Mellymonster
13 Jun 2009, 08:13
This is great, and also if you want to do it for Myspace you can use the Myspace image
https://www.vbulletin.org/forum/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
13 Jun 2009, 08:14
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
13 Jun 2009, 13:09
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
18 Jun 2009, 19:55
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
19 Jun 2009, 20:18
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
05 Jul 2009, 15:16
What about now that is possible to change the link on own facebook?
:D

Ov3rrun
18 Jul 2009, 16:26
I need it works with vanity name's ??????? ex: facebook.com/myname

UKBusinessLive
20 Jul 2009, 07:04
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
31 Jul 2009, 12:31
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
31 Jul 2009, 12:55
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
10 Aug 2009, 14:37
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
24 Aug 2009, 19:36
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
11 Sep 2009, 22:50
^^
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
15 Sep 2009, 18:16
nice one simply rocks :)

principino1984
16 Sep 2009, 18:40
<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
18 Sep 2009, 23:48
very nice thanks :)

blaize
26 Oct 2009, 23:56
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
15 Nov 2009, 18:41
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
17 Nov 2009, 15:30
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
17 Nov 2009, 18:47
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.

GTX2
22 Nov 2009, 09:35
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
25 Nov 2009, 20:52
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 Dec 2009, 17:44
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 ;)

http://www.vbulletin.org/forum/showthread.php?t=228610
http://www.vbulletin.org/forum/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 Dec 2009, 23:13
thank you..

taffy056
22 Dec 2009, 11:32
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
08 Jan 2010, 09:56
Installed! Excellent idea! Thank you! :up:

greenbuildpost
22 Jan 2010, 13:56
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
07 Feb 2010, 15:38
It appears that the </a> is missing from the link??

Nice mod, members love it.

ramires
10 Feb 2010, 22:11
nice mod, thanks

biggeorge
08 Mar 2010, 14:09
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
21 Mar 2010, 23:24
no cant modify :S help me!

sdfontanini
16 Nov 2010, 09:06
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
16 Nov 2010, 09:12
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
16 Nov 2010, 10:03
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
16 Nov 2010, 11:23
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
17 Nov 2010, 15:58
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:
http://www.vbulletin.org/forum/showthread.php?t=233432
... it was already done for 4.x ;)

MatiasCandy
19 Nov 2010, 01:14
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
22 Sep 2011, 21:41
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
23 Sep 2011, 07:11
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.