• 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
    • Vaultwiki causes template modification in account_wrapper template to not function properly

    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: Vaultwiki causes template modification in account_wrapper template to not function properly

    • Issue Tools
      • View Changes
    1. issueid=4908 February 8, 2017 9:35 PM
      beernuts beernuts is offline
      Junior Member
      Vaultwiki causes template modification in account_wrapper template to not function properly

      We have a template modification (Using the template modification system) that removes links from the account_wrapper template in Xenforo. This modification works perfectly until Vaultwiki is installed. After Vaultwiki is installed and activated, the template modification no longer works correctly. You can see this behavior by logging in to your account and visiting http://www.badgerandblade.com/forum/...ontact-details
    Issue Details
    Issue Number 4908
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category User Profiles
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.16
    Fixed Version 4.0.17
    Milestone (none)
    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. February 9, 2017 8:50 AM
      pegasus pegasus is offline
      VaultWiki Team
      Since the other template modification was added by you, this is not a bug in VaultWiki.

      You should modify the order that the template modifications are applied (probably make your modification occur after VaultWiki's modification). If that does not work on its own, then you may need to alter your modification in some way to avoid the conflict.
      Reply Reply
    2. February 9, 2017 8:57 AM
      beernuts beernuts is offline
      Junior Member
      That's not right, though. There is something screwy with the way Vaultwiki is modifying the output.

      1. The template modification was added by an addon, not by me personally.

      2. We have 4 addons that modify that area of the page. They all work fine together. It's only when Vaultwiki is enabled that the likes link breaks. Something is screwy with the way Vaultwiki is inserting that link.

      3. As far as I can tell, Vaultwiki isn't using a template modification to inject those links, so there is no way for me to move this template modification to after Vaultwiki's. As a test, I changed the execution order to 10000 and the problem still exists.

      4. I understand the hesitance to look into what appears to not be a vaultwiki issue, but the fact remains that we have several addons that work fine in tandem in this area. ONLY when vaultwiki is enabled do we experience this issue.

      I'm not trying to be aggressive here, but it's obvious that Vaultwiki has some sort of issue with the way it's inserting the 3 links into the account_wrapper template. I would appreciate it if you'd actually take a glance at the code and correct the issue affecting us.
      Reply Reply
    3. February 9, 2017 11:25 AM
      pegasus pegasus is offline
      VaultWiki Team
      Thanks for the clarification. I've looked at it, and while VaultWiki is not really doing anything non-standard here (it's using XenForo's template hook, rather than a modification as I thought), the code expects that the likes link will always be there (as there was no way to disable it in default XenForo). This results in a conflict with the other add-on "Remove Likes", because template modifications occur before template hooks.

      I've fixed this on your site, but I'd like to try to implement a more elegant solution so that the links are still in the intended position and so that the execution order technique would work.
      Reply Reply
    4. February 9, 2017 11:34 AM
      pegasus pegasus is offline
      VaultWiki Team
      A true fix, which uses a hybrid template modification + template hook combination, will be included in the next release.
      Reply Reply
    5. February 9, 2017 11:34 AM
      beernuts beernuts is offline
      Junior Member
      It seems like the best solution would be to use a negative lookahead or some other detection method to find the last occurrence of </li> inside the account_wrapper_sidebar_your_account hook and append your links after that last list item. That way the number or names of the links in the sidebar doesn't matter.
      Reply Reply
    6. February 9, 2017 11:35 AM
      beernuts beernuts is offline
      Junior Member
      Posted at the same time. Glad to hear there will be a proper fix for this in future releases.

      Thanks
      Reply Reply
    7. February 9, 2017 11:38 AM
      pegasus pegasus is offline
      VaultWiki Team
      It's easier to get the last item than that. The problem was positioning the content-related links near other content-related links when any of those other links might have been removed (there was a bug report a few months ago requesting that we do this).

      We've added our own "slot" using a template modification with execution order = 1, so the slot should be added before most other modifications have a chance to remove anything. Then in our hook, we look for the presence of our slot to add our links template there. This should cover basically any combination. It would now be possible to use template modifications to move/remove our slot if desired as well.
      Reply Reply
    8. February 9, 2017 11:40 AM
      beernuts beernuts is offline
      Junior Member
      Smart! I'll remember that trick for my future addons.
      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 10:34 AM.
    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.