News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[TIP/TRICK] Hide Help Button

Started by MadTogger, February 09, 2012, 03:52:58 AM

Previous topic - Next topic

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:

'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(
            ),

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!

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

Regards..,

MT

ascaland

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?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

TheListener


Matthew K.

Uh or you could just use Menu Editor Lite to add buttons :P

TheListener

Quote from: Labradoodle-360 on March 11, 2012, 08:13:45 PM
Uh or you could just use Menu Editor Lite to add buttons :P

Er Lab ya cheeky so and so this tip is to remove a button NOT add one.

Matthew K.

So? Menu Editor can add, remove, or modify any buttons or all buttons :P

TheListener

MKA has 84 mods my latest one has 30ish.

The less mods the better :P

Matthew K.

Why's that? Mods are better in most cases than modifying the code directly because you can undo what you do :P

aleen

useful tips had been provided....thanks for sharing...... :)


Advertisement: