Jump to content

Suggestion: Exclude Guests from Online User List

Featured Replies

Posted

When you are viewing the list of online users would it be possible to have little check box or some such to either include or exclude guests in the list. It would be helpful sometimes just to see the list of registered users.

Thanks

Scroll to the bottom of the online users list, where it says Sort By: Show All Users, select Show Registered Only.

Anyway to make this the default action?

Add this to the end of the link in the template.

&show_mem=reg

Should look like this

app=members&module=online&section=online&show_mem=reg

OR, if you don't mind editing source file....

/admin/applications/members/module_public/online/online.php

Find


'show_mem'  => ( $this->request['show_mem'] AND in_array( $this->request['show_mem'], array( 'reg', 'guest', 'all' ) ) ) ? $this->request['show_mem'] : 'all',

Change to


'show_mem'  => ( $this->request['show_mem'] AND in_array( $this->request['show_mem'], array( 'reg', 'guest', 'all' ) ) ) ? $this->request['show_mem'] : 'reg',



Just changing the last bit to 'reg' instead of 'all'.

Worked like a charm, thanks for the help.

I have almost 200 guests on at any one time usually, and wading through them was tedious.


Worked like a charm, thanks for the help.



I have almost 200 guests on at any one time usually, and wading through them was tedious.




I've wanted a way to set the default behavior for the online list for years. I know just what you mean.



Add this to the end of the link in the template.





Should look like this



app=members&module=online&section=online&show_mem=reg



OR, if you don't mind editing source file....



/admin/applications/members/module_public/online/online.php



Find



'show_mem'  => ( $this->request['show_mem'] AND in_array( $this->request['show_mem'], array( 'reg', 'guest', 'all' ) ) ) ? $this->request['show_mem'] : 'all',

Change to


'show_mem'  => ( $this->request['show_mem'] AND in_array( $this->request['show_mem'], array( 'reg', 'guest', 'all' ) ) ) ? $this->request['show_mem'] : 'reg',



Just changing the last bit to 'reg' instead of 'all'.



Thank you. :)

Glad to be of help. :)

It's always bugged me too, just never looked into changing it until I saw this.

  • Author

Scroll to the bottom of the online users list, where it says Sort By: Show All Users, select Show Registered Only.




Oops - sorry. At least my stupidity helped others! Thanks everyone.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.