Author Topic: Different theme for different domains?  (Read 4944 times)

Offline samgreco

  • Newbie
  • *
  • Posts: 5
Different theme for different domains?
« on: January 10, 2008, 08:54:41 PM »
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

Offline hamiltonjm

  • Newbie
  • *
  • Posts: 1
Re: Different theme for different domains?
« Reply #1 on: February 20, 2008, 11:31:39 AM »
You need to install a DB and roundcube in the home www directory of each domain.

Offline stefanb

  • Newbie
  • *
  • Posts: 3
Re: Different theme for different domains?
« Reply #2 on: March 13, 2008, 10:12:00 AM »
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:

Code: [Select]
$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

Offline samgreco

  • Newbie
  • *
  • Posts: 5
Re: Different theme for different domains?
« Reply #3 on: March 19, 2008, 03:42:53 PM »
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!