• 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
    • Conflict with ToggleMe addon

    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: Conflict with ToggleMe addon

    • Issue Tools
      • View Changes
    1. issueid=3788 June 12, 2014 8:06 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Conflict with ToggleMe addon

      ToggleMe is a very popular xenforo addon: http://xenforo.com/community/resources/toggleme.137/
      All wiki widgets have 3 ToggleMe buttons. See: http://awesomescreenshot.com/0672yws237
    Issue Details
    Issue Number 3788
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Widgets / Sideblocks
    Status Not a Bug
    Priority 3 - Loss of Functionality
    Affected Version 4.0.0 Gamma 6
    Fixed Version (none)
    Milestone VaultWiki 4 Gamma X
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 12, 2014 9:38 AM
      pegasus pegasus is offline
      VaultWiki Team
      This is a design flaw in the ToggleMe mod. If you want it to work correctly with VaultWiki sidebar blocks, it will need to be corrected from ToggleMe.

      ToggleMe assumes that additional qualifying names in the class attribute for a sidebar block make that sidebar block's class name unique, and does a simple replace on divs with class attribute = X. This may be true and safe for many default-installed XenForo sidebar blocks, but it contradicts semantic usage of the class attribute, which is not meant to specify whether a div is unique. ToggleMe does a good job at handling this when class="section", so I don't know why the methodology was changed when class="section X Y etc". If you are using classes to generate ID attributes, you should always use an incremental counter, and if you are replacing based on non-unique attributes, you should either use offsets to specify the correct one, or you should use preg_replace(..., limit = 1) until all matches are resolved.

      Currently you can avoid having [toggles per block = total blocks] by having zero toggles in wiki sidebar blocks. In the settings for ToggleMe, there is one "Default Exclude Widgets". Add "vw-sidebar-block" to this list. vw-sidebar-block is not a unique signifier and is used by VaultWiki blocks with Javascript functionality to determine their root elements.
      Reply Reply  
    2. July 21, 2014 5:50 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Could you please reply to cclearhout here: http://xenforo.com/community/threads...12#post-796517
      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 6:44 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.