vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Navtab Question (https://vborg.vbsupport.ru/showthread.php?t=317668)

Dirks 03-07-2015 12:53 PM

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

Lynne 03-07-2015 04:43 PM

I'm afraid I do not understand the problem. Perhaps when you get on another computer, you can provide screen caps.

Dirks 03-07-2015 07:32 PM

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:

http://www.althanas.com/world/attach...0&d=1424805340

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?

ForceHSS 03-07-2015 07:49 PM

You need to post screenshots

Dirks 03-07-2015 08:48 PM

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:

https://vborg.vbsupport.ru/external/2015/03/29.png

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)

https://vborg.vbsupport.ru/external/2015/03/30.png

This is what I want.

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

https://vborg.vbsupport.ru/external/2015/03/31.png

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

https://vborg.vbsupport.ru/external/2015/03/30.png

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?

Lynne 03-07-2015 11:27 PM

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.


All times are GMT. The time now is 10:30 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.01059 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
  • (6)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