euantor |
10-28-2009 10:00 PM |
XBL Details In Profile
1 Attachment(s)
This template edit was created for and first featured at http://www.360elites.net
The edit will add a section to your user profiles that show a user's XBox Live Avatar and their Gamercard.
Step 1:
Create a Profile Field (if you haven't already)
Type: Single Line Text Box
Name: XBL Gamertag
Remember the field's ID.
Step 2:
Go to the Style Manager (Styles & Templates->Style Manager)
Select "Edit Templates" for the theme you want to edit.
Now, find the Template MEMBERINFO
This is under the category "Member Info"
Step 3:
Find:
Code:
<!-- / link bar -->
Below add:
Code:
<!-- XBL Details -->
<if condition="$userinfo[fieldXX]">
<div id="$id" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('$id')"><img id="collapseimg_$id" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_'.$id]}.gif" alt="" border="0" /></a>
<a name="$id"></a>
<span class="block_name"><center>XBox Live Details</center></span>
</h4>
<div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}"><div class="alt1 smallfont block_row block_footer">
<center>
<table border="0">
<tr>
<td>
<img src="http://avatar.xboxlive.com/avatar/$userinfo[fieldXX]/avatar-body.png">
</td>
<td>
<iframe src="http://gamercard.xbox.com/$userinfo[fieldXX].card" scrolling="no" frameBorder="0" height="140" width="204">$userinfo[fieldXX]</iframe>
</td>
</tr>
</table>
</center>
</div></div>
</div>
</if>
Change all the "XX" terms to the field ID number for you XBox Live gamertag field you made in Step 1.
Hit the "Save & Reload" button and voila. All done.
DEMO: http://www.360elites.net/member.php?u=1
|