• 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
    • Feature
    • String Manipulation Parser functions

    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: String Manipulation Parser functions

    • Issue Tools
      • View Changes
    1. issueid=2859 September 4, 2012 11:31 AM
      JesterP JesterP is offline
      Junior Member
      String Manipulation Parser functions

      A simple find and replace along with a function to break apart a large string into multiple smaller strings as defined by a certain character would be a huge help.
    Issue Details
    Issue Number 2859
    Issue Type Feature
    Project VaultWiki 4.x Series
    Category Templates
    Status Implemented
    Priority 7 - Minor Features / Enhancements
    Suggested Version 3.x
    Implemented Version 4.1.0 Alpha 1 Preview
    Milestone VaultWiki 4.1
    Software DependencyAny
    License TypePaid
    Votes for this feature 0
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 8, 2014 2:43 PM
      pegasus pegasus is offline
      VaultWiki Team
      Originally suggested for 3.0.19.
      Reply Reply  
    2. February 10, 2015 11:13 AM
      hollosch hollosch is offline
      Senior Member
      Do you mean a "find and replace" for the whole wiki?
      Reply Reply  
    3. October 27, 2018 11:09 AM
      pegasus pegasus is offline
      VaultWiki Team
      4.1.x has the following functions:
      Code:
      [var]replace|find-text|replace-text|haystack[/var]
      [var]set|local-name|content[/var]
      [var]get|local-name[/var]
      [var]each|local-name|split-on-char|this-many|template-content[/var]
      In "replace", this works basically the same as PHP's str_replace. The first parameter is the text to search for, the second parameter is the text to replace the found text with, and the third parameter is the text where this will be performed. The parameters are separated by |

      In "set", this works like a local template. It cannot be passed any arguments. Basically its a way for you to set a text to reuse later. "get" lets you recall that text. It is restricted to the current page/template scope. For example, if you are in the middle of a template stack, only something that was "set" in the same template can be "get."

      For "each", this takes the name of a local template that was "set" as the first parameter, and splits the contents of that by the character(s) in the second parameter, up to the number of times specified by the third parameter. Each resulting sub-string is then applied to the content in the fourth parameter by replacing occurrences of the phrase "{text}" in the content with the sub-string.
      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 5:42 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 © 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.