View Full Version : New tab not staying selected
Disco_Stu
05-26-2012, 05:07 PM
When I create a new tab using the Navigation Manager it highlights when I click on it but when the new page opens the previous tab (home, forum, what's new) is highlighted as selected. The new tab does not stay selected after the page opens.
Has anyone else experienced this problem? How did you get around it?
Lynne
05-26-2012, 06:00 PM
Can we see an image of your settings for the tab in the Navigation Manager?
Disco_Stu
05-26-2012, 06:10 PM
The settings are as follows:
Active: Yes
Product: vBulletin
Title: Services
Target URL: I set this to my new page which it opens ok
Display Order: 50
Show Permission Name: I leave this as blank
Append Tabid to URL: No
Tab Scripts: This is blank
Try it yourself. Add a new tab to open a new page then start up your site on one of your existing pages , then click to the new page tab and see if it stays selected and highlighted
Lynne
05-26-2012, 06:19 PM
You need to enter something for the Tab Scripts. That is the THIS_SCRIPT name at the top of the php page. Or, if you have no THIS_SCRIPT, you just need a plugin to set the $root variable. Example for a forumdisplay page used as a navtab:
hook - set_navigation_tab_main
if (in_array($GLOBALS['forumid'], array(2,15))) $root = 'tab_nzg3_214';
Disco_Stu
05-26-2012, 06:36 PM
ok...that worked. But a second issue developed. I have two new tabs that call the same php file with different parms.
When I set both tabs with the same script name the first one always is set as selected even after I click on the second one.
To get around this I created a clone of the php and put a suffix of "2" at the end of the file name and the script name in the cloned php Then I added the suffix to the script name in the second tab. Now everything works.
Cloning the php file is not an elegant solution by any means but it does work and is the only solution I have right now.
Thanks for the info
Paul M
05-26-2012, 07:33 PM
Is this a vbulletin file, or a custom file ?
Disco_Stu
05-26-2012, 07:55 PM
I'm adding custom pages using this mod:
https://vborg.vbsupport.ru/showthread.php?t=235359
I posted the detailed solution in the mod comments. It's ugly but it solves the problem.
Lynne
05-26-2012, 09:27 PM
The way to solve it would be to write a plugin like I was showing in post 4 based on THIS_SCRIPT and the parameter that is passed.
Disco_Stu
05-26-2012, 11:00 PM
I figured there was a better way to solve the problem then what I came up with.
You need to enter something for the Tab Scripts. That is the THIS_SCRIPT name at the top of the php page. Or, if you have no THIS_SCRIPT, you just need a plugin to set the $root variable. Example for a forumdisplay page used as a navtab:
hook - set_navigation_tab_main
if (in_array($GLOBALS['forumid'], array(2,15))) $root = 'tab_nzg3_214';
The new navigation manager looks quite useful to me. I just put in a URL to another site and that worked fine.
If on the same top level domain I want to set the tab to display e.g. the members list, or the calendar, then what script would I add here to get the tab to pull up a particular calendar or the list?
PS: I know that if I put in /calendar in the URL box in the navigation manager then the calendar will come up, but the forum tab remains selected. So I'm guessing the answer is the same I need to put a script in the script box for the new 'calendar' or 'members' tab to remain highlighted. So which one for calendar, which one for members list?
Lynne
05-28-2012, 05:03 PM
If it's a navtab, not a link/menu item, then you need to add something to the Tab Script(s) textarea to get it to stay (or do a plugin like I wrote). For the calendar, if you look at the top of that file, you'll see this:
define('THIS_SCRIPT', 'calendar');
So, enter "calendar" (no quotes) into that field.
bosken
05-30-2012, 02:26 PM
Ok, managed to solve almost all my tabs to stay highlighted except for this one:
An external app for links. harleyforum.se/links/index.php is the path.
If i put the word index in script field it messes up, obviously. What should I put there?
https://vborg.vbsupport.ru/external/2012/05/6.jpg
Lynne
05-30-2012, 04:15 PM
Well, does the file have THIS_SCRIPT defined at the top of it?
bosken
05-30-2012, 08:27 PM
Well, does the file have THIS_SCRIPT defined at the top of it?
Yes Lynne! :D now i understand the whole thing. I was on my iPad so had limited options to view the file correctly. It said links_index Thank you!
--------------- Added 1338413625 at 1338413625 ---------------
However it does not work, first time I click the tab it works, but as soon I go back and click the forum, blog or article tab, it cant find that page, it points forum to mysite.se/links/forum, but should be mysite.se/forum only?
This is my forum tab, default, if it helps you.
https://vborg.vbsupport.ru/external/2012/05/5.jpg
Lynne
05-31-2012, 01:10 AM
If your other tabs are not working, then there is another issue going on.
bosken
05-31-2012, 07:29 AM
They are working fine UNTIL i put the links_index in script field for the links tab.
Lynne
05-31-2012, 03:11 PM
Are you sure that is the correct thing to put there? And when you say they are not working fine, what about them isn't working? We need more detail in order to help.
djrichards
05-31-2012, 10:59 PM
I have this same issue with a tab for my PhotoPost vBGallery. The only difference from other tabs is that the target URL is in a directory under public_html instead of being in the forum directory.
There are two issues.
The tab works correctly the first time but when you click to any link on the gallery page, the tab highlight moves back to the Forum tab.
After selecting the Gallery tab, clicking any other tab results in a 404 error because the path into the gallery directory is concatenated into the URL.
Lynne
06-01-2012, 02:26 AM
We cannot help troubleshoot tab issues without seeing your settings.
NTMID8
06-01-2012, 03:56 AM
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?
nhawk
06-01-2012, 09:51 AM
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
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
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
if (in_array(THIS_SCRIPT, array(' index', 'online', 'private', 'search', 'showthread', 'forumdisplay'))) $root = 'tab_whatever_it_is';
See attached.
And what is this line for all the scripts that should keep that tab highlighted?
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
hook location - set_navigation_tab_main
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?
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
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?
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.
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
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).
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
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 1338598664 at 1338598664 ---------------
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 1338599040 at 1338599040 ---------------
Originally Posted by Lynne
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!
nhawk
06-02-2012, 10:44 AM
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?
This is one of those bugs/improvement requests that has been reported/requested and has been marked 'resolved' and 'working as designed'...
http://tracker.vbulletin.com/browse/VBIV-15197
And the requestors resolution was...
To fix this I edited all the tabs to have {options.bburl}/ at the start - all was ok.
djrichards
06-02-2012, 02:20 PM
This is one of those bugs/improvement requests that has been reported/requested and has been marked 'resolved' and 'working as designed'...
http://tracker.vbulletin.com/browse/VBIV-15197
And the requestors resolution was...
Hardly what I would call a resolution. I see that VBulletin still has a lot to learn about customer support and product design/revision.
They could save themselves a LOT of grief and time in responding to customers with this problem if they simply changed the Nav Manager default values to include the "/forum/" path in front of each PHP file name.
Not only would it reduce requests for support, it would also provide a clear example that would help users easily figure it out for themselves. Not everyone who uses this COMMERCIAL product is a PHP coder or works all day at a Linux command line for a living.
I really don't understand companies who seem to have the Incredible Hulk's "Puny humans!" attitude toward those who provide their livelihood. Obtuse responses to support/enhancement requests are not only unhelpful, they run completely counter to a company's goals.
borbole
06-02-2012, 02:59 PM
Hardly what I would call a resolution. I see that VBulletin still has a lot to learn about customer support and product design/revision.
They could save themselves a LOT of grief and time in responding to customers with this problem if they simply changed the Nav Manager default values to include the "/forum/" path in front of each PHP file name.
Not only would it reduce requests for support, it would also provide a clear example that would help users easily figure it out for themselves. Not everyone who uses this COMMERCIAL product is a PHP coder or works all day at a Linux command line for a living.
I really don't understand companies who seem to have the Incredible Hulk's "Puny humans!" attitude toward those who provide their livelihood. Obtuse responses to support/enhancement requests are not only unhelpful, they run completely counter to a company's goals.
You should drop off the attitude pal and be a little more appreciative of those that are trying to help you.
Sorry to say this but you come off as arrogant and rude and with this attitude you will not find many people that will be willing to help you out.
djrichards
06-02-2012, 04:07 PM
Not my intent to be rude or arrogant and I apologize for coming off that way. But if you have a problem with people having opinions other than yours, then, well, you just have a problem I guess.
From my POV (as a customer), the arrogance is on the part of people who seem to get miffed when a person asks a fairly simple question and then gets aggravated with flip answers from an employee of the product's company. If I was in any way knowledgeable in PHP coding I wouldn't be asking such questions in the first place.
Do you not believe that it's a company's responsibility to support their customers AND a users responsibility to provide feedback for product improvement? That's the way it is in the world that I live and work in. I know that this is a "volunteer" site and perhaps I was in error to have have expected any real support for my problems here. But vBulletin is not an open source product and people who have purchased it rightfully expect to receive adequate and useful support provided in a professional manner, especially when it's coming from one of the company's employees.
I ALWAYS have a great deal of appreciation for those who are actually helpful. But telling me that I simply need to "write a plugin" or "read up" on something is far from helpful. I work with product developers on a daily basis so I understand that it's hard for coders to understand this. But it really is easier to provide a simple explanation of the fix needed and why/how the fix works. Educating users along the way is a far better support model than telling them that there's nothing wrong with the product/design and they are just not smart enough to use it.
Wouldn't it have been easier to simply say:
The default tab paths use only relative paths to their respective files. If you wish to have tabs that direct users to a URL outside of the default forum directory, you will need to edit all of the default tab paths to include "/forumdir/" before the filename.
I would also add that anyone providing even semi-official support for the product should be charged with logging any and all such support requests for evaluation by the design team as future fixes or enhancements. The issues I've talked about here definitely should qualify in that regard AND should be quite simple fixes.
But instead, I got:
You PROBABLY have YOUR URLs set wrong. You should read up...
Now, please explain this arrogance thing to me again.
But no worries. I now understand that this really isn't the place to ask for vBulletin product support so I won't make that mistake again.
Thanks for your input. Really.
--------------- Added 1338658813 at 1338658813 ---------------
This is one of those bugs/improvement requests that has been reported/requested and has been marked 'resolved' and 'working as designed'...
http://tracker.vbulletin.com/browse/VBIV-15197
And the requestors resolution was...
nhawk, as was pointed out to me so eloquently :rolleyes:, I probably should have thanked you for your response. I did find it useful so thank you.
But just to add to this so others reading this thread get the full picture about this issue, one of the dev team members also posted the following there. Apparently it's not a complete fix.
"Simply adding {options.bburl} most likely won't work if suite components (Forum, Blog, CMS) are located in different directories."
Another of the developers there also stated the following and this is what I take issue with:
"The current default is working as it should on a standard install, the whole point of the Manager is that those that need to change the url can"
I believe that this is most definitely NOT the whole point of the Nav Manager. It's a usability enhancement and is being promoted as such. If the whole point was ONLY to provide the ability to change URLs in the default tabs, they wouldn't have also included the ability to add new tabs. Hence my previous statements about responsiveness to customer support and product enhancements.
But enough complaining. I know this isn't the place for that. Just wanted to clarify for those who seemed to be offended by my remarks.
borbole
06-02-2012, 04:57 PM
Not my intent to be rude or arrogant and I apologize for coming off that way. But if you have a problem with people having opinions other than yours, then, well, you just have a problem I guess.
From my POV (as a customer), the arrogance is on the part of people who seem to get miffed when a person asks a fairly simple question and then gets aggravated with flip answers from an employee of the product's company. If I was in any way knowledgeable in PHP coding I wouldn't be asking such questions in the first place.
Do you not believe that it's a company's responsibility to support their customers AND a users responsibility to provide feedback for product improvement? That's the way it is in the world that I live and work in. I know that this is a "volunteer" site and perhaps I was in error to have have expected any real support for my problems here. But vBulletin is not an open source product and people who have purchased it rightfully expect to receive adequate and useful support provided in a professional manner, especially when it's coming from one of the company's employees.
I ALWAYS have a great deal of appreciation for those who are actually helpful. But telling me that I simply need to "write a plugin" or "read up" on something is far from helpful. I work with product developers on a daily basis so I understand that it's hard for coders to understand this. But it really is easier to provide a simple explanation of the fix needed and why/how the fix works. Educating users along the way is a far better support model than telling them that there's nothing wrong with the product/design and they are just not smart enough to use it.
Wouldn't it have been easier to simply say:
The default tab paths use only relative paths to their respective files. If you wish to have tabs that direct users to a URL outside of the default forum directory, you will need to edit all of the default tab paths to include "/forumdir/" before the filename.
I would also add that anyone providing even semi-official support for the product should be charged with logging any and all such support requests for evaluation by the design team as future fixes or enhancements. The issues I've talked about here definitely should qualify in that regard AND should be quite simple fixes.
But instead, I got:
You PROBABLY have YOUR URLs set wrong. You should read up...
Now, please explain this arrogance thing to me again.
But no worries. I now understand that this really isn't the place to ask for vBulletin product support so I won't make that mistake again.
Thanks for your input. Really.
--------------- Added 1338658813 at 1338658813 ---------------
First of all I do not have a problem with people having other opinions than mine. Opinions are like you know what, everyone has one :D
Anyway, all I wanted to say is that with the way you spoke to Lynne and to everyone else trying to help you, was way off base. Lynne is one of the most helpful persons around here and at vb.com.
Whereas about the answer that you got, it was the correct one. It pointed you in the right direction. You could also try to help yourself first btw by doing a little search rather than complaining.
djrichards
06-02-2012, 05:37 PM
Anyway, all I wanted to say is that with the way you spoke to Lynne and to everyone else trying to help you, was way off base. Lynne is one of the most helpful persons around here and at vb.com.
Whereas about the answer that you got, it was the correct one. It pointed you in the right direction. You could also try to help yourself first btw by doing a little search rather than complaining.
I have no doubt that Lynne is a truly lovely person. Again, my apologies for coming across as rude or arrogant. But, to be honest and direct, the answer I received was a typical coder response that was obtuse at best and was far from complete or useful to me.
As for doing a search first, that's always my approach. How do you think I found this particular thread? It seemed to be the only one that even marginally addressed my problems. Do you think I just clicked on the first thread I found and posted my questions? Where else would you suggest I look other than perhaps at the forum at vBulletin.com (which I have also done)?
My complaints only came after I tried more than once to ask questions in a reasonable manner and got responses I found to be unhelpful.
As for the answers I received, are you saying that you consider "write a plugin" or "read up" to be "correct" answers? If so, then we'll just have to differ on that.
Pointing one in a "direction" is hardly the same as providing an explanation with a complete and correct answer, (such as the one that I actually provided).
I'll try not to trouble any of you experts here again with my silly little questions. Promise.
UK CHI3F
06-13-2012, 04:52 PM
Wow reading some of that hurt my head a little.
I think this is the right thread thought, We have awards and gxboxlive leaderboard mods enabled and added them using the navigation system on vb4.2
But when i click either the tab highlighted is always forum, how do i stop this and if its by code where do i put it.
www.xboxplayers.com
Many thanks for any help you can offer
Lynne
06-13-2012, 09:16 PM
Check the pages and look to see what THIS_SCRIPT is set to and enter that as the Tab Script for the navtab.
UK CHI3F
06-14-2012, 05:58 AM
OK done Lynne thanks that was easy,
Next one is the additional tab which is just a link to a part of the forum "game nights".
I saw discostu's posts but dont really understand where I am looking for the set_navigation_tab_main
and then where do i post the script
if (in_array($GLOBALS['forumid'], array(2,15))) $root = 'tab_nzg3_214';
define('THIS_SCRIPT', 'index'); is what the forum.php says
the forum id is "6", dont understand "array", and the tab is "tab_ota1_544"
As usual thanks for your help
UK CHI3F
06-15-2012, 02:58 PM
Hopefully i haven't made it too confusing in my previous post but just checking in does anyone know what/where i should be putting my perspective code.
Thanks
Lynne
06-15-2012, 03:14 PM
set_navigation_tab_main is a hook location. That is selected when you create a plugin. The code he posted is for the plugin. https://www.vbulletin.com/docs/html/plugin_system
UK CHI3F
06-16-2012, 04:35 AM
ok the link helped a bit now i have
http://www.xboxplayers.co.uk/site/images/hookplugin.jpg
i guess as i dont know what array is ive got that wrong
Lynne
06-16-2012, 05:22 PM
You need to replace this:
(in_array($GLOBALS['forumid'], array(2,15)))
with a condition unique to your page.
UK CHI3F
06-17-2012, 09:32 AM
Sorry to be dumb Lynne but i don't understand what condition i would even begin to look for i tried forum/forums thinking it goes with the php page somehow, the forum id is definitely 6 but again i don't understand array where do i begin?
kamran_dotnet
06-21-2012, 10:38 AM
i want to show one of my forums completely in new tab
but how can i set sub forums or sub threads on that forum highlight?
--------------- Added 1340307067 at 1340307067 ---------------
i want to show one of my forums completely in new tab
but how can i set sub forums or sub threads on that forum highlight?
any idea?
Lynne
06-22-2012, 03:22 PM
You would need to put all the forumids into the condition.
kamran_dotnet
06-22-2012, 03:58 PM
You would need to put all the forumids into the condition.
its work fine on all forums i set
thank you
but when a thread on that forums opened, default tab selected again
what should we do with threads?
Lynne
06-23-2012, 02:39 PM
It works just fine on my test site for all the threads. Can you please post *exacly* what you have done?
kamran_dotnet
06-23-2012, 02:54 PM
It works just fine on my test site for all the threads. Can you please post *exacly* what you have done?
if (in_array($GLOBALS['forumid'], array(149,151,150,152,153,154,144,145,146,147,148) )) $root = 'tab_mde3_676';
all treads created in forum 148 has this problem
dmm2020
06-27-2012, 11:36 PM
How do I set up the navigation manager so that when the current page is support page that the support menu STAYS in the navigation bar? What's happening is once I click the links in the menus or links I created via the navigation manager, it shows the default forum links in the navigation bar and I definitely DO NOT want that. Any clues?
Lynne
06-28-2012, 02:44 PM
Since you have supplied very little information, all I can really tell you is that you enter the correct information into the Tab Script(s) field for the tab.
M4T VW
07-22-2012, 09:43 AM
I have 3 tabs on my forum. Home - Forum - Classifieds
The classifieds tab is a link to a section of the forums, forumdisplay.php?11-Classifieds
I have put "forumdisplay" in the tab script but when you visit some different sections of the forum, the highlighted tab changes to the classifieds tab. It only happens on some sections.
Obviously im aiming for it to only highlight when you are in the "forumdisplay.php?11-Classifieds" sections.
Any ideas?
Lynne
07-22-2012, 04:46 PM
You need a plugin. Hook location - set_navigation_tab_main
if (in_array($GLOBALS['forumid'], array(y,z))) $root = 'tab_xxx_xxx';
Change y,z to your forumids and tab_xxx_xxx to the tab name.
M4T VW
07-22-2012, 08:26 PM
Ok, I have made a plugin under the location of "set_navigation_tab_main"
This is the current Code
if (in_array($GLOBALS['forumid'], array(155,100,48,46,50,54,56,101,49,47,55))) $root = 'tab_mdkx_204';
The tab name is "tab_mdkx_204"
In the tab I have the following Url "forumdisplay.php?{session.sessionurl_q}11-Classifieds"
And in tab script I have just "forum display"
11 is the forum classifieds display, and the numbers in the array above are all the sections under the section 11 forum.
However when I view a few different forums (not all) the classifieds tab gets selected. For example its shows on my general chat section 16.
What am I doing wrong?
Thanks Lynne
Mat
Lynne
07-23-2012, 02:33 AM
Do not put anything in the tab script area.
invitezone
07-26-2012, 07:10 PM
I wonder if someone can give me some help on my tabs.
I am sure your sick of tbs questions by now by reading some of the above responces to your help, but im really stuck with this.
I am a total n00b with Vbulletin so I cannot make sense of the advice you are giving above, so please if you can be clear with me :)
any here are some screens of the tabs I have created.
http://img232.imageshack.us/img232/1633/tab1g.jpg
http://img826.imageshack.us/img826/8878/tab2c.jpg
http://img818.imageshack.us/img818/2148/tab3x.jpg
http://img266.imageshack.us/img266/8233/tab4.jpg
Now as you can see I have the tabs working, but as also im sure you will see straight away, my tabs wont be highlighted after I click them.
I know from reading above that I may need to create plugins or something and do something with This_Script, but I dont really know what these things are or how to do them.
I know I ask a lot but this is so frustrating. I would really appreciate anyone taking the time to write a simple step by step set of instructions for me to follow.
Hopefully it will help others with their problems as well as me.
Thank you to whoever tries to help me.
Try this: set the Tab Script fields as follows: Private Forum and Public Forum tabs - leave blank. Arcade - "arcade", and DONATE - "payments" (don't include the quotes).
invitezone
07-26-2012, 08:32 PM
ok the payments and donate tabs are highlighting fine now, thanks for that.
The Private Forum and Public Forum tabs are still not working though. The Private forum tab is highlighted when i click on either one of them.
Hmm...and you still have "Append 'tabid' to url" set to yes only for the private tab? Try putting "index" in the Tab Script field of the Public tab.
invitezone
07-26-2012, 09:52 PM
yep thats sorted it thanks. I dont understand it but it works :D
invitezone
07-27-2012, 10:51 PM
the public tab changes back to having the private tab highlighted when im in the public tabs sub forums
M4T VW
07-30-2012, 06:24 PM
Do not put anything in the tab script area.
It works! Thanks Lynne.
Now, Anyone know a way to copy a group of Link/Menus?
Not the actuall tabs but the sub links etc. I have about 7 on my main "forum" tab but then the menus are quite big.
I would like to copy all these to my "classifieds" tab for the time being and then might change a few later down the road.
I hope there is a quick way to copy them!
Thanks
Mat
Lynne
07-30-2012, 08:55 PM
I think Andreas wrote a modification that will do what you want with the sub links.
nyenius
08-07-2012, 09:18 AM
You need to enter something for the Tab Scripts. That is the THIS_SCRIPT name at the top of the php page. Or, if you have no THIS_SCRIPT, you just need a plugin to set the $root variable. Example for a forumdisplay page used as a navtab:
hook - set_navigation_tab_main
if (in_array($GLOBALS['forumid'], array(2,15))) $root = 'tab_nzg3_214';
This helps a LOT! thanks a bunch :):up:
You need to enter something for the Tab Scripts. That is the THIS_SCRIPT name at the top of the php page. Or, if you have no THIS_SCRIPT, you just need a plugin to set the $root variable. Example for a forumdisplay page used as a navtab:
hook - set_navigation_tab_main
if (in_array($GLOBALS['forumid'], array(2,15))) $root = 'tab_nzg3_214';
Hi. Sorry Im new with vB. Never used it before. Can you write a step by step guide how to do this? I dont really get it :( I have same problem. When I add a new tab and click on it, the tab dont get highligted.
Lynne
09-05-2012, 02:58 PM
Try setting "Append 'tabid' to URL" to Yes in the Navigation Manager for that tab and see if that fixes the issue. Otherwise, you will need to write a plugin like above. See the manual here - https://www.vbulletin.com/docs/html/plugin_system
Nelson58
09-09-2012, 12:43 PM
The home tab now highlights, but the site does not land on that page even though I made the default the Home tab.
I don't know PHP, so writing my own plugin is out.
Nelson
I.G.O.T.A.
09-10-2012, 12:27 AM
My forum tab highlights and I tried everything to get it to stop that. Any ideas what I should do?
Lynne
09-10-2012, 12:59 AM
Can you post all the information in the Navigation Manager tab that isn't working?
I.G.O.T.A.
09-10-2012, 01:07 AM
Identity vbtab_forum
Active Yes
Product vBulletin
Title Forum
Target URL forum.php{session.sessionurl_q}
Display Order 5
Show Permission Name
Append 'tabid' to URL No
Tab Script(s)
That is what I have.
Lynne
09-10-2012, 05:38 PM
So your target is the forum.php page but you don't want that tab to highlight when you go there?
TypoC
09-11-2012, 10:44 AM
I'm having trouble as well. I'm trying to set up a "Today's Posts" tab that leads to "search.php?do=getdaily". When I select this tab, the forum.php tab remains highlighted and "Today's Posts" is not highlighted.
Identity: tab_nz,1_358
Active: Yes
Product: vBulletin
Title: Today's Posts
Target URL: search.php?do=getdaily
Display Order: 55
Show Permission Name: [Blank]
Append 'tabid' to URL: Yes
Tab Script(s): search
search.php does have THIS_SCRIPT defined as such:
define('THIS_SCRIPT', 'search');
Any thoughts? Thank you!
Nelson58
09-14-2012, 11:53 AM
What I did, and it isn't perfect, is to add the TabID to EVERY tab. That will make the tab you want highlighted.
It will not change the breadcrumbs however.
Nelson
TypoC
09-15-2012, 01:15 PM
What I did, and it isn't perfect, is to add the TabID to EVERY tab. That will make the tab you want highlighted.
The status of 'TabID' doesn't seem to help in this particular tab. I don't know if it's because I'm not just going to 'search.php' but rather an ACTUAL search that changes every time. Is it impossible to get that to stay highlighted?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.