Quote:
Originally Posted by wattieuk
Can anyone tell me how to do an "if" they have a gamertag, use the XBox link ELSE show the avatar? I want it to show one or the other. Thanks.
|
You can replace the avatar code by
FieldXX is the name of your gamertag field (see the first post)
Code:
<if condition="$post['fieldXX']">
<div class="smallfont" align="center">
<iframe src="http://gamercard.xbox.com/$post[fieldXX].card" target="_blank" scrolling="no" frameBorder="0" height="140" width="204">$post[fieldXX]</iframe>
</div>
<else>
<div class="smallfont">
<center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></center>
</div>
</if>
Don't forget to remove the other codes.
Hope this helps