TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 692
  • Total: 692

Keeping "Forum" Highlighted While In Boards/Topics

Started by AxS Voldsom, May 14, 2010, 03:52:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AxS Voldsom

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

IchBin

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


AxS Voldsom

That line doesn't seem to exist in my sub.php file, attached it if you want to have a look.

IchBin

That's probably because you're using RC2, and I checked it on RC3. :)

Fixed the file for you.

AxS Voldsom


This website is proudly hosted on Crocweb Cloud Website Hosting.