1
Thought this might come in handy to folks out there wanting to design different themes according to the browser/OS used.
Paste the following at the bottom of 'include/common.php', just before the closing bracket:
if (preg_match('/msie/i',$_SERVER['HTTP_USER_AGENT'])) {
$xoopsConfig['theme_set'] = 'explorertheme';
}
Explanation: if the user agent mentions MSIE (the user is accessing XOOPS with Internet Explorer), present the site with the theme defined in '/themes/explorertheme', otherwise use the theme set in XOOPS preferences.
Note: This brute force method overrides manual theme selection for anyone matching the test, so you might have to turn off user-selectable themes.
There may be other ways to implement browser-contextual themes, but a quick browse didn't produce any results. Did anyone else do it in a different way?