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"];
}
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.
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
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.