2
I've done this before using the Theme Changer module where you can put themes according to modules I think it is.
There's also this code which you can use, but I have never tried it this way before and I don't know if it works:
Quote:
<{php}>$mod = $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
function toggleDisplay(obj,display1,display2){
if ($dirname == 'newbb') {
$theme='ThemeB';
} else {
$theme='ThemeA';
}
$this->assign('themename', $theme.'/theme.html');
$this->assign('xoops_theme', $theme);
}
$this->assign('xoops_themecss', XOOPS_URL.'/themes/'.$theme.'/style.css');
$this->assign('xoops_imageurl', XOOPS_URL.'/themes/'.$theme.'/');<{/php}><{include file="$themename"}>