vB Sitemap has Double URL Path
When using vBulletin 4's default Sitemap generator, wiki URLs appear similar to the following:
http://www.vaultwiki.org/http://www.vaultwiki.org/demo/
Unfortunately due to the lack of hooks in the sitemap class, it's impossible to fix this for every URL configuration (i.e. when the Wiki Base URL doesn't match the Forum URL) without performing the content-type rewrite. I would advise users with different Base URLs that are not descended from the Forum URL to use the vBSEO Sitemap and download the VaultWiki integration for that from this site.
Otherwise, more standard and non-friendly wiki URLs will be fixed in the next build. In
vault/class/friendlyurl.php, find:
Code:
return $url . ($query ? $amp . $query : '');
Add before:
Code:
if (
(
THIS_SCRIPT == 'cron' OR
(
VB_AREA == 'AdminCP' AND
strpos($_SERVER['PHP_SELF'], 'sitemap.php') !== false
)
) AND
$GLOBALS['runner'] AND
is_subclass_of($GLOBALS['runner'], 'vB_SiteMapRunner')
)
{
if (strpos($url, $this->registry->options['bburl']) !== false)
{
$url = str_replace($this->registry->options['bburl'] . '/', '', $url);
}
else
{
$thirdpos = strpos($url, '/', 9);
$url = substr($url, $thirdpos + 1);
}
}