[HOW TO - vB4] Create a New Tab in the navbar (with template)
1 Attachment(s)
I know that lynne allready postet an article, but here's a other way:
This tutorial will show you, how to add own links to your navbar. (In the tutorial i'll use the code for my news add-on) 1. create a template (ragtek_news_navbar) HTML Code:
<vb:if condition="$vboptions['selectednavtab'] == 'ragteknews'"> PHP Code:
Thats important because where using a condition in the template: HTML Code:
<vb:if condition="$vboptions['selectednavtab'] == 'ragteknews'"> |
Can I ask where do you place the plugin?
In truth I am getting a bit lost with this, why can't the CMS simply place links where you want them, I like subdreamer's way of doing this I think! |
Sorry, strange that it's gone away. I've edited my post;)
And the hook is process_templates_complete |
Quote:
|
1 Attachment(s)
Man this is awesome. When I am displaying the page I created the forums tab is still highlighted....am I missing something or did I forget to change something.....
Thanks for the help! |
whats your code?
|
Which code? The plugin code?
|
Plugin and template code
|
Very cool and simple, thanks for this.
|
Plug In Code:
Code:
$tabselected = ''; Code:
{vb:stylevar htmldoctype} |
All times are GMT. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|