That code works great Xenon
You do need the $DB_site in the gobal variables and you also need to add this code:
PHP Code:
if (strstr($user[location],'nop-')) {
$guests[$count][location] = substr($user[location],4);
$guests[$count][nop] = "<b>No Permission: </b>";
} else {
$guests[$count][location] = $user[location];
$guests[$count][nop] = '';
}
Instead of:
PHP Code:
$guests[$count][location] = $user[location];
in online.php to make it work for guests as well.
Thanks for the help guys, this is a great addition to online.php