Customising WebMail
On Orac....
Config files in /etc/squirrelmail/
Everything else, including themes in /usr/share/squirrelmail
User-Agent: string is set in /usr/share/squirrelmail/class/deliver/Deliver.class.php
Load file and search for "SquirrelMail" - replace with Orpheus etc.
Customising SquirrelMail
1. Copy Orpheus logo from /www/vhosts/zzzz-TEMPLATE/logo.png to /usr/share/squirrelmail/images/sm_logo.png
2. Edit /usr/share/squirrelmail/config/config.php to set the size of the logo image. Width=272 height=111
3. Edit /usr/share/squirrelmail/src/login.php and add relevant instructions.
- Move to bottom of file and add after the echo '</form' line;
echo '<p>Name is in the form ab15 or pzv15 etc.<br>';
echo 'For more help please read our detailed <a href="http://www.orpheusinternet.co.uk/support/webmail/">WebMail instructions</a>.';
4. Edit /usr/share/squirrelmail/src/login.php to amend SquirrelMail version ID and remove by the ...team.
5. Add mini_logo.gof to left side bar in actual webmail;
Edit /usr/share/squirrelmail/src/left_main.php and add
'<img src="../images/mini_logo.gif" alt="Orpheus WebMail" width=130 height=56 vspace=8>' .
just before 'Folders' line.
To add Orpheus theme
Edit /usr/share/squirrelmail/config/config.php and add the following lines after the various $theme definitions:
$theme35
= SM_PATH . 'themes/orpheus.php';
$theme35'NAME' = 'Orpheus';
Then make the default theme = 35 (line above start of themes)
Then copy the following data as /themes/orpheus.php
(N.B.Some characters aren't supported by this wiki, namely hash chars, so check source by editing page and looking)
<?php
- January 2, 2000
- Theme Name: 'Default Theme'
- This is the default theme that comes standard with SquirrelMail.
- Most of the colors were taken from mail.yahoo.com's theme on their
- site.
-
- To create a new theme, just copy this file, and edit the colors.
- Be sure to rename the file and keep the original, just in case.
-
- @author Luke Ehresman
- @copyright © 2000-2006 The SquirrelMail Project Team
- @license http://opensource.org/licenses/gpl-license.php GNU Public License
- @version $Id: default_theme.php,v 1.6.2.3 2006/07/16 18:10:56 kink Exp $
- @package squirrelmail
- @subpackage themes
global $color;
- $color0 = 'f0f3fa'; // (light gray) TitleBar
- $color1 = '800000'; // (red)
- $color2 = 'cc0000'; // (light red) Warning/Error Messages
- $color3 = 'f0f3fa'; // (green-blue) Left Bar Background
- $color4 = 'ffffff'; // (white) Normal Background
- $color5 = 'f0f3fa'; // (light yellow) Table Headers
- $color6 = '000000'; // (black) Text on left bar
- $color7 = '000088'; // (blue) Links
- $color8 = '000000'; // (black) Normal text
- $color9 = 'ffaa22'; // (mid-gray) Darker version of 0
- $color10 = 'cc9900'; // (dark gray) Darker version of 9
- $color11 = 'ff7500'; // (dark red) Special Folders color
- $color12 = 'ffffff'; // (light gray) Alternate color for message list
- $color13 = '003388'; // (dark red) Color for quoted text -- > 1 quote
- $color14 = 'ffaa00'; // (red) Color for quoted text -- >> 2 or more
- $color15 = 'dd5500'; // (dark blue) Unselectable folders
- $color16 = 'ff9933'; // (orange) Highlight color
?>