• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Users Online (how long users appear for)

Booth

Well-known member
#1
In VB I could make the members appearing in users online stay for longer in the AdminCP. By default it was 15 but for new or quiet sites, disrupted by switching to XF, it's useful to change this to 60 minutes to make the site busier to members.

Any idea how I can tweak this so that members display in the users online for 60 mins instead of 15?
 

Brogan

XenForo moderator
Staff member
#2
From the dev himself :)

/**
* Returns the length of time after the last recorded activity that a user is considered 'online'
*
* @return integer Time in seconds
*/
public function getOnlineStatusTimeout()
{
// TODO: source this from an option?
return XenForo_Application::$time - 900;
}

line 414, XenForo_Model_Session