R Renji Проверенные Сообщения 35 Реакции 10 Баллы 8,105 7 Фев 2014 #1 Here ::::: У Вас недостаточно прав для просмотра ссылок. Вход или Регистрация
Hope Premium Сообщения 48,318 Решения 22 Реакции 71,959 Баллы 40,905 7 Фев 2014 #2 !!!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: Open the template "sidebar_online_users" Find Код:Скопировать <xen:if is="{$user.is_moderator} OR {$user.is_admin}"> 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 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 Позитивный голос 0 Негативный голос
!!!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: Open the template "sidebar_online_users" Find Код:Скопировать <xen:if is="{$user.is_moderator} OR {$user.is_admin}"> 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 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