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

Database query to show online status

Discussion in 'XenForo Questions and Support' started by Garamond, Oct 19, 2012.

  1. Garamond

    Garamond Well-Known Member

    What would the database query be if I want to show everyone's online status? Many members have hidden their status, and I don't want that.

    Btw, is there a way to make this uneditable by the members afterwards?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Administrators and I think Moderators can see all users, regardless of status. So if someone has hidden their online status, you should still be able to see it and it will only be hidden to normal registered members.
     
  3. Garamond

    Garamond Well-Known Member

    I know that, but I don't want some users to hide themselves from other users.
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    I misunderstood.

    "What would the database query be if I want to show everyone's online status?" made it sound like you wanted to see everyone who was online. I guess you want to force all users to be visible via a query.

    That query would be:
    Code:
    UPDATE xf_user SET visible = 1
    
    You would then probably want to remove the option in the template, which should be sufficient.
     
    Jake Bunce and Garamond like this.
  5. Garamond

    Garamond Well-Known Member

    Excellent, thanks :)

    Sorry for the confusing question.
     
    Chris D likes this.
  6. Chris D

    Chris D XenForo Developer Staff Member

    My fault :)
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page