• 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 do I remove the 'Upload a new file' link?

    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 6 of 6

    Thread: How do I remove the 'Upload a new file' link?

    • Thread Tools
      • Show Printable Version
    1. September 8, 2018 #1
      Alfa1
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Alfa1 is offline
      Distinguished Member
      Join Date
      September 26, 2007
      Posts
      597
      Rep Power
      285

      How do I remove the 'Upload a new file' link?

      In the secondary navigation there is a Upload a new file' link that I would like to remove. Is this possible?
      Reply With Quote Reply With Quote

    2. September 9, 2018 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is online now
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Since XenForo does not have a Navigation Manager in 1.x, you would use the code-event that we've provided for this.

      Code Event: vw_nav_links
      Arguments: &$links, &$show_links
      Code:
      if (isset($links['sub'])) {
       unset($links['sub']['newattach'];
      } else {
       unset($links['wiki_new_attach']);
      }
      Then clear the wiki cache by running this MySQL query:
      Code:
      TRUNCATE TABLE vw_cache
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. September 9, 2018 #3
      Alfa1
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Alfa1 is offline
      Distinguished Member
      Join Date
      September 26, 2007
      Posts
      597
      Rep Power
      285
      This doesn't seem to match with the xenforo interface.
      Do I need to add a code event or a code event listener?
      Please explain which steps to take. Or consider to add a style property or setting for this.
      Reply With Quote Reply With Quote

    4. September 9, 2018 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is online now
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Create a code event listener that listens to the code-event mentioned above. The callback for your listener should invoke the code given above.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. September 9, 2018 #5
      Alfa1
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Alfa1 is offline
      Distinguished Member
      Join Date
      September 26, 2007
      Posts
      597
      Rep Power
      285
      What do I enter here:
      Event Hint:
      Execute Callback:

      Where and How do I add the callback?
      Reply With Quote Reply With Quote

    6. September 10, 2018 #6
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is online now
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Since you are using the listener directly and not proxying a class, this is the same process as creating any XenForo listener.

      1. Create a class like MyAddon_MyClass in the directory library/MyAddon/MyClass.php
      2. Add a method (myListener) to that class with the callback signature specified by the XF listener page. (This method should invoke the code provided earlier in some way).
      3. For execute callback, you would enter MyAddon_MyClass :: myListener
      4. Associate it with the addon MyAddon.

      Generally, if the description doesn't say what will be used as a hint, you don't need an event hint. vw_nav_links doesn't use hinting.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Upload failed due to a configuration error
      By SeToY in forum VaultWiki Questions
      Replies: 7
      Last Post: November 21, 2017, 5:44 PM
    2. Mass upload
      By hollosch in forum VaultWiki Questions
      Replies: 2
      Last Post: February 20, 2015, 10:15 AM
    3. Missing Upload Images Link
      By organforum in forum VaultWiki Questions
      Replies: 2
      Last Post: November 4, 2012, 2:44 PM
    4. remove prefix from URL
      By cosy in forum General Discussion
      Replies: 3
      Last Post: May 5, 2012, 2:07 AM
    5. Remove Hyperlinking
      By gary.brain in forum VaultWiki Questions
      Replies: 2
      Last Post: July 10, 2009, 7:58 AM

    Tags for this Thread

    file, link, navigation, remove, upload

    View Tag Cloud

    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:58 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.