PDA

View Full Version : Xfire in Profile and Posbit/Postbit_Legacy


Twilkey
02-28-2007, 10:00 PM
First off, you must make a profile field.
Do this by logging into your AdminCP and going to,
User Profile Fields > Add New User Profile Field
Fill out the info as needed. No specifics really.

Next you must edit your postbit or postbit_legacy template.
Again done in the AdminCP.
Styles & Templates > Style Manager > Edit Templates > postbit_legacy(or postbit)

In the template
FIND:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

Right after $post[skypeicon] add a space and add this:
<if condition="$post[field7]"><A HREF="http://www.xfire.com/"><img src="http://www.domain.com/forum/image_name.png" border="0" alt="Xfire $post[field7]"></if></a>

Change the red to the profile field number.
Change the green to the url of the image you plan to see on your postbit.
Change the blue to whatever you want the image to link to.

Screenshot is in attachments.

prowarfare
03-01-2007, 12:38 PM
Didnt work for me. I added new profile field named it 7 then added code into postbit legecy and made it so it was how it was supposed to be but when i go to forums i don't see it. (i already added my xfire name into my profile)

Yvgeniy
03-01-2007, 05:11 PM
Thanks a lot for the mod! I was wondering, however, is there any way to place the custom profile field in with the rest of the Messaging applications? I mean, there's even a free space at the bottom right where it would fit in quite nicely. Also, concerning the blue link... Is there a way to have it open up that small window that gives you the information the way it does for AIM and other default applications on vB?

Hollanda
04-03-2007, 12:42 PM
Nice hack! Is it possible that the link go directly to the profile field?

silencerdeluxe
05-18-2007, 09:57 AM
Nice Hack!

To get the Profile-Site of each User, when clicking on the xfire-icon, change the link to this:

http://www.xfire.com/profile/$[field7]

(sry for my bad english) :o

nickster
05-19-2007, 01:23 AM
Wrong. Change the link to this:

http://www.xfire.com/profile/$post[fieldX]"

X = Whatever your profile field number is! :)

davewolf
11-23-2007, 11:21 PM
Just

http://www.xfire.com/profile/

works :)