• 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
    • Can only add Pre-made chapters

    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 only add Pre-made chapters

    • Issue Tools
      • View Changes
    1. issueid=1882 August 3, 2010 2:32 AM
      Webbstre Webbstre is offline
      Junior Member
      Can only add Pre-made chapters
      Can't make new chapters directly

      I ran into an odd thing earlier. I was making a sample Book to show my users how to make their own. When I clicked "Add New Chapter" from within the Book's index and made the first page, and then clicked the Post Article button, it said that the Article was made but I didn't have the permissions to add it to the book. However, if I tracked down the chapter manually and told the book to add it as a pre-made URL, it was implemented just fine. I checked, but there don't appear to be any permissions regarding books and chapters.
    Issue Details
    Issue Number 1882
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Books / Chapters
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 3.0.2
    Fixed Version 3.0.3
    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 3, 2010 10:26 AM
      pegasus pegasus is offline
      VaultWiki Team
      Did you create the article as an admin or another user?
      Reply Reply  
    2. August 3, 2010 8:03 PM
      Webbstre Webbstre is offline
      Junior Member
      This was as the admin.
      Reply Reply  
    3. August 3, 2010 8:50 PM
      pegasus pegasus is offline
      VaultWiki Team
      This bug was reported for 3.0.1 originally, but I haven't been able to reproduce it since 3.0.2...
      Reply Reply  
    4. August 3, 2010 9:31 PM
      Webbstre Webbstre is offline
      Junior Member
      Right now you are set with the exact same permissions and user groups as me. Go ahead and try to duplicate it.

      I was working on this guide (step 10) for my users at the time I discovered the problem. Go ahead and try to add a chapter to this book and see if it happens to you.

      Just a side note, I know I mentioned this before, but having some kind of permission to limit where people can make new chapters when adding it via the "Add New Chapter" button would be very helpful. You can see from the guide how I have it set up, and any simplification would make it easier on them.
      Reply Reply  
    5. August 4, 2010 12:50 AM
      pegasus pegasus is offline
      VaultWiki Team
      I believe this only occurs when the newly created chapter is created in an Island-type forum, or at least the original selection from the Add New Chapter form was. In vault/functions/showwiki.php, find:
      Code:
      			$islandforum = fetch_foruminfo($vbulletin->GPC['forumid']);
      Add before:
      Code:
      			if ($vault->error & VAULT_NOID)
      			{
      				$vault->error -= VAULT_NOID;
      				unset($vault->misc['special']);
      			}
      Reply Reply  
    6. August 4, 2010 2:16 AM
      Webbstre Webbstre is offline
      Junior Member
      That actually broke it... When I try to make a new chapter it says "Fatal error: Call to a member function generate() on a non-object in /home/rgf2/runicgamesfansite.com/vault/plugins/showwiki.php on line 105"

      Here is what the code looks like right now:
      Code:
      		if ($_POST['forumid'] > 0)
      		{
      if ($vault->error & VAULT_NOID)
      {
      $vault->error -= VAULT_NOID;
      unset($vault->misc['special']);
      }
      			$islandforum = fetch_foruminfo($vbulletin->GPC['forumid']);
      
      			if ($islandforum['vault_type'] == 2)
      			{
      				$hook_namespace = ISLAND_SPACE;
      			}
      			else
      			{
      				$hook_namespace = $vault->field->fetch_namespaceid($vbulletin->GPC['forumid']);
      			}
      		}
      Reply Reply  
    7. August 4, 2010 11:57 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/plugins/showwiki.php, find:
      Code:
      		$threadinfo['namespaceid'] AND
      		!($vault->error & VAULT_NOID) AND
      		empty($_REQUEST[$vbulletin->options['ces_titlevar']])
      Add after:
      Code:
       AND
      		$_REQUEST['do'] != 'create' AND
      		strtoupper($_SERVER['REQUEST_METHOD']) == 'GET'
      Reply Reply  
    8. August 4, 2010 7:45 PM
      Webbstre Webbstre is offline
      Junior Member
      That fixed it! Everything works now, thanks!

      P.S. I'll have to wait to test the server load issue - right now we have high traffic and I can't risk causing problems :P
      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 12:01 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.