The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB4.2 Navigation Manager - how to discussion
I have vB 4.2.0 BETA 1 running in my test system. Products that use templates/hooks to integrate with the navbar will need the following changes to work with the Navigation Manager. Please post code snips and hints in this thread, we are all on a learning curve. 1. Remove old style navigation hooks/templates etc. 2. Create a new <navigation> section in the product XML file (You can create the navigation in the navigation manager, linked to a product then export the product file as a skeleton) 3. Set any conditionals in a hook or in your main code Eg. $show['apmgtug'] = true; is set for one of the menu items in my example My example relies on $show['member'] = true; as well. Leave the <show> tag empty for 'public' tabs/links 4. If you have multiple scripts, leave <scripts> blank and set $root at the new hooks set_navigation_tab_fallaback or set_navigation_tab_vbview Code:
if (<some condition>) $root= '<name of tab>'; I would probably have a new vB4.2 code base because of the differences, you could have the same code base with some sort of version check. In the end the new navigation integration is better and easier. Here are sample <navigation> from one of my own plugins... Code:
<navigation> <tab name="aptab_competition" date="1337135420" username="APcompetition" version="3.0.0"> <active>1</active> <show>member</show> <scripts>apcompetition</scripts> <displayorder>30</displayorder> <url><![CDATA[apcompetition.php{session.sessionurl_q}]]></url> </tab> <link name="aplink_enter" date="1337135420" username="APcompetition" version="3.0.0"> <active>1</active> <show>member</show> <parent>aptab_competition</parent> <displayorder>20</displayorder> <url><![CDATA[apcompetition.php{session.sessionurl_q}]]></url> </link> <link name="aplink_search" date="1337135420" username="APcompetition" version="3.0.0"> <active>1</active> <show>member</show> <parent>aptab_competition</parent> <displayorder>40</displayorder> <url><![CDATA[apcompetition.php?{vb:raw session.sessionurl}do=search&apmycomps=1]]></url> </link> <link name="aplink_performance" date="1337135420" username="APcompetition" version="3.0.0"> <active>1</active> <show>member</show> <parent>aptab_competition</parent> <displayorder>60</displayorder> <url><![CDATA[apcompetition.php?{vb:raw session.sessionurl}do=performance]]></url> </link> <link name="aplink_fame" date="1337135420" username="APcompetition" version="3.0.0"> <active>1</active> <show>apmgtug</show> <parent>aptab_competition</parent> <displayorder>80</displayorder> <url><![CDATA[apcompetition.php?{vb:raw session.sessionurl}do=finalvotereport]]></url> </link> </navigation> Code:
<phrasetype name="GLOBAL" fieldname="global"> <phrase name="vb_navigation_tab_aptab_competition_text" date="1336964077" username="APcompetition" version="3.0.0"><![CDATA[Competitions]]></phrase> <phrase name="vb_navigation_link_aplink_enter_text" date="1336964077" username="APcompetition" version="3.0.0"><![CDATA[Enter a Competition]]></phrase> <phrase name="vb_navigation_link_aplink_search_text" date="1336964077" username="APcompetition" version="3.0.0"><![CDATA[Search Competitions]]></phrase> <phrase name="vb_navigation_link_aplink_performance_text" date="1336964077" username="APcompetition" version="3.0.0"><![CDATA[My Performance]]></phrase> <phrase name="vb_navigation_link_aplink_fame_text" date="1336964077" username="APcompetition" version="3.0.0"><![CDATA[Hall of Fame]]></phrase> </phrasetype> Pull down menu's can also be coded. Have a look at the vB source for examples. Specifically "./install/vbulletin-navigation.xml" |
#102
|
||||
|
||||
Joining them with a dot in the permissions box means all of them must be true.
There isnt any way to do an OR within the box, you would need to do it a hook and assign the result to another show variable. |
#103
|
|||
|
|||
Can someone, pleace, tell mi how to make these steps because I'm new in Vbulletin and I had installed some Mod but the NavBar totaly screwed up...
Quote:
|
#104
|
|||
|
|||
Quick question, my navigation works for all plugins installed but one.
I doubt it will be updated so any help would be appreciated. This application sits outside of the forum path and the navigation menu doesn't show up. Any code I can add to templates or the php file so it shows the navbar menu then i can disable the navbar plugin for this application. Thanks |
#105
|
|||
|
|||
I am using Navigation Manager with an enhancement from DBTech
https://vborg.vbsupport.ru/showthread.php?t=274972 I want to change the appearance (background and text) of just one or two tabs to make them stand out. (hover and non hover) How can I do this please? |
#106
|
||||
|
||||
Answered in the other thread you started.
|
#107
|
|||
|
|||
I have created a tab via the Nav Manager that links directly to an article.
That link works just fine; however, when I click on the "regular" Articles tab (the standard one, that links to content.php), my users that are not logged in get an Access Denied message. I have checked and the Not Logged In usergroup has read access to CMS. Any ideas? |
#108
|
|||
|
|||
I re-did my site and the problem, above, is fixed.
Now I have another question. I am using the Navication manager in 4.2.2 and adding in some Tab sub-menus. My Tabs that have a drop-down menu attached are 1px taller than the ones that do not have sub-menus. I see where I can edit the tab template, but I'm not sure what to change. Edit: Another possibility is that the Tab with the drop-down menu is looking at the stylevar or CSS height of the "selected" tab, because they both appear to be 1px larger along the bottom. I am attaching a screenshot of what I mean. |
#109
|
||||
|
||||
That is a issue that is related to your custom style, you would need to ask the skin designer what the issue is.
|
#110
|
|||
|
|||
Thanks! It looks like we set the navtab border color to the same as the background, so it disappeared.
It looks like the "issue" is that the Tab with the drop-down isn't getting the border applied to it, even with the default style. |
#111
|
||||
|
||||
how can i add fb group link in navigation ?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|