News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

how to remove any button from menu bar?

Started by WiLd BiLLa, August 20, 2011, 09:44:16 AM

Previous topic - Next topic

WiLd BiLLa

i want to remove member list and help button from my menu  bar .. how it is possible?

Sir Osis of Liver

/Sources/Subs.php - look for this -



// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),




Remove the buttons you don't want from the button array.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: