Remove 'Help' button from menu

by Mick in Tutorials on 02 Feb 2013


By default SMF does not have the ability to hide buttons from the main menu via admin page. Sometimes we dont want to show all buttons or we have created new linked buttons somewhere else. ie footer or side block.

Lets use the 'Help' button for example. To hide buttons from the menu, simply open:

Sources/Subs.php, find:

'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),


Replace with:

'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => false,
'sub_buttons' => array(
),
),


We just changed true to false. Yes, that simple.
Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time.
    
0 Comments

Get more stuff like this

Subscribe to our mailing list and get interesting content and updates.