Rigel Kentaurus
Well-known member
Great Mod, thanks for sharing..
I have two comments.
1) The tab is too much .. just a single link in the sidebar where it says "Staff Online Now" should be enough ... actually, I removed the tab myself (no option for that), and added the link on the template sidebar_online_users
2) The moderators are not sorted by username ... I have a bunch of moderators and they were listed in a random order. To fix that, I changed the query on XenStaff_Model_StaffGroupsUserIds::getAllUserIdsPerStaffGroup to
I have two comments.
1) The tab is too much .. just a single link in the sidebar where it says "Staff Online Now" should be enough ... actually, I removed the tab myself (no option for that), and added the link on the template sidebar_online_users
2) The moderators are not sorted by username ... I have a bunch of moderators and they were listed in a random order. To fix that, I changed the query on XenStaff_Model_StaffGroupsUserIds::getAllUserIdsPerStaffGroup to
Code:
return $this->_getDb()->fetchAll('
SELECT
user_group_relation.user_id, user_group_relation.user_group_id
FROM xf_user_group_relation user_group_relation
INNER JOIN xf_user user ON user_group_relation.user_id=user.user_id
WHERE
user_group_relation.user_group_id IN (' . $staffgroups . ')
ORDER BY user_group_relation.user_group_id, user.username
');