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......
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 ;)
Thanks buddy. I was looking for it all over index.template.php :D
No problem! If you need more help, just shout! O0
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,
),
),
),
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!!
Awesome. The line was actually
'title' => 'Start new topic',
Problem solved anyways :)
Thanks a lot for the hint buddy.
Ah, I missed the ' '
Glad you got it sorted!