Restricting "User was last seen on..:"


Active member
Is there a way to restrict the "User was last seen on" information to make it only available to moderators and administrators?
The information is shown if one clicks on the link on the username on the index page.

Jake Bunce

XenForo moderator
Staff member
The individual user can control that:

Screen shot 2011-06-13 at 4.07.27 PM.png

Then the admin / mod groups normally have this permission enabled which allows them to always see a user's status regardless of their invisible status:

Admin CP -> Users -> List User Groups -> [click a group] -> Bypass user privacy


If you want to force Show online status for your users then see this post:


XenForo moderator
Staff member
You can edit the appropriate templates to wrap the code in a conditional.

<xen:if is="{$visitor.is_admin} or {$visitor.is_moderator}">
This content will display to Administrators and Moderators only.

You would have to do it for the member card and profile page.