Database query to show online status

raytrails

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?
 
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.
 
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.
 
Back
Top Bottom