Koozali.org: home of the SME Server

Setting the default color scheme in Horde

spook

Setting the default color scheme in Horde
« on: March 07, 2006, 09:25:25 PM »
There are different color schemes for horde, but how do I specify which one to use as default, instead of the blue-ish theme?

Offline jfarschman

  • *
  • 406
  • +0/-0
Setting the default color scheme in Horde
« Reply #1 on: March 08, 2006, 04:02:58 PM »
Spook,

  I sort of like the blue-ish theme, but you can change thing  Take a look at
/home/httpd/html/horde/config/pref.php  and you will see a section where you can set the theme.

// UI theme
$_prefs['theme'] = array(
    'value' => 'bluewhite',
    'locked' => false,
    'shared' => true,
    'type' => 'select',
    'desc' => _("Select your color scheme.")
);

Select a theme from the themes directory and set it as the value.  The preloaded themes are here:

/home/httpd/html/horde/

Of course, you will need to make this permanent by creating the appropriate custom-templates.  Let me know if you need a hand with that.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

spook

Setting the default color scheme in Horde
« Reply #2 on: March 08, 2006, 04:04:54 PM »
I need a hand with that.

 :-D

Seriously, I'm a windows sysadmin, logic and conf-files is just not my thing...

Offline jfarschman

  • *
  • 406
  • +0/-0
Setting the default color scheme in Horde
« Reply #3 on: March 08, 2006, 04:52:36 PM »
Okay,

All linux installations contain a set of scripts and config files that control the behavior of the server.  SME has these, but they are rebuilt from templates when you make configuration changes through the GUI.  So... if you simply change the file I recommended above it will work, but in the future you may either load an update, or make a configuration change to email and find that you changes are overwritten with the templates regenerate the config file.

So... only change config files if there is no template for them.  You can find the templates here:  /etc/e-smith/templates ... inside that directory is a tree that cooresponds to the real config/script file tree... it just starts in /etc/e-smith/templates.

There is a second tree in /etc/e-smith/templates-custom.  If you want to make changes to a template you should do it in templates-custom.  In you instance the templates are locate in:

/etc/e-smith/templates/home/httpd/html/horde

You will want to make a directory in templates-custom and place the horde directory inside it:

mkdir -p /etc/e-smith/templates-custom/home/httpd/html/
cp -Ra /etc/e-smith/templates/home/httpd/html/horde \
/etc/e-smith/templates-custom/home/httpd/html/

Then... edit the prefs.php file that I mentioned above.  One thing you will notice right away is that there is a directory for each config/script file filled with snippets of code. When an action is called, these snippets are assembled into the actual file.   Does that make sense.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline calisun

  • *
  • 620
  • +0/-1
Setting the default color scheme in Horde
« Reply #4 on: March 08, 2006, 08:05:27 PM »
But the next time you make a configuration change and config gets rebuild from templates, all the users will get the same color scheme.
What if Tim has set his color scheme to be camouflage and Mary has a hot pink scheme, etc.., and all over sudden they all become my favorite green. They will all complain and and cry :cry: all day long.
Is there any way to save each persons favorites or keep config from getting rebuild?
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline jfarschman

  • *
  • 406
  • +0/-0
Setting the default color scheme in Horde
« Reply #5 on: March 09, 2006, 03:52:10 PM »
Calisun,

  Unless I have a user with a disability that needs a different look and feel I'm going to make sure everyone is using the same theme.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

spook

Setting the default color scheme in Horde
« Reply #6 on: March 09, 2006, 07:21:11 PM »
Quote from: "jfarschman"


Then... edit the prefs.php file that I mentioned above.  One thing you will notice right away is that there is a directory for each config/script file filled with snippets of code. When an action is called, these snippets are assembled into the actual file.   Does that make sense.


No, not quite... do I copy the prefs.php to this folder and edit it, or what exactly do I do?

Offline jfarschman

  • *
  • 406
  • +0/-0
Setting the default color scheme in Horde
« Reply #7 on: March 09, 2006, 08:25:23 PM »
Spook,

  First, be careful.  It's pretty obvious that you are working on something that you don't really understand very well.  With that said, everyone has to learn at some time.  My feeling is that you should go ahead with this, but if you have a spare machine I'd build it in to a SME and play around with it.

  Okay... enuf said.  Now

cd /etc/e-smith/templates/home/httpd/html/horde/pref.php
ls

I'm guessing you'll see the snippets.  But the questions is which snippet has you data?  Which snippet do you need to change? You can find it like this

grep bluewhite *

That should show you the file.  The edit it.  Good.  Now... it's still not live.  You need to do an:

signal-event email-update

I think that's correct.  Good luck.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline calisun

  • *
  • 620
  • +0/-1
Setting the default color scheme in Horde
« Reply #8 on: March 10, 2006, 02:14:37 AM »
--------------------------------------------------------------------------
jfarschman wrote:

Unless I have a user with a disability that needs a different look and feel I'm going to make sure everyone is using the same theme.
--------------------------------------------------------------------------

I don't see anything wrong with people customizing their system the way they feel like. This is same thing like not allowing someone to have a flower on their desk or pictures of their family and telling people that everybodys office has to look the same. The reason you are able to change colors in Horde is because we are not all the same, different people like different things. Changing colors is not the only issue, I like to have all menus on the left expanded and for it to start on tasks. But after every change, all menus are collapsed and it starts on email. It is small stuff, but still frustarting.

In other Linux distributions there is no problem with config rebuilding. So as far I can see it, it is not employee/ user problem, it is SME Server problem.
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline jfarschman

  • *
  • 406
  • +0/-0
Setting the default color scheme in Horde
« Reply #9 on: March 10, 2006, 04:27:04 AM »
Calisun,

  There are plenty of other distros out there, but this one is IMO the best.  So if individual user customization is really important you can raise it as a future development issue.  

  My sense is that won't get that much attention unless you develop it yourself and with other like minded people.  Personally, I just want something stable, flexible and predictable.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Setting the default color scheme in Horde
« Reply #10 on: March 10, 2006, 08:38:39 AM »
Quote from: "calisun"

In other Linux distributions there is no problem with config rebuilding. So as far I can see it, it is not employee/ user problem, it is SME Server problem.

All configuration files are generated from templates in the SME Server. The horde ones need to be done this way to ensure things like the current domain name and MySQL/horde password are correct - these things are usually done by the sysadmin manually on other systems. Please refer to the developer's guide on the Development page for an explanation.

I see that you have raised a bug report - thanks.

One workaround is to copy the file you like as a custom template and it will never get changed again. It also won't get updated as we change the base, but that's a choice you need to make.
............

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Setting the default color scheme in Horde
« Reply #11 on: March 17, 2006, 12:32:17 PM »
hi

Are you guys talking about the front login theme or once you have loged into webmail ... because once you have loged in you can customize the theme without templates ... it's part of the options of horde.

Once loged in click on horde icon on left ... then on the right hand side you have options click on that ... then choose display options and customize to your hearts content.

Each person can have a diff color scheme no probs.

Regards,

Tib