Welcome to xenForoLeaks.com

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, download premium xenForo resources and much more. We pride our website on bringing you the latest xenForo Premium Resources FREE. As a registered member you allowed to download unlimited resources for FREE. Thank you for taking your time to stop by and check out our website. Have yourself a great day.

Custom Staff Online Titles

iSexy

Administrator
Staff member
Joined
Nov 5, 2018
Messages
2,407
Points
113
Location
United States
Website
xenforoleaks.com
This is a short and simple guide to achieve custom staff online titles since ordinarily it shows your profile user title instead of a staff title for staff online.

Go to the template widget_members_online.

Find:
Code:
<xf:if is="$user.is_staff">
<li class="block-row">
<div class="contentRow">
<div class="contentRow-figure">
<xf:avatar user="$user" size="xs" />
</div>
<div class="contentRow-main contentRow-main--close">
<xf:username user="$user" rich="true" />
<div class="contentRow-minor">
<xf:usertitle user="$user" />
</div>
</div>
</div>
</li>
</xf:if>
For Administrator Replace with:
Code:
<xf:if is="{{$xf.visitor.isMemberOf(3)}}">
<li class="block-row">
<div class="contentRow">
<div class="contentRow-figure">
<xf:avatar user="$user" size="xs" />
</div>
<div class="contentRow-main contentRow-main--close">
<xf:username user="$user" rich="true" />
<div class="contentRow-minor">
<div class="usertitle">Administrator</div>
</div>
</div>
</div>
</li>
</xf:if>
For other usergroups edit this and replace "3" with the number of your usergroup:
Code:
<xf:if is="{{$xf.visitor.isMemberOf(3)}}">
Also change the title by editing the part where it says "Administrator" in between the 2 div tags.

To find the number of your usergroup click on the usergroup in settings from your admin panel and look in the URL. The number you see in the URL is the number of your usergroup.

To do this for all your staff usergroups or other usergroups simply copy ALL of the code I provided for administrator and paste a second set of it right below the first one.

Now when you go to view staff online the usertitle it should have now be the custom usertitle.

I'd also like to add one note to this. Make sure your primary usergroup is your staff usergroup or this won't work. Initially from Xenforo clean install all primary usergroups are registered and the staff groups are all secondary. This will keep you from getting it to work. You will need to make the staff usergroup your primary usergroup.