Jump to content

Suggestion: Exclude Guests from Online User List


BN_IT_Support

Recommended Posts

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

Posted

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'.

Posted

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. :)

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...