Due to my custom style the navbar menu dropdown didn't install. What's the code I need to manually add?
Thanks
Due to my custom style the navbar menu dropdown didn't install. What's the code I need to manually add?
Thanks
You'll need to add a $template_hook like 'navbar_buttons_left' or 'navbar_buttons_right' to your custom navbar, and modify the vault_general_links template so that it works with your style.
- lead developer for VaultWiki
Oops, it turns out the buttons aren't in my navbar, they've been moved to the header. What template hook do I need to add for it to work there?
Thanks!
Should be the same ones. However, the header template is eval()ed much earlier by vB, so it might not work. Difficult to say; you'll have to try and find out.
- lead developer for VaultWiki
Adding a navbar_buttons_left hook did indeed work. Thank you for your help
I've just deleted this from vault_general_links in order to remove the Articles (List) and Books (List) links.
Is that the proper way?Code:<if condition="($links['forum_link'] AND !$links['main_page']) OR $links['wiki_list']"> <tr> <td class="vbmenu_option"<if condition="$links['main_page']"> style="font-size: 70%"</if>><a href="forumdisplay.php?$session[sessionurl]f=$topinfo[forumid]<if condition="$links['main_page']">&redirect=no</if>" rel="vB_ForumLink::$topinfo[forumid]"><if condition="$links['main_page']">-- </if>$topinfo[title] ($vbphrase[vault_list])</a></td> </tr> </if>
Also is it possible that regular users would see one Navbar link without being dropdown. Just a simple link on the navbar that leads to to Home. And Admins/Mods can see the full drowndown menu. Would that require using 2 different styles per usergroup?
My ideas is not make it as hard as possible to go to the forum view. There is no way to make the forums inaccessible, without affecting the articles/books, right?
Thank you.
Your edit looks appropriate. The other way would just be to turn off the permission "Can view wiki article list?" and give every wiki forum a main page.
There is no built-in way to remove the drop-down. This was an evil of vBulletin 3. You could just make a fully customized template.
- lead developer for VaultWiki
I did what you suggested (turn off "Can view wiki article list?" and give every wiki forum a main page) + remove only this line:
But I left this one otherwise it is impossible even for admins to open the forum list = can't post new articles, books, images, etc.Code:<tr> <td class="vbmenu_option"<if condition="$links['main_page']"> style="font-size: 70%"</if>><a href="forumdisplay.php?$session[sessionurl]f=$topinfo[forumid]<if condition="$links['main_page']">&redirect=no</if>" rel="vB_ForumLink::$topinfo[forumid]"><if condition="$links['main_page']">-- </if>$topinfo[title] ($vbphrase[vault_list])</a></td> </tr>
I guess there is now way to disable forum links just for regular users?Code:<if condition="($links['forum_link'] AND !$links['main_page']) OR $links['wiki_list']"> </if>
Bookmarks