vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Active Tab Question (https://vborg.vbsupport.ru/showthread.php?t=276461)

gle041 01-04-2012 08:15 PM

Active Tab Question
 
Hello. I have a plugin called vBH New Tabs Options which allows me to add new tabs to the navbar. One tab I have added is a link to a specific forum on my site. This plugin gives me the option to add a value defined for THIS_SCRIPT in the page it is calling, but the page this would be linking to would technically be the forumdisplay which already calls the FORUM tab as active.

Is there anyway I can add an IF statement to the forumdisplay.php that will define a differnt value for THIS_SCRIPT if on a certain forum ID so it will show that as an active page?

Lynne 01-05-2012 04:04 PM

THIS_SCRIPT will always be the same on all forumdisplay pages. If you want something different for different forumids, you'd have to add in another condition for "i THIS_SCRIPT is forumdisplay AND forumid is xx". You'll have to ask in the modification thread if this is possible.


All times are GMT. The time now is 07:23 PM.

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.01478 seconds
  • Memory Usage 1,698KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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