How do I add manage the menu items in the wiki-navbar drowpdown menu?
I did set the namespaces for wiki, book and special and I did set the rights but the menu is still empty / isn't shown.
Printable View
How do I add manage the menu items in the wiki-navbar drowpdown menu?
I did set the namespaces for wiki, book and special and I did set the rights but the menu is still empty / isn't shown.
Did you edit the template vault_general_links and change it from table-based to list-based? In this case, you should make the following file edit. In vault/special_plugins.php, find:
Replace with:PHP Code:
if (substr_count($vault_menu, "<td") > 0)
If you are using a custom navbar template, make sure the following is in the template:PHP Code:
if ($links['menu_header'] OR $links['special_header'])
Code:$template_hook[navbar_buttons_left]
@pegasus: I only changed general_forum_post and general_menu, shall I try the code change anyway?
where should this be added?Quote:
$template_hook[navbar_buttons_left]
I also tried the original vB-style and there is no dropdown, too.
In vBulletin Options > vBulletin Options > VaultWiki: General Settings, is "Enable Navbar Wiki Menu?" set to "Yes"?
Please post your modified vault_general_menu.
the menu is set on "yes"
I just noticed that the menu is shown in some ereas (eg forum) but doesn't work in other areas like vbcms, photoplog, ibpro arcade..
If a page doesn't eval() $navbar in the global scope, or if $template_hook is unavailable, then the menu simply won't appear. In this case, this would be a design issue of the mod in question. Several NuHit mods did this before that company disappeared.
However, I'm not familiar with the current versions of the above mentioned mods, so I cannot confirm whether this or something else is the problem. Can you provide links to each of these?
sure.
ibpro arcade: http://www.vbulletin.org/forum/showthread.php?t=101554
Photoplog: http://www.photoplog.com/
Now I can only see Photoplog Lite, so bear with me. In photoplog/functions.php, find:
Add after:Code:global $notifications_total, $notifications_menubits;
You should also complain to their support that $template_hook is not available in the scope they output the page. Using a setting to add this variable is not acceptable, since it's a default part of vBulletin (and they bothered integrating $notifications_menubits).Code:global $template_hook;
It looks to me like the most recent release of ibpro arcade is compatible. If you haven't updated that in a while, the newest version is 2.6.8.
I do have the lates version - and the navbar dropdown doesn't work.Quote:
It looks to me like the most recent release of ibpro arcade is compatible. If you haven't updated that in a while, the newest version is 2.6.8.
thanks a lot for the hint with photoplog.
Shall I try sthg similar with ibpro arcade?
The problem with ibpro arcade is different. It seems that <i>$GLOBALS['vault_menu']</i> is nulled before the $navbar is eval()d. I don't have an arcade test install so I can't figure out where exactly this occurs. I have read through the code for the arcade multiple times with no luck.
You can just as easily remove the menu link from the arcade pages with a template edit in <i>vault_general_menu</i>:
Code:<if condition="THIS_SCRIPT != 'arcade'">
...
</if>