• 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
    • Bug
    • Template Not Appearing on Page

    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 Not Appearing on Page

    • Issue Tools
      • View Changes
    1. issueid=4749 October 27, 2016 9:31 AM
      Gossamer Gossamer is offline
      Junior Member
      Template Not Appearing on Page

      I'm not entirely sure if this is a bug or if I messed up a setting.

      I have a template called UnderConstruction. I placed it at the top of a specific page (this one), but the template does not appear after saving the page. If I go back to edit, the template is listed in the "Templates used" section. I've tried removing it and adding it again. I've tried putting it in a different location on the page, but it never appears on this specific page. It does work on other pages in the same category and area, such as this one.
    Issue Details
    Issue Number 4749
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Templates
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.14
    Fixed Version 4.0.16
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. October 27, 2016 11:41 AM
      pegasus pegasus is offline
      VaultWiki Team
      The template appears to contain an unclosed NOINCLUDE tag. It is possible this is preventing it from working properly. Please try closing the NOINCLUDE and seeing if that makes a difference.
      Reply Reply
    2. November 4, 2016 11:45 AM
      Gossamer Gossamer is offline
      Junior Member
      Unfortunately, that didn't fix it. I closed the NOINCLUDE tag and then refreshed and then resaved the page the template is used on. But it's still not appearing. I tried clearing my browser cache too.
      Reply Reply
    3. November 4, 2016 12:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      If you can submit a private ticket, I can review the parser internals and find out why it's not appearing on that page.
      Reply Reply
    4. December 9, 2016 2:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      I have been able to reproduce this issue on our demo by copying and pasting the contents of your page and template. I will attempt to work out the problem from there.
      Reply Reply
    5. December 9, 2016 3:14 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. This occurred when some templates were wrapped inside other BB-Code tags, such as a template inside a TABLE. In that case, templates that were not wrapped in BB-Codes were ignored if they occurred earlier in the text than any wrapped template.

      In vault/core/model/parser/handle/base/vw.php, find:
      Code:
      				$this->parent->template_usage[$this->parent->get('recursion')]["$templatelow"]["$instance"] = array(
      					'args' => $args,
      					'name' => $templatename
      				);
      
      				$stack = $this->parent->vwGetStack(true);
      
      				if (!empty($stack))
      				{
      					// eww, can't defer
      					return $this->parent->template_parser->process_replacements($text, $open['states']);
      				}
      Replace with:
      Code:
      				$stack = $this->parent->vwGetStack(true);
      
      				if (!empty($stack))
      				{
      					$unwrapped = $this->parent->template_usage;
      
      					$this->parent->template_usage[$this->parent->get('recursion')] = array(
      						$templatelow => array(
      							$instance => array(
      								'args' => $args,
      								'name' => $templatename
      							)
      						)
      					);
      
      					// eww, can't defer
      					$templateout = $this->parent->template_parser->process_replacements($text, $open['states']);
      					$this->parent->template_usage = $unwrapped;
      
      					return $templateout;
      				}
      
      				$this->parent->template_usage[$this->parent->get('recursion')]["$templatelow"]["$instance"] = array(
      					'args' => $args,
      					'name' => $templatename
      				);
      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 4: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 © 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.