Jump to content

Suggestion: Exclude Guests from Online User List


BN_IT_Support

Recommended Posts

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

Link to comment
Share on other sites


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. :)
Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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