• 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
    • Setting Area Content Types

    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: Setting Area Content Types

    • Issue Tools
      • View Changes
    1. issueid=4313 May 29, 2015 8:11 AM
      Gossamer Gossamer is offline
      Junior Member
      Setting Area Content Types

      I've noticed two issues when trying to configure the content types allowed in an area.

      1. If I save 'all' as an option, I'm unable to later deselect this option and choose a specific content types in its place. If I uncheck it and select just 'page' in its place, the change does not actually save. Going back into the area setup, both 'page' and 'all' are selected and all types can still be created.

      2. I'm not sure if this is how it's intended to work, but it's definitely tripped me up a few times that I wonder if it's a bug. It seems like 'page' is a prerequisite for some other content types to work. For example, if I try to set an area to only allow 'book' types, attempting to create a book in that area just gives me this error:


      However, if I select page + book as area content types, then I can create a book with no issue. I've noticed this also happens for categories, templates, and attachments so far.

      I've tried to setup an area that allows only books, so that if somebody wants to add a new chapter to that book, they have to select a different area to save that book to since the current area in the select list, I assume, would be grayed out in that situation. But that doesn't currently work, since I can't even create a book in that area due to the error message above.
    Issue Details
    Issue Number 4313
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Admin Panel
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.4
    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 29, 2015 8:54 AM
      pegasus pegasus is offline
      VaultWiki Team
      #2 It was a bug. I thought we fixed it here: https://www.vaultwiki.org/issues/4309/
      Reply Reply
    2. May 29, 2015 9:03 AM
      pegasus pegasus is offline
      VaultWiki Team
      In the replace code there (vault/core/model/ui/tab/vw.php), it seems this:
      Code:
      if ($type['isPage'] AND $type['isAllowed'] AND !$type['isContent'])
      Might have to be this:
      Code:
      if ($type['isPage'] AND $type['isAllowed'])
      But that will have to be changed elsewhere too.
      In vault/core/dm/page/vw.php, find:
      Code:
      if ($dependent['isPage'] AND $dependent['isAllowed'] AND !$dependent['isContent'])
      Replace with:
      Code:
      if ($dependent['id'] == $this->node['id']) continue;
      
      if ($dependent['isPage'] AND $dependent['isAllowed'])
      The 'isContent' check was meant only to skip the 'page' prerequisite (because it's not a prerequisite), but it was unintentionally excluding other qualifying 'isContent' types like books, categories, etc as you noticed. Since in this context we have other ways of excluding 'page' as a requirement, we can do that instead.
      Reply Reply
    3. May 29, 2015 9:29 AM
      pegasus pegasus is offline
      VaultWiki Team
      #1 In vault/core/view/cp/area/vw.php, find:
      Code:
      if (empty($type_options["$type"]))
      Replace with:
      Code:
      if ($type AND empty($type_options["$type"]))
      Reply Reply
    4. May 29, 2015 2:22 PM
      Gossamer Gossamer is offline
      Junior Member
      Thank you! Both issues appear to be fixed now. I can successfully create books/categories/etc. in areas that don't allow pages.
      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 10: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 © 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.