Recent Topics

Members
Stats
  • Total Posts: 10,749
  • Total Topics: 1,374
  • Online today: 346
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 233
Total: 233

Adding a sub button to Archway nav bar

Started by agent47, Mar 07, 11, 06:20:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

agent47

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......

willemjan

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 ;)

agent47

Thanks buddy. I was looking for it all over index.template.php :D

willemjan

No problem! If you need more help, just shout!  O0

agent47

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

willemjan

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!!

agent47

Awesome. The line was actually
'title' => 'Start new topic',

Problem solved anyways :)
Thanks a lot for the hint buddy.

willemjan

Ah, I missed the '   '

Glad you got it sorted!