News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Membergroups and menu options

Started by Ardenn, June 08, 2006, 02:28:10 PM

Previous topic - Next topic

Ardenn

I have looked in the docs and Im sure I have missed something, so forgive me please if this is the 100,000th time you guys have answered this.

   // Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
</td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


The above code referrence the permission 'allow_admin' that allows the admin only to see this menu option.  What should I reference if I want a specific membergroup say, Global Moderators, to see the menu option, or want only a membergroup that I custom created to see the option?
Ardenn // Traxxus
http://www.twinwand.com
D&D Play by Post Community Looking for Players and DM's

Ardenn

11 people, not one reply?  Does anyone have a comment or feedback about where I might want to look for this?
Ardenn // Traxxus
http://www.twinwand.com
D&D Play by Post Community Looking for Players and DM's

Ardenn

bump.  Still looking for an answer.
Ardenn // Traxxus
http://www.twinwand.com
D&D Play by Post Community Looking for Players and DM's

Advertisement: