1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XBOX Live Custom Profile FIeld

Discussion in 'XenForo Questions and Support' started by toodlez, Nov 3, 2011.

  1. toodlez

    toodlez Active Member

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

    <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:
    <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!
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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).
  3. toodlez

    toodlez Active Member

    Yeah I checked in the Info tab, nothing was there... I'll try again..
    The code looks good?
  4. toodlez

    toodlez Active Member

    Checked it out, it does not show that code in the source code on my Info tab
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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:

  6. toodlez

    toodlez Active Member

    In case anyone else is wondering, here is a code example of my working XBL Gamercard in custom profiles

    <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>

Share This Page