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 not staying selected... (https://vborg.vbsupport.ru/showthread.php?t=300101)

JMEWLS` 07-14-2013 02:47 PM

New tab not staying selected...
 
nbadimensions.net/forums/

For example, when I click "nba news and rumors" the tab isn't highlighted, the home tab is... Same goes with the "NBA blogs" tab...

The appropriate tab ID's are...

NBA NEWS AND RUMORS: tab_mzgx_454
NBA BLOGS: tab_mzgx_649

These are both section pages on my website so I'm not sure how this is done..

Lynne 07-14-2013 04:13 PM

Those are both CMS sections? You'd use something like this:

hook location - set_navigation_tab_vbview

PHP Code:

if (intval($_GET['r']) == yy$root 'tab_mzgx_xxx'

yy will be the sectionid.

I have no idea what you would do since you have vbseo. That may or may not work on your site.

Paul M 07-14-2013 04:37 PM

Btw, in the above, the "73" refers to the sections nodeid, which you will see in in its url (in your case it looks like 447 & 448).

JMEWLS` 07-14-2013 11:08 PM

Worked a treat, cheers guys..


All times are GMT. The time now is 06:42 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.01368 seconds
  • Memory Usage 1,708KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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