$sql = "SELECT username, user_id, user_rank, user_opt, user_posts, user_regdate, user_from, user_website, user_email FROM ". BB_USERS ." WHERE user_id NOT IN(". EXCLUDED_USERS_CSV .")";
$sql = "SELECT username, user_id, user_rank, avatar_ext_id, user_opt, user_posts, user_regdate, user_from, user_website, user_email FROM ". BB_USERS ." WHERE user_id NOT IN(". EXCLUDED_USERS_CSV .")";
$user_id = $row['user_id'];
$avatar = get_avatar($user_id, $row['avatar_ext_id'], !bf($row['user_opt'], 'user_opt', 'dis_avatar'));
'U_VIEWPROFILE' => PROFILE_URL . $user_id,
'AVATAR' => $avatar,
<th class="{sorter: 'digit'}" ><b class="tbs-text">#</b></th>
<th class="{sorter: false}" ><b class="tbs-text">{L_AVATAR}</b></th>
<td>{memberrow.ROW_NUMBER}</td>
<td>{memberrow.AVATAR}</td>