• 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
    • Can't create templates

    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: Can't create templates

    • Issue Tools
      • View Changes
    1. issueid=4309 May 27, 2015 7:10 PM
      Gossamer Gossamer is offline
      Junior Member
      Can't create templates

      So, I'm having trouble creating a template, and I think I have everything setup correctly. I created an area and set it so that only templates can be added to that area.

      When I click the "Create Template" button, the page has this on it, so it looks like templates are configured for it:


      When I try to preview or save the template, I get this error:
    Issue Details
    Issue Number 4309
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.3
    Fixed Version 4.0.4
    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. May 27, 2015 10:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      The permissions for creating new content are not consistent with what areas allow. In vault/core/model/ui/tab/vw.php, find:
      Code:
      				if (!$allowed AND !in_array($item['itemtypeid'], $area['allowtypes']))
      				{
      					return false;
      				}
      Replace with:
      Code:
      				if (!$allowed AND !in_array($item['itemtypeid'], $area['allowtypes']))
      				{
      					if (!empty($item['typelist']) AND $item['typelist'] != array($item['itemtypeid']))
      					{
      						$allow_parenttype = false;
      
      						foreach ($item['typelist'] AS $typeid)
      						{
      							if ($typeid == $item['itemtypeid'])
      							{
      								continue;
      							}
      
      							if (!in_array($typeid, $area['allowtypes']))
      							{
      								return false;
      							}
      
      							$type = vw_Hard_Core::model('Node')->one($typeid);
      
      							if ($type['isPage'] AND $type['isAllowed'] AND !$type['isContent'])
      							{
      								$allow_parenttype = true;
      							}
      						}
      
      						return $allow_parenttype;
      					}
      					else
      					{
      						return false;
      					}
      				}
      Reply Reply
    2. May 28, 2015 7:43 AM
      Gossamer Gossamer is offline
      Junior Member
      Thanks! It works 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 6:41 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.