Roundcube Community Forum

 

Different theme for different domains?

Started by samgreco, January 10, 2008, 08:54:41 PM

Previous topic - Next topic

samgreco

Anyone know of a way to have the theme change based on which domain the user logs in from?

I have one installation in my root domain with symbolic links from each add-on domain. Works a treat. But I would love to theme each differently.

Sam

hamiltonjm

You need to install a DB and roundcube in the home www directory of each domain.

stefanb

No, you don't need to install RoundCube so more times.
It's very simple to do that.
I found that on Michele Menciassi's site: http://michele.menciassi.name/ Thank you Michele.
You need to change main.inc.php
with this code:

$HOST = $_SERVER['HTTP_HOST'];
if ($HOST == 'webmail.mydomain.com'){
$rcmail_config['skin_path'] = "skins/$HOST/";
$rcmail_config['product_name'] = 'My Webmail';
}else{
$rcmail_config['skin_path'] = 'skins/webmail.anotherdomain.co/';
$rcmail_config['product_name'] = 'Another Webmail';
}

Stefan

samgreco

Thanks Stefan. I'll give this a try as soon as I have a moment.

Edit: - I just tried it and it works a treat. THANKS!