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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2015, 12:53 PM
Dirks Dirks is offline
 
Join Date: Jun 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Navtab Question

I did some research on the forum, but wasn't able to find much on point. Maybe you guys can help?

I'm trying to add a new navtab that simply changes the default links under the tab rather than opening to a new page. However, when I leave the target URL link blank, clicking the tab defaults to /index.php. It will work properly when I add menus, but not simply links. Am I missing something, or is this beyond the scope of the built in navigation manager.

Alas, I'm not on a computer where I can snap screen shots, but here's the tab URL to poke around: http://www.althanas.com/world/?tabid=157

Thanks!

Dirks
Reply With Quote
  #2  
Old 03-07-2015, 04:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm afraid I do not understand the problem. Perhaps when you get on another computer, you can provide screen caps.
Reply With Quote
  #3  
Old 03-07-2015, 07:32 PM
Dirks Dirks is offline
 
Join Date: Jun 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not even sure screen caps will help.

Basically, I have three links under a navtab called "Compendium". When someone clicks the navtab, it shows the three links but also defaults the entire page to index.php. What I want is when someone clicks the navtab it'll just show the links but leave the page at where the user was when they clicked the link.

Here is a screen grab from the actual page. Ignore the red, as that's related to something different:



Basically if I'm on /showthread.php?28831, when I click the navtab, I want to stay on /showthread.php?28831 but I want to show those three links.

Does that help?
Reply With Quote
  #4  
Old 03-07-2015, 07:49 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to post screenshots
Reply With Quote
  #5  
Old 03-07-2015, 08:48 PM
Dirks Dirks is offline
 
Join Date: Jun 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, please excuse this if it's crude because I had a member do it.

Here is my main page. Note the URL is index.php:



When I click the "Compendium" tab at the top of the page, it opens index.php except w/ three new links under "Compendium" (Archon's Vault, Wiki, and Canon Submission)



This is what I want.

However, say I click to a random page, like this one:



When I click the compendium link, it automatically defaults back to the index w/ the links showing (second image above)



What I want it to do is show the individual forum or thread (picture 3) w/ the compendium links (pictures 2-4). Does this help?
Reply With Quote
  #6  
Old 03-07-2015, 11:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, you want it so the user clicks the navtab and they stay on their current page but suddenly have a new sub-menu? The Navigation Manager will not do that. You will need to write a plugin to do that. There are tutorials in the Articles section on how to do that. You will want to modify them to grab the page URL and then make sure they stay on that URL when they click the navtab, but that that particular navtab becomes active.
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 11:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10186 seconds
  • Memory Usage 2,204KB
  • 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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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