Code: Select all
AND user_avatar_type <> 0
where did this come from?
Code: Select all
username IS NOT NULL
Code: Select all
AND user_avatar_type <> 0
Code: Select all
username IS NOT NULL
Code: Select all
<table valign="bottom" width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<!-- BEGIN top_five_newest -->
<td align="center" width="33%">
<div id="avatar">
{top_five_newest.USER_AVATAR_THUMB}
</div>
<div id="name">
{top_five_newest.USERNAME_FULL}
</div>
</td><!-- END top_five_newest -->
</tr>
</table>
Code: Select all
foreach ($newest_users as $row)
{
$username_string = get_username_string('full', $row['user_id'], $row['username'] );
$template->assign_block_vars('top_five_newest',array(
'USER_AVATAR' => get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $row['user_avatar_width'], $row['user_avatar_height'] ),
'USER_AVATAR_THUMB' => ($row['user_avatar']) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], ($row['user_avatar_width'] > $row['user_avatar_height']) ? "auto" : ("230" / $row['user_avatar_height']) * $row['user_avatar_width'], ($row['user_avatar_height'] > $row['user_avatar_width']) ? "auto" : ("230" / $row['user_avatar_width']) * $row['user_avatar_height']) : '',
'USERNAME_FULL' => $username_string)