The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help - Getting Certain NavTabs Highlighted
Ok, I'll try to explain the best I can - just a newb. Because you can't create new template pages in the CMS, I'm having to create new articles and link to them as if they're actual pages.
1. So, I create a new article. For example, "About" 2. Go the the Navigation Manager, and select Add Tab, name it About.. link it to the Article Now when I click on About, of course the NavTab highlighted is Articles (or in the screenshot, "Home"). Bottom line: All I need is to have About highlighted when it's selected, and Home deselected. Is this possible? From reading on here there's something about creating a plugin hook, but I don't follow. The THIS_SCRIPT variable for the newly created article just says: var THIS_SCRIPT = "vbcms"; When I plug-in vbcms in the Tab Script(s) area it doesn't do anything as you'd expect. Appreciate any hints to get me pointed in the right direction.. |
#2
|
|||
|
|||
What might work well for you is to set "Append 'tabid' to URL" to yes. Normally that would be (IMHO) a last resort for getting a tab to be selected because it will only appear selected if you arrive on the page by clicking the tab, but in your case it sounds like there isn't any other way you'd expect people to get to the page.
|
#3
|
||||
|
||||
hook location: set_navigation_tab_vbview
php: PHP Code:
Plugin system - http://www.vbulletin.com/docs/html/plugin_system |
#4
|
|||
|
|||
Quote:
--------------- Added [DATE]1352149516[/DATE] at [TIME]1352149516[/TIME] --------------- Quote:
|
#5
|
||||
|
||||
No, you don't just drop that code in the plugin, you need to make the couple of changes I listed for the tab first. And yes, you may list several of those in that plugin.
|
#6
|
|||
|
|||
So the ID is 74 and the tab is tab_mja2_349. Seems pretty straight forward but I'm missing something Lynne.
So, the code is: if (intval($_GET['r']) == 74) $root = 'tab_this_349'; I just go to create New Plugin. Then find the hook location... plugin the code and set it to active right? But this doesn't work. I'll try to find that section in the manual... but appreciate your help so far. |
#7
|
||||
|
||||
No, it is not tab_this_349 - it should be something like tab_otux_996 or tab_mtkz_287 - only tab_ will be the same.
|
#8
|
|||
|
|||
Got it, thank you ^
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|