![]() |
Dealing with Navigation Manager
I recently decided it was time to upgrade vBulletin to the latest v4.
The biggest issue here is the navbar and it's tabs. What I used to have it as before was the forum home page would show the tabs Forum, Blogs, and other plugins' tab like vBshop. However, I had a custom page where if you were on it, it wouldn't show Blogs or vBshop tabs. It would show other tabs that I assigned it to show ONLY on that specific page via THIS_SCRIPT. This is still possible for me because I'm adding tabs, not removing. It was easy for me to do just by editing the navtab template or sometimes creating a small plugin. Now after 4.2, I can't do that anymore. I am wondering if there is an easy way hide a tab by the script it's running or somehow create something like this. |
I have not tried this, but it should work.
Create a show variable with your script name (THIS_SCRIPT), I am using 'faq' as my example tab and script: Code:
// hook: load_show_variables I will test this a bit later when I get a chance, but give it a whirl. :) ------------------------------------ You can add additional show variables you created by using a "." between the variables (. = AND). I think the help button gives an example. $show['faq_notab'] - shuts off this tab under certain conditions -- Just create a new show variable, like above. Example: this_faq.faq_notab (Combined permissions on "Show Permission Name") I am not sure the example conditions would ever exist in combination... I was just trying to throw an example together quickly. :) |
Quote:
|
Glad to hear. :)
|
All times are GMT. The time now is 10:28 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|