• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Online Staff List

JpA

Active member
#1
How do I make it so if I set someone as a certain group and they are on the website how do I make it so their name shows up on the "Staff online now" list. Please help
 

Jeremy

Well-known member
#5
Since you are on 1.1.5, in the same template find:
Code:
                        <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
Replace with:
Code:
                        <xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, 2}">
Still change the number to suit your needs.

If i use the first set of code do I not change anything?
Its a find and replace.
 

JpA

Active member
#6
Since you are on 1.1.5, in the same template find:
Code:
                        <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
Replace with:
Code:
                        <xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {xen:helper ismemberof, $user, 2}">
Still change the number to suit your needs.


Its a find and replace.
I got to appearance then templates right?
 

Jeremy

Well-known member
#7
ACP -> Appearance -> (Style you want to modify) -> Templates -> sidebar_online_users (use the search in the top right of the table)
 

Jeremy

Well-known member
#9
A user group ID. Go to:
ACP -> Users -> User Groups -> (Group you want to show up in staff online)

The URL will include the ID. An example (with ID highlighted) is:
user-groups/moderating.4/edit

Replace 2 with that ID.
 

JpA

Active member
#10
A user group ID. Go to:
ACP -> Users -> User Groups -> (Group you want to show up in staff online)

The URL will include the ID. An example (with ID highlighted) is:
user-groups/moderating.4/edit

Replace 2 with that ID.
Okay can I keep adding OR with that same line of code but a diffrent number?
 
#17
I am doing this, however for some users they only see the additional user group when they log out... If they log in that group is not shown. What am I missing?