MyBB Community Forums

Full Version: Hide Links from Groups?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well on my nav bar I have made a dropdown but I'm not sure how to hide things like "Admin CP" and "Mod CP"?
You can use {$modcplink} and {$admincplink} in the menu, an example using the default header links:

<ul>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
{$modcplink}
{$admincplink}
</ul>


Then put any list items you only want moderators to see in the header_welcomeblock_member_moderator template and any list items you only want admins to see see in the header_welcomeblock_member_admin template

So the header_welcomeblock_member_admin template would be:

<li><a href="{$mybb->settings['bburl']}/{$config['admin_dir']}/index.php">{$lang->welcome_admin}</a></li>