Forcing a specific theme for webaccess users

From Zarafa wiki

Revision as of 08:09, 2 February 2009 by Troyready (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


This article is a community contribution and may include unsupported configurations.

It is very easy to modify the default Zarafa webaccess configuration to have a particular webaccess theme (the included silver theme will be the example below) be the only option available to users.

In webaccess/config.php, change

       define("THEME_COLOR", "default");

to

       define("THEME_COLOR", "silver");

In webaccess/client/layout/dialogs/settings/tabs/preferences.php, change:

       $themes = array("default");
       $dir = "client/layout/themes";
       if (is_dir($dir)){
               $dh = opendir($dir);
               while(($entry = readdir($dh))!==false){
                       if (is_dir($dir."/".$entry) && is_file($dir."/".$entry.$
                               $themes[] = $entry;
                       }
               }
       }
       return $themes;


to

       $themes = array("silver");
       return $themes;

With that, users will only see the selected theme, and it will be the only option available in their webaccess settings.

Personal tools