TinyPortal

Development => Support => Topic started by: AxS Voldsom on May 14, 2010, 03:52:40 AM

Title: Keeping "Forum" Highlighted While In Boards/Topics
Post by: AxS Voldsom on May 14, 2010, 03:52:40 AM
SMF: 2.0 RC2
Tinyportal: v1.0 beta5

Im simply trying to get my menu, which has buttons that are highlighted when in that certain section, to keep "Forum" highlighted while people are using the forum, on all boards, topics, etc... In other words, look at the top of this page where "CForum" is highlighted. Currently my menu bar will highlight when in the main forum view and all of the other links stay highlighted when in their respective section, but as soon as you enter a board the menu highlights "Home" instead of "Forum".

Thanks for any help
Title: Re: Keeping "Forum" Highlighted While In Boards/Topics
Post by: IchBin on May 14, 2010, 03:10:52 PM
Open Sources/Subs.php and find this line:
elseif ($context['current_action'] == 'groups' && $context['allow_moderation_center'])
        $current_action = 'moderate';


Add after it, this line:
elseif (isset($_GET['board']) || isset($_GET['topic']))
        $current_action = 'forum';

Title: Re: Keeping "Forum" Highlighted While In Boards/Topics
Post by: AxS Voldsom on May 14, 2010, 11:36:25 PM
That line doesn't seem to exist in my sub.php file, attached it if you want to have a look.
Title: Re: Keeping "Forum" Highlighted While In Boards/Topics
Post by: IchBin on May 16, 2010, 03:58:30 PM
That's probably because you're using RC2, and I checked it on RC3. :)

Fixed the file for you.
Title: Re: Keeping "Forum" Highlighted While In Boards/Topics
Post by: AxS Voldsom on May 17, 2010, 07:16:54 PM
Works perfectly! Thanks!