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=283498)

invitezone 07-27-2012 10:51 PM

the public tab changes back to having the private tab highlighted when im in the public tabs sub forums

M4T VW 07-30-2012 06:24 PM

Quote:

Originally Posted by Lynne (Post 2350608)
Do not put anything in the tab script area.

It works! Thanks Lynne.

Now, Anyone know a way to copy a group of Link/Menus?
Not the actuall tabs but the sub links etc. I have about 7 on my main "forum" tab but then the menus are quite big.
I would like to copy all these to my "classifieds" tab for the time being and then might change a few later down the road.
I hope there is a quick way to copy them!

Thanks
Mat

Lynne 07-30-2012 08:55 PM

I think Andreas wrote a modification that will do what you want with the sub links.

nyenius 08-07-2012 09:18 AM

Quote:

Originally Posted by Lynne (Post 2333206)
You need to enter something for the Tab Scripts. That is the THIS_SCRIPT name at the top of the php page. Or, if you have no THIS_SCRIPT, you just need a plugin to set the $root variable. Example for a forumdisplay page used as a navtab:

hook - set_navigation_tab_main

PHP Code:

if (in_array($GLOBALS['forumid'], array(2,15)))  $root 'tab_nzg3_214'


This helps a LOT! thanks a bunch :):up:

E0N 09-05-2012 02:11 PM

Quote:

Originally Posted by Lynne (Post 2333206)
You need to enter something for the Tab Scripts. That is the THIS_SCRIPT name at the top of the php page. Or, if you have no THIS_SCRIPT, you just need a plugin to set the $root variable. Example for a forumdisplay page used as a navtab:

hook - set_navigation_tab_main

PHP Code:

if (in_array($GLOBALS['forumid'], array(2,15)))  $root 'tab_nzg3_214'


Hi. Sorry Im new with vB. Never used it before. Can you write a step by step guide how to do this? I dont really get it :( I have same problem. When I add a new tab and click on it, the tab dont get highligted.

Lynne 09-05-2012 02:58 PM

Try setting "Append 'tabid' to URL" to Yes in the Navigation Manager for that tab and see if that fixes the issue. Otherwise, you will need to write a plugin like above. See the manual here - https://www.vbulletin.com/docs/html/plugin_system

E0N 09-05-2012 03:14 PM

Thanks. That worked :)

Nelson58 09-09-2012 12:43 PM

1 Attachment(s)
The home tab now highlights, but the site does not land on that page even though I made the default the Home tab.

I don't know PHP, so writing my own plugin is out.

Nelson

I.G.O.T.A. 09-10-2012 12:27 AM

My forum tab highlights and I tried everything to get it to stop that. Any ideas what I should do?

Lynne 09-10-2012 12:59 AM

Can you post all the information in the Navigation Manager tab that isn't working?


All times are GMT. The time now is 10:52 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.01230 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete