vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   4.2.0 NavTab Plugins and Nav Manager (https://vborg.vbsupport.ru/showthread.php?t=287806)

SkyStryder 09-13-2012 04:53 PM

4.2.0 NavTab Plugins and Nav Manager
 
I have a requirement for NavTabs with dropdown menus and submenus. There is no way the
Navigation Manager can do this that I know of. So I have to work with it somehow. I have
4 navtab plugins and I have managed to get them to be "selected" and "unselected" based on
their respective menu items and they do not become selected when the NavMgr has something
selected. My problem is that when the NavMgr doesn't have something selected, it goes and
lights up the Forum tab anyway. $root settings only work for tabs in the navigation manager
database. Since my tabs by requirement can't be in the database I need another way.

Does anyone have an idea on how to get the NavMgr selected to synchronize with my selected?
Thank you!

Lynne 09-14-2012 01:46 AM

Read this thread about creating a plugin to make it stay selected - https://vborg.vbsupport.ru/showthread.php?t=283498

SkyStryder 09-14-2012 02:37 AM

I have indeed read that thread and many others. My plugin tabs are working
fine. The problem seems to be more that the NavMgr will by default set the
selected tab to the forum tab (of the navmgr tabs) if no other navmgr tabs are selected.
3 of the plugin tabs (all pointing to sets of content.php links) use sectionid or nodeid to
decide whether or not to light up. Home, Articles (w/dropdown sub menus), and Help.
The 4th plugin is a file library. I was hoping there was some way to avoid changes to
the set_navigation_tab() function which seems to present a possibility...
Thank you for your reply Lynne.

Lynne 09-14-2012 11:42 PM

I guess when you said "My problem is that when the NavMgr doesn't have something selected, it goes and lights up the Forum tab anyway." I figured you wanted some way to light up a specific tab. Are you saying that sometimes you want NO tab to be highlighted? I don't think that can be done.

SkyStryder 09-15-2012 02:28 AM

Because one of my non NM plugin tabs would be highlighted, I would not want the
NavMgr to have any of its tabs highlighted.

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

YippEE! I was actually able to solve this using Andreas' Navigation Manager Enhancements
Mod located here:
https://vborg.vbsupport.ru/showthread.php?t=283123

By using the HTML option for links, I was able to code the sub menus to work! :) :up:

I am one happy camper!


All times are GMT. The time now is 02:20 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.00976 seconds
  • Memory Usage 1,719KB
  • 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
  • (5)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