TheCripZone SMF Themes Site

All Things Public => Theme Support => Topic started by: agent47 on Mar 07, 11, 06:20:51 AM

Title: Adding a sub button to Archway nav bar
Post by: agent47 on Mar 07, 11, 06:20:51 AM
I would like to know how is it that I add a sub-menu button on the navigation when rolled over. Like for an instance on this site, when you rollover the "Profile" button (on the nav bar), it brings down "Summary", "Forum Profile" etc.... Same way......
Title: Re: Adding a sub button to Archway nav bar
Post by: willemjan on Mar 07, 11, 06:32:27 AM
You should look into subs.php. There you can see how it is done on these sub menus. Add yours the same way ;)

That is if you are using an 2.x version of SMF ;)
Title: Re: Adding a sub button to Archway nav bar
Post by: agent47 on Mar 07, 11, 07:19:44 AM
Thanks buddy. I was looking for it all over index.template.php :D
Title: Re: Adding a sub button to Archway nav bar
Post by: willemjan on Mar 07, 11, 07:23:48 AM
No problem! If you need more help, just shout!  O0
Title: Re: Adding a sub button to Archway nav bar
Post by: agent47 on Mar 07, 11, 07:30:57 AM
Ok actually I do.
So I appended these lines but it doesn't give me a title. Just a blank space.
http://www.superheroalliance.net

'forum' => array(
'title' => isset($txt['tp-forum']) ? $txt['tp-forum'] : 'Forum',
'href' => $scripturl . '?action=forum',
'show' => true,
'sub_buttons' => array(
'Start new topic' => array(
'title' => $txt['Start new topic'],
'href' => $scripturl . '?action=post;board=28.0',
'show' => true,
),
),
),
Title: Re: Adding a sub button to Archway nav bar
Post by: willemjan on Mar 07, 11, 07:36:08 AM
Your calling on an $text that doesn't exist:
'title' => $txt['Start new topic'],

That should be:
'title' => Start new topic,

But I am not shure, so backup!!
Title: Re: Adding a sub button to Archway nav bar
Post by: agent47 on Mar 07, 11, 07:45:56 AM
Awesome. The line was actually
'title' => 'Start new topic',

Problem solved anyways :)
Thanks a lot for the hint buddy.
Title: Re: Adding a sub button to Archway nav bar
Post by: willemjan on Mar 07, 11, 08:07:49 AM
Ah, I missed the '   '

Glad you got it sorted!