PDA

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


Dream
06 Aug 2006, 02:10
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
06 Aug 2006, 11:22
yeb...
thanks alot.

alserb
15 Aug 2006, 20:12
Great :)

Thanks

kungfujesus
05 Nov 2006, 16:52
Nice! Saves me from always clicking Last Activity when looking over the shoulders of my members!

gforce75
28 May 2007, 03:12
Ha, nice way to spy on the members. I'll give this one a crack.

dackdigital
02 Jul 2007, 09:19
ok gracias, instalado

Subah
02 Jul 2007, 11:22
Cool , Thanks :)

keyness
02 Jul 2007, 23:12
Wow, that's a simple but very nice addon, thank you.

MickDoneDee
06 Jul 2007, 07:42
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
06 Jul 2007, 10:11
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
29 Jan 2008, 19:09
Hi, does it work at 3.7?

redlabour
12 Jan 2009, 23:23
Works at 3.8!

Shaheen
02 Sep 2009, 17:15
bundle of thx , work perfect with 3.8.4

keyness
26 Dec 2010, 16:45
Works with Vb4?