2
Create a theme.html file with the following code:
<{php}>
$siteurl = $_SERVER['HTTP_HOST'];
$siteurl = str_replace("www.","",$siteurl);
$siteurl = str_replace(".com","",$siteurl);
$siteurl = str_replace(".net","",$siteurl);
$siteurl = str_replace(".org","",$siteurl);
if ($siteurl == 'site1') {
$theme='theme1';
} else {
$theme='theme2';
}
$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"}>
Put this file in a folder caleed multi-theme in the themes folder, and set this "multi-theme" as the default theme for the site.
Cheers.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting