View Full Version : Xfire in profile
1shot1kill
01-17-2005, 11:04 AM
I would like the members on the board i run to show their xfire profile picture in their profile on our board, what i would like is a box where they can enter their xfire name and it will automaticly show their xfire profile pic on their profile on our board, is this possible?
Info about the profile picture can be found on xfire, though this explains all of it:
How do I access my Miniprofile?
To embed your miniprofile into any web page, use the following HTML: <a href="http://profile.xfire.com/USERNAME"> <img src="http://miniprofile.xfire.com/USERNAME.png" alt="USERNAME Xfire Miniprofile" border=0> </a>
To embed your miniprofile into a PHPBB signature (ie, in forums), use the following BBcode:
[url=http://profile.xfire.com/USERNAME][img]http://miniprofile.xfire.com/USERNAME.png[ img][ url]
In either case, replace USERNAME with your Xfire username (your original username with all lowercase letters and numbers, not your nickname). These sets of code will display your Xfire miniprofile, as well as link the image back to your Xfire profile so anyone can get your full Xfire information!
Ofcourse i removed the 2 /'s i nthe end tags so it would show the code and not the picture.
Colin F
01-17-2005, 12:02 PM
I would like the members on the board i run to show their xfire profile picture in their profile on our board, what i would like is a box where they can enter their xfire name and it will automaticly show their xfire profile pic on their profile on our board, is this possible?
Info about the profile picture can be found on xfire, though this explains all of it:
How do I access my Miniprofile?
To embed your miniprofile into any web page, use the following HTML: <a href="http://profile.xfire.com/USERNAME"> <img src="http://miniprofile.xfire.com/USERNAME.png" alt="USERNAME Xfire Miniprofile" border=0> </a>
To embed your miniprofile into a PHPBB signature (ie, in forums), use the following BBcode:
[url=http://profile.xfire.com/USERNAME][img]http://miniprofile.xfire.com/USERNAME.png[ img][ url]
In either case, replace USERNAME with your Xfire username (your original username with all lowercase letters and numbers, not your nickname). These sets of code will display your Xfire miniprofile, as well as link the image back to your Xfire profile so anyone can get your full Xfire information!
Ofcourse i removed the 2 /'s i nthe end tags so it would show the code and not the picture.
You can do that without modifying the code.
What you'll need to do is add a custom profile field named xfire username, and build that into your templates.
1shot1kill
01-17-2005, 03:23 PM
Thanks, could you give me a quick explaination on how to do that?
1shot1kill
01-18-2005, 04:08 PM
Bump.
Anybody got any instructions on how to go about doing this?
Colin F
01-18-2005, 06:46 PM
add a custom profile field.
note the fieldid
add into your postbit templates, wherever you want it to show:
<a href="http://profile.xfire.com/$post[fieldX]"><img src="http://miniprofile.xfire.com/$post[fieldX].png" /></a>
1shot1kill
01-18-2005, 08:01 PM
Ok thanks, i'll try that.
Ok, i got it working, however when people do not enter their xfire name it shows a big red X in the profile page where the xfire picture would be. I know how to install mods and edit templates etc i'm just not very familiar with php, how would i make it so that the picture only shows up profiles of people that have entered their xfire name in the custom profle field i made and just doesn't show at all when people do not have that field entered? The field id for that profile field is 8.
Also is there a way to not show the custom field i made for anybody? I added the custom field and selected the option that will keep it private, but it still shows up for me as i am administrator, instead of the xfire name i would just want the xfire picture to show up.
On the picture you can see where i want it.
http://www.bramsteverink.demon.nl/here.jpg
1shot1kill
01-21-2005, 02:28 PM
Would this be possible at all?
1shot1kill
02-02-2005, 07:47 PM
Last attempt, anybody that could code this? I'm sure there are many more people running game sites that are interested in it.
syndicate
02-17-2005, 11:34 PM
done
https://vborg.vbsupport.ru/showthread.php?t=76533
Creed
02-21-2005, 02:48 AM
That only puts in postbit, what you need to do to put in the profile is this, remember to replace fieldx with the field number you created for their xFire username:
In MEMBERINFO template find:
<if condition="$vboptions['usereferrer']">
Add above:
<!-- [Xfire Hack ] -->
<if condition="$userinfo['fieldx']">
<fieldset class="fieldset">
<legend>xFire Info</legend>
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
<a href="http://profile.xfire.com/$userinfo[fieldx]"><img src="http://miniprofile.xfire.com/$userinfo[fieldx].png" border="0"></a>
</div>
</div>
</fieldset>
</if>
<!-- [end Xfire Hack ] -->
1shot1kill
03-07-2005, 12:02 PM
Sorry, didn't see this before, thanks, seems to work like a charm. :up:
Chief Corn
03-15-2005, 05:13 PM
on my site all i did was rename all phrases for yahoo with xfire, made the links point to http://profile.xfire.com/$userinfo[yahoo], and uploaded an xfire image over the im_yahoo.gif. a bit tedious but xfire users don't use yahoo... :rolleyes:
1shot1kill
03-23-2005, 09:11 PM
Eh, xfire did an update and there are 4 different miniprofiles now with 4 sizes each, is there a way to edit this so people can at least choose the style they want?
Creed
03-24-2005, 02:59 AM
Gimmie a little bit and sure thing :)
In memberinfo template replace what you already have with this:
**NOTE** replace field14 with whatever field you have for your xFire username, and replace field18 with whatever field you have for your profile type!
<!-- [Xfire Hack ] -->
<if condition="$userinfo['field14']">
<fieldset class="fieldset">
<legend>xFire Info</legend>
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
<if condition="$userinfo['field18'] == 'Classic'">
<a href="http://profile.xfire.com/$userinfo[field14]"><img src=http://miniprofile.xfire.com/bg/bg/type/0/$userinfo[field14].png width=440 height=111 border="0"></a>
</if>
<if condition="$userinfo['field18'] == 'Fantasy'">
<a href="http://profile.xfire.com/$userinfo[field14]"><img src=http://miniprofile.xfire.com/bg/os/type/0/$userinfo[field14].png width=440 height=111 border="0"></a>
</if>
<if condition="$userinfo['field18'] == 'Combat'">
<a href="http://profile.xfire.com/$userinfo[field14]"><img src=http://miniprofile.xfire.com/bg/co/type/0/$userinfo[field14].png width=440 height=111 border="0"></a>
</if>
<if condition="$userinfo['field18'] == 'SciFi'">
<a href="http://profile.xfire.com/$userinfo[field14]"><img src=http://miniprofile.xfire.com/bg/sf/type/0/$userinfo[field14].png width=440 height=111 border="0"></a>
</if>
</div>
</div>
</fieldset>
</if>
<!-- [end Xfire Hack ] -->
Now create a new profile field:
Type: Single-Selection Menu
Title: xFire Profile Type
Description: Choose the type of profile you would like to display in your profile
Options:
Classic
Fantasy
Combat
SciFi
Set Default: Yes, but No First Blank Option
Field Required: No
Field Editable by User: Yes
Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No
Allow User to input their own value for this option: No
Working fine for me :)
www.hdclan.org/forums/member.php?u=1
1shot1kill
03-27-2005, 11:31 AM
Thanks, works great.
Creed
03-27-2005, 07:14 PM
Thanks, works great.
Glad to hear it!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.