If you are really adventerous and want to allow people to remain hidden (if they so selected) and have Mods and Admins see those people in italics; replace the code in postlist.php with the following instead of the code above:
[]// Find out how many are browsing this forum
$query = "
SELECT {$config['tbprefix']}Online.O_Username,{$config['tbprefix']}Online.O_Extra,{$config['tbprefix']}Online.O_Type,{$config['tbprefix']}Users.U_Status,{$config['tbprefix']}Users.U_Visible,{$config['tbprefix']}Users.U_Number
FROM {$config['tbprefix']}Online,{$config['tbprefix']}Users
WHERE {$config['tbprefix']}Online.O_Username = {$config['tbprefix']}Users.U_Username
AND {$config['tbprefix']}Online.O_Extra LIKE '$Board%'
ORDER BY {$config['tbprefix']}Online.O_Last DESC
";
$sth = $dbh -> do_query($query);
$r = "";
$a = 0;
while (list($Who,$Extra,$Type,$Status,$Visible,$Uid) = $dbh -> fetch_array($sth)) {
if ( ($user['U_Status'] != "Administrator") && ($Visible == "no") ) {
$a++;
continue;
}
if ( ($user['U_Status'] == "Administrator" || $user['U_Status'] == "Moderator") && ($Visible == "no")) {
if ( $Type == "r" ) {
if ( empty($r) ) $r = "<strong><em><a href="{$config['phpurl']}/showprofile.php?Cat=$Cat&User=$Uid&Board=$Board&what=ubbthreads&page=$page&view=$view&sb=$sb&o=$o">$Who</a></em></strong>";
else $r .= ", <strong><em><a href="{$config['phpurl']}/showprofile.php?Cat=$Cat&User=$Uid&Board=$Board&what=ubbthreads&page=$page&view=$view&sb=$sb&o=$o">$Who</a></em></strong>";
}
else {
$a++;
}
continue;
}
if ( $Type == "r" ) {
if ( empty($r) ) $r = "<a href="{$config['phpurl']}/showprofile.php?Cat=$Cat&User=$Uid&Board=$Board&what=ubbthreads&page=$page&view=$view&sb=$sb&o=$o">$Who</a>";
else $r .= ", <a href="{$config['phpurl']}/showprofile.php?Cat=$Cat&User=$Uid&Board=$Board&what=ubbthreads&page=$page&view=$view&sb=$sb&o=$o">$Who</a>";
}
else {
$a++;
}
}
if ( !empty($r) ) $r = "Browsing this forum: $r";
if ( $a > 0 ) $r .= " and $a anonymous users";
// -------------------------
// Set up some sorting stuff
[/]