• 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
    • Custom Wiki Tab Only for Simple URLs?

    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: Custom Wiki Tab Only for Simple URLs?

    • Issue Tools
      • View Changes
    1. issueid=1370 April 4, 2010 10:55 PM
      pegasus pegasus is offline
      VaultWiki Team
      Custom Wiki Tab Only for Simple URLs?

      It seems that a custom wiki tab can only be defined if Simple Wiki URLs are enabled. This is disappointing.

      Fixed in the current ZIP. In vault/special_class_wiki.php, find:
      Code:
      		if (THIS_SCRIPT == 'showwiki' AND VAULT_FRIENDLY_ENTRY AND empty($_GET["$titlevar"]))
      		{
      			$this->misc['basedepth'] = true;
      			$this->page_from_url($_SERVER['REQUEST_URI']);
      		}
      Replace with:
      Code:
      		if (THIS_SCRIPT == 'showwiki' AND empty($_GET["$titlevar"]))
      		{
      			if (VAULT_FRIENDLY_ENTRY)
      			{
      				$this->misc['basedepth'] = true;
      				$this->page_from_url($_SERVER['REQUEST_URI']);
      			}
      			else if ($vbulletin->options['vault_hometab'])
      			{
      				$this->page_from_query($vbulletin->options['vault_hometab']);
      			}
      		}
      Find:
      Code:
      	function page_from_url($url, $recurse = false)
      Add before:
      Code:
      	function page_from_query($url)
      	{
      		$parsed = @parse_url($url);
      
      		if (!$parsed['query'])
      		{
      			return;
      		}
      
      		global $vbulletin;
      
      		$titlevar = $vbulletin->options['ces_titlevar'];
      		parse_str($parsed['query'], $query);
      
      		$_GET["$titlevar"] = $_REQUEST["$titlevar"] = $query["$titlevar"];
      	}
    Issue Details
    Issue Number 1370
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Special Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.0 RC 1
    Fixed Version 3.0.0 RC 1
    Milestone VaultWiki 3.0.0
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 5, 2010 7:44 AM
      vimto vimto is offline
      Regular Member
      This now allows me to link directly to a page, but I'm unable to edit that page once I've linked to it, I can only view the page, all other options come up with the 'page not found' error message.
      Reply Reply  
    2. June 26, 2010 12:31 AM
      sorwah sorwah is offline
      New Member
      Quote Originally Posted by vimto
      This now allows me to link directly to a page, but I'm unable to edit that page once I've linked to it, I can only view the page, all other options come up with the 'page not found' error message.
      I ditto this. I get a "Internal Server Error" in Mozilla Firefox. It's only if I click "Edit" on this Main Page. I can edit other pages it links to fine. Right now, if I want to edit it, I have to remove the specific url from VaultWiki:Server Settings, navigate to the page, edit it, then resubmit the specific url to VaultWiki:Server Settings
      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:11 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 © 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.