• 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
    • Templates with Spaces are Missing

    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: Templates with Spaces are Missing

    • Issue Tools
      • View Changes
    1. issueid=1929 August 18, 2010 2:04 PM
      pegasus pegasus is offline
      VaultWiki Team
      Templates with Spaces are Missing

      When a Template that has a space in the name is used in a page, and the space-encoding is +, and there is a URL replacement like ( Plus ) for that character, the template will not be found and instead a link to Template+Plus+Name will be added.

      Fixed in the current ZIP. In vault/class/bbcode/template.php, find:
      Code:
      				$id = $vault->article->fetch($templatename, TEMPLATE_SPACE, VAULT_LANGUAGEID, 'threadid');
      Replace with:
      Code:
      				$id = $vault->article->fetch(urldecode($templatename), TEMPLATE_SPACE, VAULT_LANGUAGEID, 'threadid');
      Find:
      Code:
      				$fetch['title'] = $vault->string->tolower($vault->encode->encode($fetch['title'], TEMPLATE_SPACE));
      Replace with:
      Code:
      				$fetch['title_enc'] = $vault->string->tolower($vault->encode->encode($fetch['title'], TEMPLATE_SPACE));
      Find:
      Code:
      			$title = $template_cache[$threadids["$t"]]['title'];
      Replace with:
      Code:
      			$title = $template_cache[$threadids["$t"]]['title_enc'];
      			$title_orig = $template_cache[$threadids["$t"]]['title'];
      Find:
      Code:
      					'[' . $tag . '=' . $title . ']' . $args . '[/' . $tag . ']',
      Replace with:
      Code:
      					'[' . $tag . '=' . $title_orig . ']' . $args . '[/' . $tag . ']',
      Find:
      Code:
      					$text = str_replace(
      						"<!-- TEMPLATE $title|$instance -->",
      Replace with:
      Code:
      					$find = "<!-- TEMPLATE $title|$instance -->";
      					$title = $vault->url->decode($title);
      
      					$text = str_replace(
      						$find,
    Issue Details
    Issue Number 1929
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Templates
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.3
    Fixed Version 3.0.4
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 18, 2010 2:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      I think there is still an issue with double-encoding involving URL replacements: http://www.vaultwiki.org/issues/1930/
      But that is a somewhat complex issue that won't be solved until after the re-write now.
      Reply Reply  
    2. August 19, 2010 1:43 AM
      Mokonzi Mokonzi is offline
      Senior Member
      That fixed the issues I've been having, though still got excess whitespace on some templates and noticed that when editing an article, the only templates listed as being part of the article are the single word templates, multi-word named templates aren't listed.

      Thanks for the hard work peg.
      Reply Reply  
    3. August 19, 2010 3:21 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please be sure to post the remaining issues as separate reports. Can't move/copy posts in PT yet.
      Reply Reply  
    4. August 19, 2010 11:49 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Reporting them 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 11:39 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.