• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • conditionally load YUI libraries, only if not already loaded.

    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.

    Issue: conditionally load YUI libraries, only if not already loaded.

    • Issue Tools
      • View Changes
    1. issueid=3502 November 26, 2013 1:18 PM
      adwolf1 adwolf1 is offline
      New Member
      conditionally load YUI libraries, only if not already loaded.
      conditionally load the YUI libraries, only if not already loaded.

      minor feature request --

      we use YUI to build drop-down menus on our site, and when we turned on the vault plugin, they stopped working.

      after examining the issue, it looked like YUI was being loaded twice on the page.

      commenting out $this->add_script($yui); in core/view/global/vw.php fixed the issue, and both the menus and vault worked fine.

      Any chance you can detect whether or not YUI is loaded, and if so, prevent vault from loading it again in the footer? I hate to have to hack up the php...

      thanks!
    Issue Details
    Issue Number 3502
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Page Output
    Status Fixed
    Priority 7 - Minor Features / Enhancements
    Affected Version 4.0.0 Beta 7
    Fixed Version 4.0.0 Gamma 1
    Milestone VaultWiki 4 Beta X
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. November 26, 2013 2:24 PM
      pegasus pegasus is offline
      VaultWiki Team
      We can't detect if YUI has already been loaded... via PHP. If you also already use YUI on the site, why not add it with a plugin:
      Code:
      vw_Hard_Core::view('Global')->add_script('PATH TO YOUR MENU SCRIPT')
      Then both will play together nicely because VaultWiki will know you have included YUI.

      It is possible to detect with Javascript, however. Even though I really would have liked to avoid using document.write due to issues with combining that and AJAX, I have made this change in the interest of maximum compatibility, and marked this as Fixed in the next release.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 7:08 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.