Skip to:
Content
Pages
Categories
Search
Top
Bottom

Who’s Online widget has too short an idle timeout

  • I don’t know when it began but the Who’s Online widget is dropping users after 2 minutes idle. I’d like to extend that time limit if possible but i dont know what are of code to be looking in. BP-core-widgets.php does not appear to have any timeout functions in it. Any idea?

Viewing 5 replies - 1 through 5 (of 5 total)
  • This is looking like it is an issue in conjunction with DRP WPUM – where you have settings to check if a banned user is still online. I suppose what i want is to disconnect how these two things affect each other.

    Code:
    if(is_user_logged_in())
    {
    $data = array(
    ‘interval’ => (get_option(‘wpum_online_interval’, self::DEFAULT_INTERVAL) * 60 * 10800),
    ‘nonce’ => wp_create_nonce("add_online_user")
    );

    wp_localize_script(‘wpum_user’, ‘PingServerData’, $data);
    wp_enqueue_script(‘wpum_user’);
    }

    could this be the right spot?


    pengume
    Participant

    @pengume

    @bitofgrace Hey I am seeing the same issue as well. I actually made a post about it where I havent got any word back yet. Have you gotten this to work properly or any more ideas on what my be causing this? maybe we can help eachother because I would like the avatars to stay present when they are logged in. I am almost tempted to write my own but I would like to get the current one working sounds more realistic.

    my post:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/online-now-widget-quick-to-take-me-offline/

    I have not received any type of response.. and still no luck in trying to solve it myself. So sorry.
    -grace


    pengume
    Participant

    @pengume

    No need for apologies, I appreciate your quick response. I’ll come back with any findings I may have, but probably won’t look to heavily into it until tonight…


    pengume
    Participant

    @pengume

    Okay well I did just create two usernames for buddypress and tried it on the main site and sure enough it took one offline when I was not. Looks like either this is the way they wanted to function (can’t see why) or some sort of caching issue like you stated above. I created a ticket here so maybe we can get more of an official word on the matter. https://buddypress.trac.wordpress.org/ticket/3590

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Who’s Online widget has too short an idle timeout’ is closed to new replies.
Skip to toolbar