XF 1.2 Online Staff List

JpA

Active member
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
 
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:
Rich (BB 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.
 
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:
Rich (BB 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?
 
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.
 
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?
 
Back
Top Bottom