Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: gbaird on April 30, 2004, 05:29:13 PM
-
A couple of tips to change horde background color
and the webmail title
You can change the background color very easy
I use midnight commander
look for the file html.php
/home/httpd/html/horde/config/html.php
press F4 to edit
on line 11 you will see the background color #222244
this is the color you will want to change
no need to expand any templates just hit F2 to save
and F10 to exit the edit screen
example = http://www.eelriver.com/webmail
that color is #8199DA
Tired of the "webmail" on your horde/imp login screen
how about Welcome to My Webmail or My Network Webmail
You start by using midnight commander again
locate the file 210AppRegistryImp
/etc/e-smith/templates/home/httpd/html/horde/config/registry.php/210AppRegistryImp
edit line 6 between the " " to show whatever you want
press F2 to save and F10 to exit
Next step to expand the template - so it updates
exit midnight commander by pressing F10
you must run the next command
/sbin/e-smith/expand-template /home/httpd/html/horde/config/registry.php
that is it you will now will see your new wording in the webmail login screen
you may to refresh your browser if webmail was already open
enjoy !
-
Very good. Thanks for sharing!
Maybe this could be wrote up for the documentation guys?
-
Hello,
Good topic. It is line 11 of the unmodified html.php config file that sets the background color the key is
$css['body']['background-color'] = '<hex color code>'
Actually with a little reading and experimentation you can work out most of the settings. To really work on customizing the webmail login you need to work with the file login.inc in the imp/templates/login/ folder. Always keep a backup of the original though. Then you can come up with login pages like this.
(http://web.acsalaska.net/~d.musty/ScreenShot005.gif)
I cannot guarentee this image will remain indefinately
--
Doug M.
"Rigger"
-
Nice one :lol:
-
By adding this line to your html.php config file you can use a background image instead of just a solid plain color. It can be added anywhere with the other $css['body'] options. The background graphic will go in your imp/graphics/ folder.
$css['body']['background-image'] = 'url(' . $registry->getParam('graphics', 'horde') . '/<your image>)';
(http://web.acsalaska.net/~d.musty/screentwo.gif)
--
Doug M.
"Rigger"
-
Thanks for sharing the info and writing the howtos.
I came across this site where you can change the entire theme and give your web-mail users a really cool, customised interface at http://www.horde.org/themes/
Some of the more experienced and skilful users in this forum might want to consider writing a scipt or howto for SME 6.0. It'll definitely add value to this already fantastic distro!
Regards,
Jerry
-
The horde themes page is a great place to start if you want to start figuring out how to customize your webmail pages.
More tips; (Note: all files assume you are in the /home/httpd/html/horde/ diretory to start.)
Tip One
You can easily place a custom header on your webmail by editing the imp/templates/common_header.inc. Simply place your code after the last line in the file. Remember this is part of the body of the page so DO NOTinclude any statement that will close out the page, no </body> and no </html> comments. This will display the header at the top of every page.
Horde pages do not cache. They are reloaded every time. So if you are using graphics you may not want to have the header display on every page since it could have the dramatic effect of slowing down the page loading. Especially if you are on a dialup connection. So then what?
Tip Two
You can have the header only appear on the login page and this is actually fairly easy, but does require modifying the file imp/login.php.
1)
Load the imp/login.php file with a text editor. Look for the line near the bottom of the file that reads -
include IMP_TEMPLATES . '/common-header.inc';
Change it to -
include IMP_TEMPLATES . '/login-common-header.inc';
2)
Copy the file imp/templates/common-header.inc to imp/templates/login-common-header.inc.
You can now edit and customize the new imp/templates/login-common-header.inc
Same rules apply, no </body> and no </html> comments.
--
Doug M.
"Rigger"