WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. idonic
    Member
    Posted 2 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

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

  2. obsidianz
    Member
    Posted 1 year ago #

    interested to know if this can be achieved.

  3. DrT_Music
    Member
    Posted 1 year 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
    DrT_Music

  4. MaxNorris
    Member
    Posted 1 year 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
    			OR timestamp < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL %d SECOND)
    		", $user_name, self::$options->timeout ) );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic