Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Who’s Online Setting

  • How can I set the threshold for determining how long someone is connected to the site? Currently, the Who’s Online Avatar widget drops members if they have not hit a page within about 3 minutes. Is there anyway to set the threshold to 10 minutes?

    If not, is anyone familiar with which core file contains the function code for this widget?

    Thanks.

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

    @shanebp

    test

    I don’t think you can set the online interval just for that widget.

    You can adjust the online interval for ‘everything’ by hacking a core file – not recommended.
    But it’s a small hack – so as long as you remember it (lol) when you update BP

    In plugins/buddypress/bp-core/bp-core-classes, ~Line 245
    `
    if ( ‘online’ == $type )
    $sql = “AND DATE_ADD( um.meta_value, INTERVAL 5 MINUTE ) >= UTC_TIMESTAMP()”;
    `

    change the interval to whatever you want.

    Thanks @shanebp. That was exactly what I was looking for.

    I have offline documentation on all the tweaks I have made to core. So I am organized around it.

    Thanks for the help.

    Thanks @shanebp .. tweaked and tested. It did what I was looking for.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.