vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Who's online by last activity (https://vborg.vbsupport.ru/showthread.php?t=316580)

Iris_Ford 01-11-2015 02:46 PM

Who's online by last activity
 
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.

kh99 01-11-2015 02:50 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.

Iris_Ford 01-11-2015 02:54 PM

Quote:

Originally Posted by kh99 (Post 2531915)
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.

:(

kh99 01-11-2015 03:12 PM

You can create a new plugin using hook location online_start and this code:
PHP 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.

kh99 01-11-2015 03:15 PM

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

Quote:

Originally Posted by kh99 (Post 2531919)
You can create a new plugin using hook location online_start and this code:
PHP 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:

kh99 01-11-2015 03:21 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.

Iris_Ford 01-11-2015 04:06 PM

Quote:

Originally Posted by kh99 (Post 2531922)
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.

kh99 01-11-2015 04:19 PM

Quote:

Originally Posted by Iris_Ford (Post 2531933)
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

Quote:

Originally Posted by kh99 (Post 2531943)
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.


All times are GMT. The time now is 09:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02061 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete