How to add sub-menu 1.1 HELP!

Started by Mati1300, March 30, 2012, 08:51:24 AM

Previous topic - Next topic

Mati1300

Hey...  8)

Soo, im trying to make a sub-menu 1.1 like showed on the image. But I dont know how to do it?

I know how to make sub-menus. But not so when you hold the mouse cursor over a menu in the sub-menu it's opening a new menu?

Please help?!  :D

**Look the image if you dont know what i mean..**

kat

* K@ tries to guess what version of SMF this is for...



...and fails, miserably. :(

NanoSector

Hi there,

Sadly you can't in 1.1. Sub menus are new to SMF 2.0.

@ K@: I guess it's for version 1.1.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

kat

Oh, was 1.1 the SMF version?

I thought he was referring to the sub-menu.

* K@ goes and hides in Yoshi's wardrobe...

NanoSector

Quote from: K@ on March 30, 2012, 08:53:59 AM
Oh, was 1.1 the SMF version?

I thought he was referring to the sub-menu.

* K@ goes and hides in Yoshi's wardrobe...
You've got me thinking, now.. :P

* Yoshi2889 wonders what K@'s doing in his wardrobe
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

kat

I jumped out, coz the smell from your socks was a bit powerful, mate. ;)

Mati1300

#6
Uuuups. Sorry guys...

Im using the version 2.0.2 of SMF.

Nevermind forget the "1.1"...

- Someone know how to do this?

Mati1300

I search around on google. But I can't find anything?

Any idears how to do this?

NanoSector

Sorry for my late response.

Try something like this:
        'mybutton1' => array(
                'title' => 'My button title',
                'href' => 'http://my.button.url/',
                'show' => true,
                'sub_buttons' => array(
                        'mysubbutton1' => array(
                                'title' => 'My subbutton title',
                                'href' => 'http://my.button.url/2/',
                                'show' => true,
                                'sub_buttons' => array(
                                        'mysubbutton1.1' => array(
                                                'title' => 'My extra subbutton title',
                                                'href' => 'http://my.button.url/1.1/',
                                                'show' => true,
                                        ),
                                ),
                        ),
                ),
        ),
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Mati1300


NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Mati1300

Do you know how to add more then one? or to end one?

I do like this, and when I make 2 "'sub_buttons' => array(" it won't load my site??

'test1' => array(
                                'title' => 'Test1',
                                'href' => '/',
                                'show' => true,
                                'sub_buttons' => array(
                                        'test1' => array(
                                                'title' => 'server1',
                                                'href' => '?page=server1',
                                                'show' => true,
),
'test2' => array(
'title' => 'server2',
                                                'href' => '?page=server2',
                                                'show' => true,
),
'test3' => array(
        'title' => 'server3',
                                                'href' => '?page=server3',
                                                'show' => true,
                                                 ),
              '2test1' => array(
                                'title' => '2test1',
                                'href' => '/',
                                'show' => true,
                                'sub_buttons' => array(
                                        '2test1' => array(
                                                'title' => '2test1',
                                                'href' => '?page=2test1',
                                                'show' => true,
),
'2test2' => array(
'title' => '2test2',
                                                'href' => '?page=2test2',
                                                'show' => true,
),
'2test3' => array(
'title' => '2test3',
                                                'href' => '?page=2test3',
                                          'show' => true,
                                        ),
                                ),
                        ),
                ),
        ),


This is only the submenus not the *button*

NanoSector

Do you get any errors?

Tip: Keep your code organized. When I added all tabs and stuff I got this:
                        'test1' => array(
                                'title' => 'Test1',
                                'href' => '/',
                                'show' => true,
                                'sub_buttons' => array(
                                        'test1' => array(
                                                'title' => 'server1',
                                                'href' => '?page=server1',
                                                'show' => true,
),
'test2' => array(
'title' => 'server2',
                                                'href' => '?page=server2',
                                                'show' => true,
),
'test3' => array(
        'title' => 'server3',
                                                'href' => '?page=server3',
                                                'show' => true,
                                        ),
                                        '2test1' => array(
                                                'title' => '2test1',
                                                'href' => '/',
                                                'show' => true,
                                                'sub_buttons' => array(
                                                        '2test1' => array(
                                                                'title' => '2test1',
                                                                'href' => '?page=2test1',
                                                                'show' => true,
                                                        ),
                                                        '2test2' => array(
                                                                'title' => '2test2',
                                                                'href' => '?page=2test2',
                                                                'show' => true,
                                                        ),
                                                        '2test3' => array(
                                                                'title' => '2test3',
                                                                'href' => '?page=2test3',
                                                        'show' => true,
                                                        ),
                                                ),
                                        ),
                                ),
                        ),
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Mati1300

Nop. It just won't load the site?

Okay thanks for the tip! :)

Mati1300

Sooo? I can't add any new menus under this? double menu?

wtf?

Do I need to end it on some how or?

NanoSector

Guess not, I think that's the most you can have.

Sorry for replying so late again, my list of unread topics is huuuge.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Mati1300


Advertisement: