Bump!
For my 3.8.3 site, I edited index.php exactly as jamoss described, but it did not appear to have any effect. I cleared my browser cache, ran the "Daily Statistics Log" scheduled task, ran the "Rebuild Statistics" counter update. Anything else I'm missing? I assume vBulletin has changed enough since 2007 to indicate something new, but I have no idea where to look.
Thanks in advance!
Edit: Here is my code:
Code:
$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.badlocation,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
$hook_query_fields
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
$hook_query_joins
WHERE session.lastactivity > $datecut AND user.usergroupid in (5,6,7,10)
$hook_query_where
" . iif($vbulletin->options['displayloggedin'] == 1 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");