MyBB Community Forums

Full Version: modcp & admincp menu variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i need help trying to figure out how to make the admincp & modcp flush with the rest of the menu buttons.

i am trying {$modcplink} & {$admincplink} i also tried 
<a href="{$mybb->settings['bburl']}/{$admin_dir}/index.php" class="admincp">


but to no avail, much help is appreciated.
[Image: 1TxkY1r.png]

]site: localhost trying to create a theme.
{$modcplink} gets its value from header_welcomeblock_member_moderator template
<li><a href="{$mybb->settings['bburl']}/modcp.php" class="modcp">{$lang->welcome_modcp}</a></li>

{$admincplink} gets its value from header_welcomeblock_member_admin template
<li><a href="{$mybb->settings['bburl']}/{$admin_dir}/index.php" class="admincp">{$lang->welcome_admin}</a></li>

you have to take care of li elements when you use them as menu items
(2018-04-29, 05:34 AM).m. Wrote: [ -> ]{$modcplink} gets its value from header_welcomeblock_member_moderator template
<li><a href="{$mybb->settings['bburl']}/modcp.php" class="modcp">{$lang->welcome_modcp}</a></li>

{$admincplink} gets its value from header_welcomeblock_member_admin template
<li><a href="{$mybb->settings['bburl']}/{$admin_dir}/index.php" class="admincp">{$lang->welcome_admin}</a></li>

you have to take care of li elements when you use them as menu items

got it working thanks.