As for the sitemap problem, see if this helps. In
vault/special_class_friendlyurl.php, find:
Code:
return $urlinfo['url'] . ($query ? $amp . $query : '');
Replace with:
Code:
$url = $urlinfo['url'];
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);
}
}
return $url . ($query ? $amp . $query : '');
It's not a perfect fix, but I think it should catch most configurations. It's not really possible to fix completely because vBulletin didn't give us enough hook locations to work with.