Resource icon

XenForo 2.0 Custom Staff Online Titles

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,802
Points
823

Reputation:

LQD submitted a new resource:

Custom Staff Online Titles - replace ordinary usertitle for staff online with custom staff titles for one or multiple usergroups

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:
HTML:
<xf:if is="$user.is_staff">
                            <li class="block-row">
                                <div class="contentRow">
                                    <div class="contentRow-figure">
                                        <xf:avatar...

Read more about this resource...
 

billybobz

Active member
Registered
Joined
May 1, 2020
Messages
25
Points
13

Reputation:

[XF 2.2.0 beta 3] Instead of
<xf:if is="{{$xf.visitor.isMemberOf(3)}}">

I had to use:
<xf:if is="{{$user.isMemberOf(3)}}">

Otherwise, it would show all staff as the rank of whoever was viewing the page...in other words, if a Mod was logged in then all staff ranks showed "Mod". For the Owner, all ranks showed "Owner".
 
Top