PDA

View Full Version : New tab in Navbar will not show as selected.


TWood
11-10-2014, 09:53 PM
Hello,

Brand new install of vB4.2.2 P2

I thought I'd found a thread about this but now I can't find it. I added a new Tab to the Navbar using the Navigation Manager in the vB4 Admin panel. When I click on the new tab the browser loads the correct page, but the Navbar is stuck on highlighting the Forums tab - see attached image. It should show the tab labelled 'About' as the selected tab with the lighter color.

How do I make the new tab(s) behave correctly?

Thanks!

ozzy47
11-10-2014, 09:59 PM
What page does the about go to?

TWood
11-10-2014, 10:43 PM
It goes to a page that I created using Lynne's tutorial - aboutpage1.php in the root directory. But even if I use an existing location like groups.php the same behavior persists.

ozzy47
11-10-2014, 10:53 PM
Ok, in the about.php what did you set for
define('THIS_SCRIPT', 'test');

TWood
11-10-2014, 11:26 PM
Ok, in the about.php what did you set for
define('THIS_SCRIPT', 'test');

define('THIS_SCRIPT', 'aboutpage1');

I named it that because I might want to define more than one page. The actual file is aboutpage1.php

ozzy47
11-10-2014, 11:28 PM
Ok, then in the Navigation Manager, for that tab, in the Tab Script(s) field, add aboutpage1

TWood
11-10-2014, 11:33 PM
Works perfectly!

I don't know what else to say except - Thanks!

ozzy47
11-10-2014, 11:35 PM
Not a problem, glad to help. :)