mac27
03-02-2008, 12:06 PM
Hey I am trying to get it so that if a user has an avatar selected then it shows but if they don't then an avatar of my choice shows. This is not for in actual threads. It is for a meet our staff page.
Here is the php that I have.
<tr>
<td class="$bgclass">
<div style="padding: 2px; "><center><img src='image.php?u=$user[userid]' border='0' alt='$user[username]`s Avatar'></center></div>
<div><td class="$bgclass">
<a href="member.php?$session[sessionurl]u=$user[userid]" class="bigusername">$user[musername]</a> $user[onlinestatus]$user[usertitle]</div>
<div class="smallfont" title="Activity"><strong>Last Activity:</strong> $user[lastonline]</div>
<div class="smallfont" title="Location"><strong>$vbphrase[location_perm]:</strong> $user[field2]</div>
<div class="smallfont" title="User's Homepage"><strong>$user[username]'s Homepage:</strong>
<a href="$user[homepage]" target="_blank" dir="ltr">$user[homepage]</a></div>
<div class="smallfont" title="$user[username]'s Biography"><strong>Biography:</strong> <br> <textarea rows="3" cols="70"readonly="true">$user[field1]</textarea></div>
<if condition="$showforums">
<div class="smallfont">Forums $user[username] Maintains:  $user[forumbits]</div>
</if>
</td>
<td class="$bgclass" nowrap="nowrap">
<if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&u=$user[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="<phrase 1="$user[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if>
<br /><if condition="$show['emaillink']"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$user[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/email.gif" alt="<phrase 1="$user[username]">$vbphrase[send_message_via_email_to_x]</phrase>" border="0" /></a></if>
</td>
Any ideas?
Here is the php that I have.
<tr>
<td class="$bgclass">
<div style="padding: 2px; "><center><img src='image.php?u=$user[userid]' border='0' alt='$user[username]`s Avatar'></center></div>
<div><td class="$bgclass">
<a href="member.php?$session[sessionurl]u=$user[userid]" class="bigusername">$user[musername]</a> $user[onlinestatus]$user[usertitle]</div>
<div class="smallfont" title="Activity"><strong>Last Activity:</strong> $user[lastonline]</div>
<div class="smallfont" title="Location"><strong>$vbphrase[location_perm]:</strong> $user[field2]</div>
<div class="smallfont" title="User's Homepage"><strong>$user[username]'s Homepage:</strong>
<a href="$user[homepage]" target="_blank" dir="ltr">$user[homepage]</a></div>
<div class="smallfont" title="$user[username]'s Biography"><strong>Biography:</strong> <br> <textarea rows="3" cols="70"readonly="true">$user[field1]</textarea></div>
<if condition="$showforums">
<div class="smallfont">Forums $user[username] Maintains:  $user[forumbits]</div>
</if>
</td>
<td class="$bgclass" nowrap="nowrap">
<if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&u=$user[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="<phrase 1="$user[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if>
<br /><if condition="$show['emaillink']"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$user[userid]" rel="nofollow"><img src="$stylevar[imgdir_button]/email.gif" alt="<phrase 1="$user[username]">$vbphrase[send_message_via_email_to_x]</phrase>" border="0" /></a></if>
</td>
Any ideas?