Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2012, 04:53 PM
SkyStryder SkyStryder is offline
 
Join Date: Dec 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 09-14-2012, 01:46 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Read this thread about creating a plugin to make it stay selected - https://vborg.vbsupport.ru/showthread.php?t=283498
Reply With Quote
  #3  
Old 09-14-2012, 02:37 AM
SkyStryder SkyStryder is offline
 
Join Date: Dec 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-14-2012, 11:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 09-15-2012, 02:28 AM
SkyStryder SkyStryder is offline
 
Join Date: Dec 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01: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.03694 seconds
  • Memory Usage 2,193KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete