Add usergroups to Staff online now

!!!ATTENTION!!!:
It works with primary and secondary user groups (thanks to luutruong!)

Description:
You can add usergroups to the "staff online now"-sidebar without giving them moderative or administrative permissions.


Direction:

  1. Open the template "sidebar_online_users"
  2. Find
    Код:
    <xen:if is="{$user.is_moderator} OR {$user.is_admin}">
  3. You have to add at the end e.g.:
    Код:
    OR {$user.user_group_id} == 7 OR {$user.user_group_id} == 15 OR {$user.user_group_id} == 5
  4. Instead of my number at user_group_id you have to look up your ids of an usergroup.
When you have finished, it should be similiar as that (e.g.):
Код:
<xen:if is="{$user.is_moderator} OR {$user.is_admin} OR {$user.user_group_id} == 7 OR {$user.user_group_id} == 15 OR {$user.user_group_id} == 5">

For secondary user groups:
Do the steps 1 - 4, too, but you have to use this code (e.g. - thanks to luutruong!):
Код:
{$user.secondary_group_ids} == 19
 
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу