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)

Lynne 06-15-2012 03:14 PM

set_navigation_tab_main is a hook location. That is selected when you create a plugin. The code he posted is for the plugin. https://www.vbulletin.com/docs/html/plugin_system

UK CHI3F 06-16-2012 04:35 AM

ok the link helped a bit now i have
http://www.xboxplayers.co.uk/site/images/hookplugin.jpg

i guess as i dont know what array is ive got that wrong

Lynne 06-16-2012 05:22 PM

You need to replace this:
(in_array($GLOBALS['forumid'], array(2,15)))

with a condition unique to your page.

UK CHI3F 06-17-2012 09:32 AM

Sorry to be dumb Lynne but i don't understand what condition i would even begin to look for i tried forum/forums thinking it goes with the php page somehow, the forum id is definitely 6 but again i don't understand array where do i begin?

kamran_dotnet 06-21-2012 10:38 AM

i want to show one of my forums completely in new tab
but how can i set sub forums or sub threads on that forum highlight?

--------------- Added [DATE]1340307067[/DATE] at [TIME]1340307067[/TIME] ---------------

Quote:

Originally Posted by kamran_dotnet (Post 2341701)
i want to show one of my forums completely in new tab
but how can i set sub forums or sub threads on that forum highlight?

any idea?

Lynne 06-22-2012 03:22 PM

You would need to put all the forumids into the condition.

kamran_dotnet 06-22-2012 03:58 PM

Quote:

Originally Posted by Lynne (Post 2342059)
You would need to put all the forumids into the condition.

its work fine on all forums i set
thank you
but when a thread on that forums opened, default tab selected again
what should we do with threads?

Lynne 06-23-2012 02:39 PM

It works just fine on my test site for all the threads. Can you please post *exacly* what you have done?

kamran_dotnet 06-23-2012 02:54 PM

Quote:

Originally Posted by Lynne (Post 2342311)
It works just fine on my test site for all the threads. Can you please post *exacly* what you have done?

Quote:

if (in_array($GLOBALS['forumid'], array(149,151,150,152,153,154,144,145,146,147,148) )) $root = 'tab_mde3_676';
all treads created in forum 148 has this problem

dmm2020 06-27-2012 11:36 PM

How do I set up the navigation manager so that when the current page is support page that the support menu STAYS in the navigation bar? What's happening is once I click the links in the menus or links I created via the navigation manager, it shows the default forum links in the navigation bar and I definitely DO NOT want that. Any clues?


All times are GMT. The time now is 07:26 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.01260 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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