Customizing SMF > Tips and Tricks

[TIP/TRICK] Hide Help Button

(1/3) > >>

MadTogger:
Question: How do I remove the 'Help' button in the menu.
Currently tested on 2.0.2

Tip/Trick: open ./Sources/Subs.php
Find:

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

--- End code ---

Replace with:

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

--- End code ---

Michael McNamara:
Thanks for sharing that... I'm guessing I can add menu items there as well?

Cheers!

MadTogger:

--- Quote from: Michael McNamara on March 10, 2012, 12:49:33 PM ---Thanks for sharing that... I'm guessing I can add menu items there as well?

Cheers!

--- End quote ---

I guess you can add menu buttons here, never really thought about it.

Regards..,

MT

Anthony`:
Yes, you can add menu buttons there. If you know how, you could instead use an integration hook which does the same thing too.

Kays:
For a user, hooks can be a bit of a pain. A manual edit would be easier. Or as well, there's a number of mods which do the same.

How do I add buttons to SMF 2.0?

Navigation

[0] Message Index

[#] Next page

Go to full version