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)

nhawk 06-01-2012 09:51 AM

Quote:

Originally Posted by bosken (Post 2334969)
They are working fine UNTIL i put the links_index in script field for the links tab.

I could be wrong, but I don't think the underscore character is allowed in script names in the navigation manager.

I ran across this with one of my mods and when I removed the underscore from the name it worked without a problem.

djrichards 06-01-2012 10:29 AM

1 Attachment(s)
Quote:

Originally Posted by Lynne (Post 2335291)
We cannot help troubleshoot tab issues without seeing your settings.


See attached.

bosken 06-01-2012 12:15 PM

Yes, same setup/problem I have with underscore title. Only a cosmetic thing so not relly important. Tab still works.

Lynne 06-01-2012 03:32 PM

Quote:

Originally Posted by NTMID8 (Post 2335309)
I was using the Navbar Tabs Manager prior to v4.2.0 being released, so I understand all about the script names, etc.

I've removed that product so I can use the native Navigation Manager built into v4.2.0 but the problem I am having is that I cannot add all the script names needed for each tab because their is a limit of 30 characters on this field.

Is there a way to overcome this limitation?

For example, my Forum navtab lists the following tab scripts - index.online.private.search

This means that when viewing who's online, private messaging, viewing new posts, etc that the Forum tab stays highlighted and the links underneath remain visible. But when reading a thread (showthread) or viewing the forums (forumdisplay) the tab is no longer highlighted and therefore no link options remain making navigation less friendly.

I'd just like to make the tab scripts line read - index.online.private.search.showthread.forumdispla y - but I can't because for some reason this field was limited to 30 characters?

hook location - set_navigation_tab_main
PHP Code:

if (in_array(THIS_SCRIPT, array(' index''online''private''search''showthread''forumdisplay'))) $root 'tab_whatever_it_is'

Quote:

Originally Posted by djrichards (Post 2335373)
See attached.

And what is this line for all the scripts that should keep that tab highlighted?
PHP Code:

define('THIS_SCRIPT''thenameofthescript'); 


NTMID8 06-01-2012 05:05 PM

Thanks, Lynne. I will give that try tonight.

djrichards 06-01-2012 08:55 PM

Quote:

Originally Posted by Lynne (Post 2335465)
hook location - set_navigation_tab_main
PHP Code:

if (in_array(THIS_SCRIPT, array(' index''online''private''search''showthread''forumdisplay'))) $root 'tab_whatever_it_is'


And what is this line for all the scripts that should keep that tab highlighted?
PHP Code:

define('THIS_SCRIPT''thenameofthescript'); 


OK. I have inferred from the vague explanations here that the "THIS_SCRIPT" value for every possible link from the primary tab URL needs to be entered in the Tab Script(s) field with a period separating each value.

But are you saying that if we need to enter more than 30 characters we need to enter it by manipulating vBulletin code instead of via the interface provided? This is obviously a bug or, at the very least, an oversight in design. Can we expect this to be submitted for resolution in a future release?

However, the tab highlight is the least of my problems with the Navigation Manager. As another stated, it's simply cosmetic but it definitely should be fixed at some point.

My real concern is the problem with the 404 error that occurs EVERY TIME when clicking other tabs after first visiting a tab that points to a URL that is not within the standard /forum path.

You can see this happen at my site (lancisti.net) by first clicking the Photo Gallery tab, then clicking any other tab. You'll see that after clicking the Gallery tab, any other tab click results in the /gallery directory replacing the /forum directory within the URL.

It also seems to somehow break the URL for the icon image in the announcement message at the top of the Gallery page.

Do we need to create another thread to get some help on this issue?

Lynne 06-01-2012 09:35 PM

I would not call creating a plugin "manipulating vbulletin code". It is also an "interface provided" in the software.

As for 30 characters being a bug, you are welcome to enter it into the bug tracker if you feel that way. I don't feel it is a bug when it is so easy to just write a plugin to do what I want.

And, as for the 404 errors, you probably have your URLs set to something like "mypage.php" instead of "/forumdir/mypage.php", so it is looking for the page in the directory you are in. You may want to read up on the different types of relative paths.

djrichards 06-01-2012 11:09 PM

Quote:

Originally Posted by Lynne (Post 2335607)
And, as for the 404 errors, you probably have your URLs set to something like "mypage.php" instead of "/forumdir/mypage.php", so it is looking for the page in the directory you are in. You may want to read up on the different types of relative paths.

I find that to be a pretty amazing response. Especially since you've already seen what my URL setting is and are completely wrong. MORE especially since I've tried every possible version of the URL and the results are exactly the same. You may want to "read up" on my previous posts. And as I previously stated, the tab URL has to point to "/gallerydir/mypage.php", not "/forumdir/mypage.php". So then, are you unable to help me with this or simply unwilling?

Quote:

I would not call creating a plugin "manipulating vbulletin code". It is also an "interface provided" in the software.
When one has to write new code to add into a file, it's called manipulating code, regardless of whether or not the system provides a rudimentary interface for doing so. I can understand that for someone who is a coder, this is simple and obvious stuff. But not everyone who buys this product is a coder. If they were, they'd likely not be here asking for assistance.

Quote:

As for 30 characters being a bug, you are welcome to enter it into the bug tracker if you feel that way. I don't feel it is a bug when it is so easy to just write a plugin to do what I want.
My mistake. I thought I was conversing with someone who is providing official support for vBulletin. Apparently, this is only a forum for people who write code for a living.

No worries. I'll find someone else capable of helping me.

Lynne 06-01-2012 11:42 PM

Quote:

Originally Posted by djrichards (Post 2335623)
I find that to be a pretty amazing response. Especially since you've already seen what my URL setting is and are completely wrong. MORE especially since I've tried every possible version of the URL and the results are exactly the same. You may want to "read up" on my previous posts. And as I previously stated, the tab URL has to point to "/gallerydir/mypage.php", not "/forumdir/mypage.php". So then, are you unable to help me with this or simply unwilling?

I'm not talking about the gallery tab, I'm talking about the other tabs you are having problems with. If you go to your gallery, you are in the /gallery directory. Then you click on a tab to forum.php and it goes to /gallery/forum.php since you are using a relative path (not a root relative path).

Quote:

Originally Posted by djrichards (Post 2335623)
My mistake. I thought I was conversing with someone who is providing official support for vBulletin. Apparently, this is only a forum for people who write code for a living.

No worries. I'll find someone else capable of helping me.

This is an all volunteer run site - there is no official support here on vbulletin.org. I happen to work for vbulletin and help moderate their official site, vbulletin.com, but this site, vbulletin.org, is run by volunteers.

However, you are welcome to find someone else to help you. I'll stop responding to your posts since you don't find my responses helpful.

djrichards 06-01-2012 11:54 PM

Quote:

Originally Posted by Lynne (Post 2335630)
I happen to work for vbulletin and help moderate their official site, vbulletin.com

I know. That's why I thought I was dealing with a professional.

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

Quote:

Originally Posted by Lynne (Post 2335630)
I'm not talking about the gallery tab, I'm talking about the other tabs you are having problems with. If you go to your gallery, you are in the /gallery directory. Then you click on a tab to forum.php and it goes to /gallery/forum.php since you are using a relative path (not a root relative path).

My other tabs are set to the default values entered during the installation. Sounds like that's what you should be taking back to your real job so they can fix it in a future release.

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

Originally Posted by Lynne
Quote:

I'm not talking about the gallery tab, I'm talking about the other tabs you are having problems with. If you go to your gallery, you are in the /gallery directory. Then you click on a tab to forum.php and it goes to /gallery/forum.php since you are using a relative path (not a root relative path).
Nope. Again, not the answer. Now it throws 404 errors and URLs with /gallery/forum/mypage.php.

Next!


All times are GMT. The time now is 09:51 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.01244 seconds
  • Memory Usage 1,770KB
  • 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_php_printable
  • (13)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