Orpheus Wiki

Customising Web Mail

Home | Recent Changes | Random Page

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.

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

global $color;
  1. $color0 = 'f0f3fa'; // (light gray) TitleBar
  2. $color1 = '800000'; // (red)
  3. $color2 = 'cc0000'; // (light red) Warning/Error Messages
  4. $color3 = 'f0f3fa'; // (green-blue) Left Bar Background
  5. $color4 = 'ffffff'; // (white) Normal Background
  6. $color5 = 'f0f3fa'; // (light yellow) Table Headers
  7. $color6 = '000000'; // (black) Text on left bar
  8. $color7 = '000088'; // (blue) Links
  9. $color8 = '000000'; // (black) Normal text
  10. $color9 = 'ffaa22'; // (mid-gray) Darker version of 0
  11. $color10 = 'cc9900'; // (dark gray) Darker version of 9
  12. $color11 = 'ff7500'; // (dark red) Special Folders color
  13. $color12 = 'ffffff'; // (light gray) Alternate color for message list
  14. $color13 = '003388'; // (dark red) Color for quoted text -- > 1 quote
  15. $color14 = 'ffaa00'; // (red) Color for quoted text -- >> 2 or more
  16. $color15 = 'dd5500'; // (dark blue) Unselectable folders
  17. $color16 = 'ff9933'; // (orange) Highlight color
?>