View Full Version : Who's online by last activity
Iris_Ford
01-11-2015, 02:46 PM
Hello everyone! :)
Is there a way of sorting the "who's online" by last active and not in alphabetical order?
I found a template modification, but unfortunately it's for vB 3.x
I'd appreciate if someone could help with a suggestion.
Thank you.
I think you just have to click on the "Last Activity" heading. If you click it again it will sort in the opposite order.
Iris_Ford
01-11-2015, 02:54 PM
I think you just have to click on the "Last Activity" heading. If you click it again it will sort in the opposite order.
Thank you for the quick reply.
I knew that, but what i meant ...is there any way to display in that order by default?
Also, on the main page of the forum @
<<WHAT'S GOING ON?
Currently Active UsersCURRENTLY ACTIVE USERS
There are currently 20 users online. 7 members and 13 guests
Most users ever online was 66, 01-06-2015 at 11:21 PM.>>
I'd like the members to be displayed by last activity rather than alphabetic.
:(
You can create a new plugin using hook location online_start and this code:
if ($sortfield == '') {
$sortfield = 'time';
}
If you don't know how to create a plugin, you do it from the admincp under "Plugins & Products > Add New Plugin, and you can use the online manual here: http://www.vbulletin.com/docs/html/main/add_plugin
That should handle the Who's Online page. I'll take a look at the main page, but I don't think that's going to be as easy.
Actually, it looks like someone's done this already: https://vborg.vbsupport.ru/showthread.php?t=233369
but I haven't used it myself.
Iris_Ford
01-11-2015, 03:16 PM
You can create a new plugin using hook location online_start and this code:
if ($sortfield == '') {
$sortfield = 'time';
}
If you don't know how to create a plugin, you do it from the admincp under "Plugins & Products > Add New Plugin, and you can use the online manual here: http://www.vbulletin.com/docs/html/main/add_plugin
That should handle the Who's Online page. I'll take a look at the main page, but I don't think that's going to be as easy.
Thank you very much, i'll try to add that plugin.
And that would be great. I'd really prefer the members in the main page to be displayed by "last activity".
:up:
I double-posted above, but after looking that up I searched and found a mod that supposedly handles both, so you might want to try that instead.
Iris_Ford
01-11-2015, 04:06 PM
I double-posted above, but after looking that up I searched and found a mod that supposedly handles both, so you might want to try that instead.
Just installed and tested it, unfortunately only helps with the "who's online display", it doesn't sort the active members from the main page.
Just installed and tested it, unfortunately only helps with the "who's online display", it doesn't sort the active members from the main page.
Yeah, I looked at the code and did see how it was going to do that, but there was a screen shot of that section so I assumed it did somehow. I'll look at it a little later, unless someone else comes up with something.
Iris_Ford
01-11-2015, 04:37 PM
Yeah, I looked at the code and did see how it was going to do that, but there was a screen shot of that section so I assumed it did somehow. I'll look at it a little later, unless someone else comes up with something.
That's very kind of you, kh99.
Thanks for the support.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.