• 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 not move category to new area

    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 not move category to new area

    • Issue Tools
      • View Changes
    1. issueid=4540 February 13, 2016 7:54 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Can not move category to new area

      I created a new area after a category was created. Then tried to move the category the area was not visible in the drop down. Yet the area was set to hold categories only.
      When I set the area to hold any content type it appeared in the drop down.
    Issue Details
    Issue Number 4540
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Areas
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.8
    Fixed Version 4.0.9
    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. February 14, 2016 10:34 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/view/ui/imod/vw.php, find:
      Code:
      		foreach ($this->items AS $itemtypeid => $itemlist)
      		{
      			$itemtypes["$itemtypeid"] = $itemtypeid;
      			$node = vw_Hard_Core::model('Node')->one($itemtypeid);
      			$permlist[$node['accesskey']] = array('cancreate');
      
      			foreach ($itemlist AS $item)
      			{
      				if (!empty($item['typelist']))
      				{
      					foreach ($item['typelist'] AS $typeid)
      					{
      						$itemtypes["$typeid"] = $typeid;
      						$node = vw_Hard_Core::model('Node')->one($item['itemtypeid']);
      						$permlist[$node['accesskey']] = array('cancreate');
      					}
      				}
      
      				$areaid = $item['areaid'];
      			}
      		}
      Replace with:
      Code:
      		$pagetype = vw_Hard_Core::model('Node')->one('Page');
      
      		foreach ($this->items AS $itemtypeid => $itemlist)
      		{
      			foreach ($itemlist AS $item)
      			{
      				if (!empty($item['typelist']))
      				{
      					$isPage = true;
      
      					foreach ($item['typelist'] AS $typeid)
      					{
      						if ($typeid == $pagetype['id'])
      						{
      							continue;
      						}
      
      						$itemtypes["$typeid"] = $typeid;
      						$node = vw_Hard_Core::model('Node')->one($typeid);
      
      						if ($node['isContent'])
      						{
      							$permlist[$node['accesskey']] = array('cancreate');
      						}
      
      						if ($node['isPage'])
      						{
      							$isPage = false;
      						}
      					}
      
      					if ($isPage)
      					{
      						$itemtypes[$pagetype['id']] = $pagetype['id'];
      						$permlist[$pagetype['accesskey']] = array('cancreate');
      					}
      				}
      
      				$areaid = $item['areaid'];
      			}
      
      			if ($itemtypeid != $pagetype['id'] OR empty($permlist))
      			{
      				$itemtypes["$itemtypeid"] = $itemtypeid;
      				$node = vw_Hard_Core::model('Node')->one($itemtypeid);
      				$permlist[$node['accesskey']] = array('cancreate');
      			}
      		}
      This will show the correct target areas when "Normal Pages" are not allowed by the area but the page you are trying to move does not qualify as a normal page.
      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:32 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.