Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 943
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Highlight parent tab when submenu active

Started by Glitch, December 10, 2011, 11:15:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Glitch

I asked over at SMF and they directed me here.  I apologize if this has already been asked.  If there's a solution...and anyone can direct me to it...I really would appreciate it.

Anyhow, I run SMF 2.0.1 and use SP 2.3.4.

I added some sub links under the "Forum" tab and when I click them, the "Forum" tab does not stay highlighted.  It jumps to the "Home" tab, instead.  I'm sure it has something to do with the tab being active...but, I really don't know how to code it in order to have the correct tab highlighted.

You can see the issue by visiting my site located at http://www.glitchpc.net.

Again...I apologize if this has been answered before...and I want to thank you, in advance...for your help.

ccbtimewiz

Open ./Sources/Subs.php

Find:
elseif ($context['current_action'] == 'groups' && $context['allow_moderation_center'])
$current_action = 'moderate';


Add after:
elseif ($context['current_action'] == 'youraction')
$current_action = 'forum';


And continue building as such

Glitch

Thank you...I now have two of the three submenu items working per your instructions...however, I do not have an action for the "Chat" submenu item...since it is a pop-up and is coded as an absolute url:  /chat/index.php

ccbtimewiz

In /chat/index.php

Find:
<?php


Replace with:
<?php$_GET['action'] = 'chat';$current_action = 'chat';


Then try using "chat" in the Subs file

Glitch

Leekoberries...

Thanks, again!  Works a "treat"!