vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   New tab in Navbar will not show as selected. (https://vborg.vbsupport.ru/showthread.php?t=315356)

TWood 11-10-2014 09:53 PM

New tab in Navbar will not show as selected.
 
1 Attachment(s)
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
PHP Code:

define('THIS_SCRIPT''test'); 


TWood 11-10-2014 11:26 PM

Quote:

Originally Posted by ozzy47 (Post 2522219)
Ok, in the about.php what did you set for
PHP Code:

define('THIS_SCRIPT''test'); 


Code:

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. :)


All times are GMT. The time now is 03:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01075 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete