The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Xfire in profile
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. |
#2
|
||||
|
||||
Quote:
What you'll need to do is add a custom profile field named xfire username, and build that into your templates. |
#3
|
|||
|
|||
Thanks, could you give me a quick explaination on how to do that?
|
#4
|
|||
|
|||
Bump.
Anybody got any instructions on how to go about doing this? |
#5
|
||||
|
||||
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> |
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
Would this be possible at all?
|
#8
|
|||
|
|||
Last attempt, anybody that could code this? I'm sure there are many more people running game sites that are interested in it.
|
#9
|
||||
|
||||
|
#10
|
||||
|
||||
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:
Code:
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 ] --> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|