PDA

View Full Version : Mini Mods - Sort Who's Online by Last Activity


Dream
08-05-2006, 10:00 PM
This plugin will make the default sort type on Who's Online by Last Activity instead of by Name.

To install just import the plugin and activate it.

aLReeMi
08-06-2006, 09:22 AM
yeb...
thanks alot.

alserb
08-15-2006, 06:12 PM
Great :)

Thanks

kungfujesus
11-05-2006, 02:52 PM
Nice! Saves me from always clicking Last Activity when looking over the shoulders of my members!

gforce75
05-28-2007, 01:12 AM
Ha, nice way to spy on the members. I'll give this one a crack.

dackdigital
07-02-2007, 07:19 AM
ok gracias, instalado

Subah
07-02-2007, 09:22 AM
Cool , Thanks :)

keyness
07-02-2007, 09:12 PM
Wow, that's a simple but very nice addon, thank you.

MickDoneDee
07-06-2007, 05:42 AM
Thanks for that useful mod, Dream. I'd also like to order "Currently Active Users" on FORUMHOME by lastactivity. How do I do that?

Update:

The order of loggedinusers is selected in admincp:
vBulletin Options > Forums Home Page Options > Display Logged in Users?
Displays those users that have been active in the last XXX seconds on the home page, where XXX is the value specified by your Cookie Time-Out option (Default is last 15 minutes). Not recommended for sites with hundreds of simultaneous users. The Alphabetical option requires more resources than the random option.Only two options are available: Alphabetical or random.

The index.php file has a section:
// ### LOGGED IN USERS ###################################

a few lines below that is:
WHERE session.lastactivity > $datecut
" . iif($vbulletin->options['displayloggedin'] == 1 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "

username can be replaced with lastactivity which overrides the vbulletin options setting.

Dream
07-06-2007, 08:11 AM
Sorry Mick, I know nothing about the code on FORUMHOME. You could try to ask for help with this in the General vBulletin Mod discussions forum.

redlabour
01-29-2008, 05:09 PM
Hi, does it work at 3.7?

redlabour
01-12-2009, 09:23 PM
Works at 3.8!

Shaheen
09-02-2009, 03:15 PM
bundle of thx , work perfect with 3.8.4

keyness
12-26-2010, 02:45 PM
Works with Vb4?