Skip to:
Content
Pages
Categories
Search
Top
Bottom

who’s online avatars in sidebar – bp_has_members() type=online – increase time?

  • @shanebp

    Moderator

    I need to know how to increase the time period during which avatars show up in the “Who’s Online” sidebar.
    If a user is online but inactive, their avatar disappears from the sidebar after a few minutes.
    We want more avatars to appear there even though the user might be inactive but still have the site open.

    It would be good to know how the bp_has_members() type=online is determined.

    Or is this done by increasing the WP session timeout?

    Or… ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @shanebp

    Moderator

    Adjustable ~Line 141 in bp-core-classes.php
    `
    if ( ‘online’ == $type )
    $sql = “AND DATE_ADD( um.meta_value, INTERVAL 10 MINUTE ) >= UTC_TIMESTAMP()”;
    `

    @gian-ava

    Participant

    Hi, I’d like to increment this value as well.

    But is there a way to do it with a function in “functions.php” instead of modyfing a “core” file?
    Thanks to anyone who stops by and suggest the code!
    ;-)

    @r-a-y

    Keymaster

    Sounds like a good candidate for an enhancement ticket.

    Please create a new ticket here:
    https://buddypress.trac.wordpress.org/newticket

    Login with the same credentials you use here on bp.org.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘who’s online avatars in sidebar – bp_has_members() type=online – increase time?’ is closed to new replies.
Skip to toolbar