XF 1.4 Hide extra user info for staff only

Brogan

XenForo moderator
Staff member
You would need to edit the template and wrap the content in a conditional statement.
 

Adam K M

Active member
@Newt, the conditional you would need is:
HTML:
<xen:if is="{$visitor.is_admin} OR {$visitor.is_moderator}">
This content will show to Administrators and Moderators
</xen:if>
This was taken straight from this great resource.
 

Newt

Active member
You could also use $visitor.is_staff.
Does this code work for any staff member or only those in the staff usergroup and not the admins or moderators?

Oh and can I remove the staff's user info for everyone? I think it would be something in extra.css since there is no conditional involved?
 

Brogan

XenForo moderator
Staff member
It's not user group related, it's related to this setting:

upload_2015-1-23_14-11-0.png

If that is unchecked, is_staff will be false.
 
Top