Filter users by username / Disable IP filter (4 posts)

  1. idonic
    Posted 4 years ago #

    As the title states, is there any way of not filtering user online count by ip address and rather having it simply count the logged-in users?

    The website i'm referring to is closed so all users viewing it will have to be logged-in at that time..

    I know it's not the best way but owner insists multiple logins from same ip address should count..

    Thanks in advance


  2. obsidianz
    Posted 3 years ago #

    interested to know if this can be achieved.

  3. DrT_Music
    Posted 3 years ago #

    I do have a wish probably related to the same idea:
    My wife has her own blog which I am technically administring. When bot of us are logged in as administrators (using the same router and therefore the same IPV4) only my username shows up in the users online. Basically it would be nice if both usernames would be shown as this is the case in quick-chat.
    Thank you in advance

  4. MaxNorris
    Posted 3 years ago #

    Ran into this as well for a private site where everybody's on the local network and has the same IP. What seems to work for this setup anyway was an edit to core.php. Instead of having it drop entries from the online list by IP, have it do it by username instead. Starts at line 148 on my copy of the plugin, replaced that section with this.

    // Purge table
    		$wpdb->query( $wpdb->prepare( "
    			DELETE FROM $wpdb->useronline
    			WHERE user_name = %s
    		", $user_name, self::$options->timeout ) );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic