• 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

Garamond

Well-known member
#1
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?
 

Chris D

XenForo developer
Staff member
#2
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.
 

Chris D

XenForo developer
Staff member
#4
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.