1
I am getting tired of IE6 hacks to make current theme backward compatible and would like to isolate IE6 users to an old theme.
I am looking for a XOOPS core PHP hack that will automatically redirect users to an IE6 theme if that is the browser detected. Where is the theme loaded in XOOPS? Is there an easy way to do this?
I tried sticking this in common.php but nothing happened... any ideas?
// IE6 string from user_agent
$ie6 = "MSIE 6.0"; // detect browser
$browser = $_SERVER['HTTP_USER_AGENT']; // yank the version from the string
$browser = substr("$browser", 25, 8); // if IE6 set the $alert
if($browser == $ie6){ define("XOOPS_THEME_URL", XOOPS_URL . "/ie6themes"); }