How i coud let show one button (who online) only to the groups that are enabled to view it ?
i try to modifiy this code in Subs.php but with not solution:
'who' => array(
'title' => $txt['whosonline'],
'href' => $scripturl . '?action=who',
'show' => true,
'sub_buttons' => array(
),
I want that button will be visible ONLY to the groups that are enabled to view Who's online function.
somebody can help me ?
Not sure if this is exactly what you want, but if you go to Admin > Permissions, select the membergroup and click Modify. Then uncheck View Who's Online.
Try this...
'who' => array(
'title' => $txt['whosonline'],
'href' => $scripturl . '?action=who',
'show' => allowedTo('who_view'),
'sub_buttons' => array(),
),
Lainaus käyttäjältä: noex - tammikuu 26, 2009, 12:09:03 IP
Try this...
'who' => array(
'title' => $txt['whosonline'],
'href' => $scripturl . '?action=who',
'show' => allowedTo('who_view'),
'sub_buttons' => array(),
),
this is perfectly tha i need thx, but code is correct in this way
'who' => array(
'title' => $txt['whosonline'],
'href' => $scripturl . '?action=who',
'show' => allowedTo('who_view'),
'sub_buttons' => array(
),thx noex