News:

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

Main Menu

Remove Help from menu

Started by diamondred123, July 15, 2010, 07:04:47 PM

Previous topic - Next topic

diamondred123

Link to Mod

Remove Help From Menu

This mod will remove the help button from the menu bar, please feel free to request more mods on my Simplemachines account:
http://www.simplemachines.org/community/index.php?action=profile;u=230606

--------------------------------------------------------------------------------------------------------------
I know lots of you do not like the help button on the menu bar because you have so many mods that it does not show all you want or you just dont like it there for some reason, so this mod will remove it from the menu.
Learner but knows a little

TehCraw

Any fool can write code that a computer can understand. Good programmers write code that humans can understand. - Martin Fowler

Jakob Fel

That sounds pretty good. It does something similar to a code you can execute on SMFForFree forums.
Freelance writer, entrepreneur-in-training and DRM-free advocate
Support and Community Management at SMFNew Free Forum Hosting

Afro

You can also just go into the Sources/subs.php and remove this

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


I personally dont like many mods siting on my package page.

Sabre™

Or, since youre only removing the button and anyone can still navigate to it via url, changing one line of code instead of removing it all, will do exactly the same thing but make it visible still for the admin incase they're modifying the template(s) or whatever. Mines an FAQ page for example.
$context['allow_admin']. Then just change it back to true if ever you need it.
Nice mod mate :)
Global permission will make it more flexible ;)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


tRu3_sKiTz0

Can ya help me out here man? I wanna remove the help button but I have tinypoertal running and there are some extra lines. If I replace it all, my forum crashes. How can I do this? Here is what my help button sub looks like.
Quote from: Subs.php
),
         'help' => array(
            'title' => $txt['help'],
            'href' => $scripturl . '?action=help',
            'show' => true,
            'sub_buttons' => array(
               'tphelp' => array(
                  'title' => 'TinyPortal',
                  'href' => $scripturl . '?action=tpmod;sa=help',
                  'show' => true,
               ),

Sabre™

It should look something like this, so remove it all

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


That will remove the links to both help sections.
If you still have issues, please attach your subs.php and somebody will remove it for you.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


tRu3_sKiTz0

Oh I'm so sorry, I got this fixed already. Usually I'm pretty good about updating. Thanks though.

Sabre™

lol No problem buddy, glad you got it sorted :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


ɔɔɔɔɔɔuɥoɾ

Quote from: Afro on July 16, 2010, 02:54:23 PM
You can also just go into the Sources/subs.php and remove this

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


I personally dont like many mods siting on my package page.
If you parse the mod you will see, its does exactly that.

I just created a mod which does this too and more, its called "Add or Remove Buttons", gives you an admin panel to disable several buttons as needed


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Sudhakar Arjunan

Hi Admin,

I have got a mod sitting in help menu, so i coded it like this and try to install according to my forum code.


<operation>
<search position="replace"> ),
'help' => array(
'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/help.png" alt="'.$txt['help']. '"/>&nbsp; ' . $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),</search>
<add> // This is where help use to be!!!
</add>
</operation>


When i try to install, it is throwing me a error, when i checked what it was trying using the edit icon next to parse,


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


I could see it was not taking the image inside the tile url,


'title' => '<img align="absMiddle" src="'. $settings['images_url']. '/menu_icons/help.png" alt="'.$txt['help']. '"/>&nbsp; ' . $txt['help'],


Could you help me.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

3d-Alfalfa

To be fair to code development and to maintain the integrity of the original install, any time you are presented with the "'show' => true," option, you needn't remove the relevant code block as this would render the entire feature unusable in the future.

With regards to the help button and the code to be altered as outlined above, simply change 'show' => true to 'show' => false. This will turn off the help button without damaging the code.

For anything else to be hidden that does not include the "show" option, adding css "display:hide;" to the html tag containing the contents to be hidden will serve that purpose, again without removing features that may hold future significance.

Cheers.  ;)

pols1337

Hi will this be updated to 2.0.2?

Advertisement: