![]() |
|
Article Options |
#46
|
||||
|
||||
You will need to turn on the append tabid option for that tab.
__________________
Former vBulletin.org Staff Member
Cable Forum Please do not PM me about custom work - I no longer undertake any. Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum. No members have liked this post.
|
#47
|
||||
|
||||
Or add to Tab Script(s) setting. That was all I have to do to get the tab to highlight.
No members have liked this post.
|
#48
|
|||
|
|||
I wonder if I won't need http://www.vbulletin.org/forum/showthread.php?t=271740 anymore :O
No members have liked this post.
|
#49
|
||||
|
||||
Nope, with Andreas' add-on you can now do drop-down links with tabs.
No members have liked this post.
|
#50
|
||||
|
||||
Originally Posted by Boofo
Please see:![]()
http://www.vbulletin.org/forum/showthread.php?t=283146 and https://www.vbulletin.com/forum/show...t-Tab-in-4-2-0 The way I'm ding it is via a <navigation> section of my product files and only setting $show variables to control their display.
__________________
www.AusPhotography.net.au a.k.a. AP is a photography forum where members share their photography, photo editing skills and techniques. We run regular photographic competitions; Rick (site owner) and Kym (site tech) using this account *** Home of the AP fully comprehensive vb4 photographic competition management solution *** No members have liked this post.
|
#51
|
||||||||
|
||||||||
Originally Posted by snoopytas
The Navigation Manager won't accept variables, though, and that is the issue I am having. I have a Search Posts sub-link menu that uses a setting to get the days.![]()
etc... I then use vb:each in the template to have it build the menu with the days links:
etc... You can't do that in the Navigation Manager so I need to be able to add that sub-link where the New Posts link (below the navtabs) is now. Without the template hooks, I'm screwed. No members have liked this post.
|
#52
|
||||||||
|
||||||||
Originally Posted by Boofo
Like this?![]()
![]() 1) Add a menu to the forum tab. 2) Add links to the menu. In the example shown I didn't disable the original New Posts link.. you might want to do that too. ![]() You can do this manually, in the install file for your mod, in a php file, in a plugin using the database, or I'm pretty sure dynamically in a plugin. I'm using the database method for items that don't change frequently. The best place I've found for something that comes from a settings page is to use the admin_options_processing hook and add/modify the navigation items in the database. No members have liked this post.
Last edited by nhawk; 24 May 2012 at 16:49. |
#53
|
||||
|
||||
Yes, it is looks that but I use vb:each to get each link from the settings. I don't add them one by one. This is what I use in the template (wrapped in a vb:each) to get it to make the menu:
No members have liked this post.
|
#54
|
||||
|
||||
Originally Posted by Boofo
Since the settings are where the number of days are contained, get the template out of your head. It's not needed anymore. ![]()
![]() Put the links in the navigation table and the phrases for those links in the phrase table via the admin_options_processing hook once and you're done. The only time they would need to be updated is if the settings change and then you just update them via the same hook. No members have liked this post.
|
#55
|
||||||||||||
|
||||||||||||
Originally Posted by Boofo
Try This Method![]()
Hook: navigation_tab_complete
The following members like this post: nhawk
|
#56
|
||||
|
||||
Yes, that worked., although it throws it as the end of the links instead of at the beginning where it needs to be. Plus I has more items in the menu too, but this is close.
No members have liked this post.
|
#57
|
|||
|
|||
I'm really curious why people are so resistant to putting their navigation items in the database. It's easy to do and it only needs to be done once (or any time there's a change in the settings). And then the menu is handled by vB without the use of a plugin.
No members have liked this post.
|
#58
|
||||
|
||||
use array_slice, array_merge to adjust position
No members have liked this post.
|
#59
|
||||
|
||||
Because why make unnecessary queries when you don't have to?
No members have liked this post.
|
#60
|
|||
|
|||
The only query you're making is when you add to the database when you save settings. The rest is already done by vB.
No members have liked this post.
|
![]() |
![]() |
||||
Article | Author | Type | Replies | Last Post |
Administrative and Maintenance Tools Navigation Manager Enhancements | Andreas | vBulletin 4.x Add-ons | 337 | 03 Jan 2018 16:58 |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 15:40.