Change this section of code in includes/init_includes/overrides/init_templates.php
to thisCode:/*** Check if user has requested specific version of the site*/ if ($_GET['fullsiteoverride'] == 1) { $value = 'fullsiteoverride'; setcookie("mobileCookie", $value); setcookie("mobileCookie", $value, time()+1800); /* expire in 1/2 hour */ $iwnatfullsite = 1; } if ($_GET['fullsiteoverride'] == 0) { $value = 'fullsiteoverride'; setcookie("mobileCookie", $value); setcookie("mobileCookie", $value, time()-1800); /* expire in 1/2 hour */ $iwnatfullsite = 0; } if(isset($_COOKIE['mobileCookie'])) {$iwnatfullsite = 1; } /*** Check if there is a specific template for this mobile platform and use it*/ if ($mobile_browser >= 1){ if($iwnatfullsite == 1) { $template_dir; } else { $template_dir = $template_dir.'_mobile'; } } /*** EOF : SPECIFIC TEMPLATE FOR MOBILE CLIENT**/
Code:/* Override to mobile version of site if requested */ if(($mobile_browser >= 1 && !isset($_COOKIE['siteversion'])) || isset($_COOKIE['siteversion']) && $_COOKIE['siteversion'] == 'mobile') $template_dir = $template_dir . '_mobile'; /*** EOF : SPECIFIC TEMPLATE FOR MOBILE CLIENT**/


Reply With Quote


