• 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
    • Template conditionals are not parsing

    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: Template conditionals are not parsing

    • Issue Tools
      • View Changes
    1. issueid=2850 August 22, 2012 1:14 PM
      JesterP JesterP is offline
      Junior Member
      Template conditionals are not parsing

      If we follow this example:

      https://www.vaultwiki.org/manual/Par...e-Conditionals

      We are having major issues trying to get the "if" function work as it is supposed to.

      We have no problem with this sort of thing working: [if="{{{param}}}"]Param exists[else /]Param does not exist[/if]

      But, this functionality:
      [if="{{{1}}}==hi"]You said hi![else /]You didn't say hi.[/if]
      doesn't work.

      We are not sure if we are making a syntax error or if it is something else, but the second example always works as an "if" and never as an "ifequals" in the context I present it here.
    Issue Details
    Issue Number 2850
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.19
    Fixed Version 3.0.20
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 22, 2012 2:48 PM
      pegasus pegasus is offline
      VaultWiki Team
      Confirmed here: https://www.vaultwiki.org/demo/Ifequ...st?redirect=no
      I will see if this is a syntax error or if the code is wrong.
      Reply Reply  
    2. August 22, 2012 3:04 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed. In vault/class/bbcode/extension.php, find:
      Code:
      			$condmatch[1] = $firstcond . $condmatch[1];
      Replace with:
      Code:
      			$condmatch[0] = $firstcond . $condmatch[0];
      Reply Reply  
    3. August 22, 2012 3:14 PM
      JesterP JesterP is offline
      Junior Member
      Thank you!
      Reply Reply  
    4. This petition for a change to In Progress was accepted
      August 22, 2012 8:28 PM
      JesterP JesterP is offline
      Junior Member
      Hi again,

      That did fix that issue, but it broke something else according to our wiki crew:

      And.... The fix broke another part of the if function. Now the basic function: [if="{{{param}}}"]Param exists[else /]Param does not exist[/if]

      no longer works. Other functions seemed to stop working, but it took me a while to realize what was going on.
      Help?
       
    5. August 24, 2012 10:15 AM
      pegasus pegasus is offline
      VaultWiki Team
      In the same file, find:
      Code:
      			else if ($condmatch[1] == '')
      Replace with:
      Code:
      			else if ($condmatch[0] == '')
      Reply Reply  
    6. August 24, 2012 12:48 PM
      JesterP JesterP is offline
      Junior Member
      Thank you again. All indications are that it's working properly now.

      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 12:43 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.