XBOX Live Custom Profile FIeld

thunderup

Active member
I tried to create this similar to how you do in vBulletin..

Code:
<a href="http://www.xboxgamertag.com/search/ChuckTaylorr/"><img src="http://www.xboxgamertag.com/gamercard/ChuckTaylorr/fullnxe/card.png" alt="ChuckTaylorr's Gamercard" title="ChuckTaylorr's Gamercard" border=0/></a>

That is the HTML code for the gamercard to display... I assume you will take the {fieldID} replacing the 'ID' with the actual field ID assigned to the custom profile field and replace "ChuckTaylorr" which is what would be inputted into the Single-Text Field.

So my final code in the Value Display HTML field was:
Code:
<a href="http://www.xboxgamertag.com/search/{field9}/"><img src="http://www.xboxgamertag.com/gamercard/{field9}/fullnxe/card.png" alt="{field9}'s Gamercard" title="{field9}'s Gamercard" border=0/></a>

Now the single text field in my "Contact Details" displayed, I inputted my gamertag, hit save, and went to the profile page to view contact details, where nothing showed at all.

Any ideas what I need to do to make this work?
Thank you!
 
Now the single text field in my "Contact Details" displayed, I inputted my gamertag, hit save, and went to the profile page to view contact details, where nothing showed at all.

It should be under the Information tab in the profile unless you set the field to be a preference.

Check the source code of the page to see if the code is present. Maybe it's working but the image isn't showing up for some reason (such as a bad image location or a nonexistent image).
 
Yeah I checked in the Info tab, nothing was there... I'll try again..
The code looks good?
It should be under the Information tab in the profile unless you set the field to be a preference.

Check the source code of the page to see if the code is present. Maybe it's working but the image isn't showing up for some reason (such as a bad image location or a nonexistent image).
 
Make sure the profile field is set to be viewable on profile pages. And make sure the user in question has actually filled in that profile field.

Note that {field9} is not a valid token for the display html. The valid tokens are listed in the description:

If not empty, this allows you to format the value of this field using HTML, allowing you to do things like link or mark up the output. You may use these placeholders: {$value} - the field's display value; {$valueUrl} - the field's display value for use in a URL, {$choice} - the underlying value of the chosen option, and {$fieldId} - the ID of this field (my_identifier).
 
In case anyone else is wondering, here is a code example of my working XBL Gamercard in custom profiles

Code:
<a href="http://www.xboxgamertag.com/search/{$valueUrl}/"><img src="http://www.xboxgamertag.com/gamercard/{$valueUrl}/fullnxe/card.png" alt="{$valueUrl}'s Gamercard" title="{$valueUrl}'s Gamercard" border=0/></a>
 
Top Bottom