• 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
    • Parser Function Errors...

    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: Parser Function Errors...

    • Issue Tools
      • View Changes
    1. issueid=827 September 10, 2009 10:41 AM
      Jaxel Jaxel is offline
      Junior Member
      Parser Function Errors...

      I didn't see a bug report on this, even though you know about these bugs, but I thought I would write this report anyways...

      Create a template called "test" with the following:
      Code:
      "[if={{{1}}}==0]zeroed[else /][if={{{1}}}>0]greater[else /][if={{{1}}}<0]lesser[else /]word[/if][/if][/if]" ({{{1}}})
      Then in an article call in the template...
      Code:
      [template]test|3[/template]
      [template]test|-3[/template]
      [template]test|0[/template]
      [template]test|WORD[/template]
      This will output the following:
      PHP Code:
      "greater" (3)
      "lesser" (-3)
      "lesser" ()
      "greater" (WORD) 
      It SHOULD output:
      PHP Code:
      "greater" (3)
      "lesser" (-3)
      "zeroed" (0)
      "word" (WORD) 
      As you can see, it reads a zero as less than 0, and fails to output the value at the end. This is because instead of the 0 being read as a "0", its being read as a nulled false value.

      As you can also see, it reads a word as being greater than 0. It should be reading a word character as a non-number and fail all three conditionals and return the final else.
    Issue Details
    Issue Number 827
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Duplicate
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version Unknown
    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. September 10, 2009 11:03 AM
      pegasus pegasus is offline
      VaultWiki Team
      Duplicate of: http://www.crackedeggstudios.com/issues/811/
      Reply Reply  
    2. September 11, 2009 6:27 AM
      Jaxel Jaxel is offline
      Junior Member
      With the new update to this mod, the output has SLIGHTLY changed... problems still persist...

      This is the current output...
      PHP Code:
      "greater" (3)
      "lesser" (-3)
      "zeroed" ()
      "zeroed" (WORD) 
      This is what the output SHOULD be:
      PHP Code:
      "greater" (3)
      "lesser" (-3)
      "zeroed" (0)
      "word" (WORD) 
      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:56 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.