The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to add a Tab at Navigation bar?
Hello,
Does anybody know how I can add a new tab at navigation bar? eg beside of Home, Blogs, Groups I want to add a new tab "Classifieds". Thank you Chris |
#2
|
|||
|
|||
Turn Site Builder on then Click Navigation Bar
|
#3
|
|||
|
|||
Thank you so much, but sorry as I was not clear in my post. I meants "programatically" and not as a manual entry. On vB4.2 even with manual entries you have the ability to assign a product, so it was easy to get the code by exporting the product file.
Chris |
#4
|
|||
|
|||
i asume if you look at the examples in core/install there are a couple .xml file there that have the navigation setup example
|
#5
|
|||
|
|||
One of the nice things about vB 5 is that admins have the ability to control the way their site looks through the use of the modules (widgets). They can place things where THEY want them, not where a coder/developer thinks they should go. So, you're better off creating a widget to hold your content and let admins place it where they want it. Even if they must create a page to hold the widget.
If you go that route, you simply need to create the module (widget) and a widget template. Then code your API to handle the info displayed in the widget. In cases where a page must be pre-defined and nothing can be moved around on that page you need to create a page, a page template, a page route, a system widget, a widget template and a widget instance ID. In your case you would also need to add to the headernavbar column of the site table. All of that needs to be done in the install code for the product. At this time, there is no way to add a navigation link or page via the XML itself. And at this time, the widget instance ID must be created in your API. I think I got eveything there. |
#6
|
|||
|
|||
Yes, I know it, that's why in all my vB4 addons I had a block generator so admins where able to build (almost) any type of blocks and/or widgets, and then add them in their pages. So I'm aware of this. But still believe that a main tab for holding the main listings is a must. Otherwise we're going back to vB3.7 by saying "Open template xxx and add after calendar.php this code".
Chris |
#7
|
|||
|
|||
Then the last paragraph of my reply applies to what you want to do.
|
#8
|
|||
|
|||
Finally I was able to create Tab(s) using the product file. You can read my article at:
https://vborg.vbsupport.ru/showthread.php?t=289075 |
#9
|
|||
|
|||
Adding the tabs is easy just like adding navbar tabs the part that is missing is how to enable that tab to be the highlighted one. Any ideas on that.
|
#10
|
|||
|
|||
Quote:
http://www.christeris.net/vb5/ |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|