News:

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

Main Menu

menu button rename problem

Started by MyTime, December 15, 2014, 06:26:50 PM

Previous topic - Next topic

MyTime

This is the code I got for a multiple drop down menu button, but I want it to be titled 'Gaming' instead of 'help', and have like buttons saying xbox , xbox360 , etc.
The problem i'm getting is I keep trying to rename the 'helps' to make a button named for the game system, But when I rename it it shows an error message for my forum in the sources file. Any tips?

this is the button code i'v been playing with:

                     'help' => array(
                'title' => $txt['help'],
                'href' => $scripturl . '?action=help',
                'show' => true,
                'sub_buttons' => array(
                    'help1' => array(
                    'title' => $txt['help'],
                    'href' => $scripturl . '?action=help1',
                    'show' => true,
                    ),
                    'help2' => array(
                    'title' => $txt['help'],
                    'href' => $scripturl . '?action=help2',
                    'show' => true,
                        'sub_buttons' => array(
                            'help2A' => array(
                            'title' => $txt['help'],
                            'href' => $scripturl . '?action=help2A',
                            'show' => true,
                            ),
                            'help2B' => array(
                            'title' => $txt['help'],
                            'href' => $scripturl . '?action=help2B',
                            'show' => true,
                            ),
                        ),
                    ),
                    'help3' => array(
                        'title' => $txt['help'],
                        'href' => $scripturl . '?action=help3',
                        'show' => true,
                    ),
                    'help4' => array(
                        'title' => $txt['help'],
                        'href' => $scripturl . '?action=help4',
                        'show' => true,
                        'is_last' => true,
                    ),
                ),
            ),


Advertisement: