Forcing a specific theme for webaccess users

From Zarafa wiki

(Difference between revisions)
Jump to: navigation, search
(Created page)
m
 
Line 1: Line 1:
-
== Forcing a specific theme for webaccess users ==
 
<BR>
<BR>
<font color=red>'''This article is a community contribution and may include unsupported configurations.''' </font>
<font color=red>'''This article is a community contribution and may include unsupported configurations.''' </font>

Latest revision as of 08:09, 2 February 2009


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