• 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 3.x Series
    • Bug
    • Another IF problem

    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: Another IF problem

    • Issue Tools
      • View Changes
    1. issueid=2510 October 19, 2011 1:23 PM
      Lord Doys Lord Doys is offline
      Junior Member
      Another IF problem
      when two almost identical values, it shows both while only one is given

      Still trying to rebuild that same template i noticed another bug in the IF statements.

      I have two "template variables"
      image and imageleft

      thes are optional images to display in a table. Also some of the CSS classes depend on its presence.
      (something like if the imageleft is not there, then the width width is 250px or so)

      nut now i noticed that the sourcecode the 250px IS written, while the imageleft is NOT given...
      it turns out everything that is containing image is being displayed

      ie:
      [if="{{{image|}}}"]{{{image}}}[/if]
      [if="{{{imageleft|}}}"]This text should not be visible![/if]


      Even when i put AGE, the imageleft IF-statement gives true...

      see test 2 and 3:
      https://www.vaultwiki.org/demo/TestArjan?redirect=no
    Issue Details
    Issue Number 2510
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.14
    Fixed Version (none)
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. October 19, 2011 3:40 PM
      Lord Doys Lord Doys is offline
      Junior Member
      Actually the whole IF is broken now...

      https://www.vaultwiki.org/demo/TestArjan

      i have a variable with a unique name, not even close to one of the others... and that IF statement gives true as well
      [div][if="{{{groarjan|}}}"]There is not even a variable name close to this one: groarjan.. and it still shows
      Reply Reply  
    2. October 19, 2011 5:11 PM
      pegasus pegasus is offline
      VaultWiki Team
      Ok, TestArjan looking better again. I've committed the changes to 3.0.14 build 004. The relevant files are:
      - vault/class/bbcode/template.php
      - vault/class/bbcode/extension.php
      Reply Reply  
    3. October 19, 2011 5:36 PM
      Lord Doys Lord Doys is offline
      Junior Member
      Cheers, downloaded the files.. Looks much better.. thnx

      back to template fixing (still working on debugging the first one...)
      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 2:55 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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.