1. 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)

Discussion in 'XenForo Questions and Support' started by Booth, Oct 7, 2010.

  1. Booth

    Booth Well-Known Member

    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?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Very soon to be an option in the ACP...
  4. MentaL

    MentaL Active Member

    ah very good, i like control over the time out.
  5. Kier

    Kier XenForo Developer Staff Member

    Beta 2 has this as an option.

    Screen shot 2010-10-07 at 14.29.56.png
    Cool, DSF, JVCode and 5 others like this.
  6. MentaL

    MentaL Active Member

    Good job Kier.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Coming soon? ;) :D

    Great addition for those of us with, err, less busy sites...
  8. Booth

    Booth Well-Known Member

    Thanking you, and also Brogan for the temporary fix :)

Share This Page