$hook_query_fields .= ", avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar "; $hook_query_joins .= " LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON (avatar.avatarid = user.avatarid) LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON (customavatar.userid = user.userid) ";
$display_name_if_no_avatar = true; // Change to false if you do NOT want names appearing $display_default_image = ''; // Change to the path to an image if you want to use a default image (takes precedence over $display_name_if_no_avatar) $max_height = '40px'; // Change if you want. $max_width = '40px'; // Change if you want. $stylebit = 'max-width:'.$max_width.';max-height:'.$max_height.';'; if ($loggedin['avatarpath'] || $loggedin['hascustomavatar']) {$loggedin['musername'] = '<img src="image.php?u=' . $loggedin['userid'] . '&type=thumb&dateline=' . TIMENOW . '" style="'.$stylebit.'" />';} // Displays user avatar thumbnail elseif ($display_default_image) {$loggedin['musername'] = '<img src="$display_default_image" style="'.$stylebit.'" />';} // Displays default image elseif (!$display_name_if_no_avatar) {continue;} // Continues the current loop without processing the username.
Check out the comments so you know what to change.
EDIT: Posted this before I saw your response. I'll check that out in a minute.
EDIT2: Ah, the new stuff I put here already solves that, I think.