• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • How to manually add navbar dropdown menu

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Results 1 to 8 of 8

    Thread: How to manually add navbar dropdown menu

    • Thread Tools
      • Show Printable Version
    1. April 28, 2011 #1
      DChapman
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      DChapman is offline
      Junior Member
      Join Date
      September 2, 2010
      Posts
      15
      Rep Power
      192

      How to manually add navbar dropdown menu

      Due to my custom style the navbar menu dropdown didn't install. What's the code I need to manually add?

      Thanks
      Reply With Quote Reply With Quote

    2. April 28, 2011 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      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
      Reply With Quote Reply With Quote

    3. April 28, 2011 #3
      DChapman
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      DChapman is offline
      Junior Member
      Join Date
      September 2, 2010
      Posts
      15
      Rep Power
      192
      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!
      Reply With Quote Reply With Quote

    4. April 28, 2011 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      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
      Reply With Quote Reply With Quote

    5. April 28, 2011 #5
      DChapman
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      DChapman is offline
      Junior Member
      Join Date
      September 2, 2010
      Posts
      15
      Rep Power
      192
      Adding a navbar_buttons_left hook did indeed work. Thank you for your help
      Reply With Quote Reply With Quote

    6. March 19, 2012 #6
      nasko
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      nasko is offline
      New Member
      Join Date
      February 22, 2012
      Posts
      4
      Rep Power
      0
      I've just deleted this from vault_general_links in order to remove the Articles (List) and Books (List) links.

      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']">&amp;redirect=no</if>" rel="vB_ForumLink::$topinfo[forumid]"><if condition="$links['main_page']">-- </if>$topinfo[title] ($vbphrase[vault_list])</a></td>
      </tr>
      </if>
      Is that the proper way?

      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.
      Reply With Quote Reply With Quote

    7. March 20, 2012 #7
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      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
      Reply With Quote Reply With Quote

    8. March 20, 2012 #8
      nasko
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      nasko is offline
      New Member
      Join Date
      February 22, 2012
      Posts
      4
      Rep Power
      0
      I did what you suggested (turn off "Can view wiki article list?" and give every wiki forum a main page) + remove only this line:

      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']">&amp;redirect=no</if>" rel="vB_ForumLink::$topinfo[forumid]"><if condition="$links['main_page']">-- </if>$topinfo[title] ($vbphrase[vault_list])</a></td>
      </tr>
      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:
      <if condition="($links['forum_link'] AND !$links['main_page']) OR $links['wiki_list']">
      </if>
      I guess there is now way to disable forum links just for regular users?
      Reply With Quote Reply With Quote

    Similar Threads

    1. Move Certain Page Templates to Right Menu?
      By SurferJon in forum VaultWiki Questions
      Replies: 1
      Last Post: March 25, 2016, 9:52 AM
    2. Problem allignment menu in my style
      By migratoria in forum General Discussion
      Replies: 13
      Last Post: August 5, 2014, 5:53 AM
    3. Changing the menu item label
      By shuett in forum VaultWiki Questions
      Replies: 3
      Last Post: April 2, 2010, 6:50 PM
    4. Navbar Dropdown
      By Helmut71 in forum VaultWiki Questions
      Replies: 10
      Last Post: October 10, 2009, 1:48 PM
    5. Drop down Menu gone.
      By Tallen in forum VaultWiki Questions
      Replies: 3
      Last Post: January 17, 2009, 4:52 PM

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 7:16 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.