SimplePortal

Customization => Themes and Graphics => Topic started by: patrick on June 05, 2009, 06:12:39 PM

Title: Default active button
Post by: patrick on June 05, 2009, 06:12:39 PM
Hi,
I have a dropdown-menue like on this site. But when i click on my site on "Forum>Profile" for example the active Button changes to "Home", not "Forum". How can i fix this?

thanks a lot!
Title: Re: Default active button
Post by: ccbtimewiz on June 05, 2009, 08:39:04 PM
Link to site?
Title: Re: Default active button
Post by: [SiNaN] on June 06, 2009, 03:44:01 AM
Default theme doesn't have a dropdown menu. So we have no idea about your codes. Would you attach your index.template.php and Subs.php files here?
Title: Re: Default active button
Post by: patrick on June 06, 2009, 06:17:45 AM
Default theme doesn't have a dropdown menu. So we have no idea about your codes. Would you attach your index.template.php and Subs.php files here?
yes :)
i use the Outline Template from DzinerStudio
Title: Re: Default active button
Post by: [SiNaN] on June 06, 2009, 06:25:22 AM
Reading your post again, don't you have Profile as a separate button? Why do you want it to highlight Forum button, when there is Profile button?
Title: Re: Default active button
Post by: patrick on June 06, 2009, 06:47:12 AM
Reading your post again, don't you have Profile as a separate button? Why do you want it to highlight Forum button, when there is Profile button?
oh im sorry that was the only thing I changed yesterday, but i have still the problem with memberlist, calender und help:

Code: [Select]
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''),
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)),
'sub_buttons' => array(
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
),
'calendar' => array(
'title' => $txt['calendar'],
'href' => $scripturl . '?action=calendar',
'show' => $context['allow_calendar'],
'sub_buttons' => array(
),
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
),
),
),

Like in this forum, when I click on "Forum >calnder", the forum button (not the home) is highlighted.

thanks
Title: Re: Default active button
Post by: Nathaniel on June 08, 2009, 07:23:12 AM
I have made an edit to your Subs.php file that should get it to work properly. We actually have our menu "hardcoded", so thats why it works perfectly. Although by editing the Subs.php file we can do it better. ;)

Please replace your Subs.php file, with the one attached. :)

Here are the pages where the forum button will be active:
Code: [Select]
'unread', 'unreadreplies', 'forum', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum'
You can do a search for that code within your Subs.php file, if you want to add/remove actions from that list.
Title: Re: Default active button
Post by: patrick on June 08, 2009, 08:31:40 AM
It works! Great :) Thank you! :applause:
SimplePortal 2.3.8 © 2008-2024, SimplePortal