PDA

View Full Version : Currently Active Users list sorted by activity


Stifmeister2
09-30-2006, 07:21 PM
Is it possible to make the "Currently Active Users" list on the "What's Going On?" box on your forumhome list user sorted by last activity instead of random or alpabetical??


Kinda like this hack (https://vborg.vbsupport.ru/showthread.php?t=82977) which does it for the "Who's Online" list.

calorie
09-30-2006, 07:52 PM
Untested, but in your main forum index.php file find:

" . iif($vbulletin->options['displayloggedin'] == 1 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "

And replace with the following:

ORDER BY session.lastactivity DESC

Stifmeister2
09-30-2006, 11:43 PM
It works just fine! Thanks for your help sir. :)