• idonic

    (@idonic)


    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

    http://wordpress.org/extend/plugins/wp-useronline/

Viewing 3 replies - 1 through 3 (of 3 total)
  • interested to know if this can be achieved.

    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
    DrT_Music

    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
    			OR timestamp < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL %d SECOND)
    		", $user_name, self::$options->timeout ) );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-UserOnline] Filter users by username / Disable IP filter’ is closed to new replies.