Another great hack! Thanks
I also added the user's online status to this as well... for those interested:
edit file
getsmods.php
Change the main query to read:
Code:
$users = $DB_site->query("
SELECT DISTINCT
session.userid AS sessionuserid,
user.*, userfield.* FROM user
LEFT JOIN userfield ON (userfield.userid = user.userid)
LEFT JOIN session ON (session.userid = user.userid
AND session.userid <> 0
AND user.invisible = 0
AND session.lastactivity>0)
WHERE ( user.usergroupid=$super_moderators_group_id )
ORDER BY user.username");
Find:
Code:
if ($user[field2] == "") $user[location] = " ";
else $user[location] = $user[field2];
And add AFTER:
Code:
if ($showonline) {
unset($onlinestatus);
if ($user[sessionuserid]>0) {
eval("\$onlinestatus = \"".gettemplate("postbit_online")."\";");
} else {
eval("\$onlinestatus = \"".gettemplate("postbit_offline")."\";");
}
}
Template Change
supermodsbit
Add