Quote:
Originally Posted by sung
So far the only issue I have run into is with forums that are links, they still seem to be using the "default" forum URL instead of the mobile one, i.e. they try to go to www.example.com instead of m.example.com despite being relative links 
|
I've managed to fix this issue (for me at least) by creating a new plugin to the header_redirect hook.
Code:
if ($vbulletin->options['ddds37_enable'] == 1)
$ddds37_default = "www.example.com/forum";
{
if(strstr($_SERVER['HTTP_HOST'], $vbulletin->options['ddds37_domain']) && strstr($url, $ddds37_default))
{
$url = str_replace($ddds37_default, $vbulletin->options['ddds37_domain'], $url);
}
}
NOTE: This assumes you're trying to redirect your "normal" forums at URI
www.example.com/forum to whatever you have set in the DDDS options. Change the $ddds37_default variable accordingly.