[imp] Customizing IMP Interface

eltonic40 eltonic40 at ecotech.com.lr
Tue May 6 19:15:26 PDT 2003


Ok making some progress here.

Here is a copy of the customization.

Anyone caring to try it please tell me how good it looks.

Next, I want to customize the login so that it auto-supplies the domain
part of the login name depending on the domain the web page is accessed
from.

Any hints?

eltonic40


-----Original Message-----
From: imp-bounces at lists.horde.org [mailto:imp-bounces at lists.horde.org]
On Behalf Of eltonic40
Sent: Tuesday, May 06, 2003 6:09 PM
To: IMP
Subject: RE: [imp] Customizing IMP Interface


Thanks Crispin for the hint. I got that part all figured out last night
and now I am customizing it to display the quota usage in percentage
usage in a little bar - yahoo/hotmail style. Hints are welcomed...

Any hint on customizing the login so that given the domain, the login
page supplies the appropriate domain part of the user name?

eltonic40


-----Original Message-----
From: Crispin Olson [mailto:colson at rdemail.com] 
Sent: Monday, May 05, 2003 9:00 PM
To: eltonic40; IMP
Subject: Re: [imp] Customizing IMP Interface

Look at the file in imp/config/conf.php Scroll down the 'vinfo' hooks
part. Its pretty well commented, with some sample code.

Crispin

----- Original Message -----
From: "eltonic40" <eltonic40 at ecotech.com.lr>
To: "IMP" <imp at lists.horde.org>
Sent: Monday, May 05, 2003 3:08 PM
Subject: [imp] Customizing IMP Interface


> I thought someone had dealt with customizing imp interface. I have
been
> checking the archives and still haven't come up with anything
> comprehensive.
>
> Any hint would be welcomed? Here is what I want to do. Given the
domain
> the user comes accesses (webmail.somedomain.com), I want imp to supply
> the rest of the email address so that the user only gets to supply his
> login name.
>
> Next I would also like to put on the user quota.
>
> And do a remake of the login page and later the inside. But one step @
a
> time. Taking the bottom up...
>
> Any help welcomed..
>
> eltonic40
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.476 / Virus Database: 273 - Release Date: 4/24/2003
>
>
>
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 4/24/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 4/24/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 4/24/2003
 



-- 
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe at lists.horde.org

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 4/24/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 4/24/2003
 
  
-------------- next part --------------
         if (is_array($quota) && $quota['limit'] != 0) {
             $taken   = $quota['usage'] / 1024.0;
             $total   = $quota['limit'] / 1024.0;      
             $percent = $taken * 100 / $total;
             $perBal  = ($total-$taken)*100/$total;
             if ($percent >= 90) {
                 $class = 'quotaalert';
                 $color='FF3333';
             } elseif ($percent >= 75) {
                 $class = 'quotawarn';
                 $color='FFE349';
             } else {
                 $class = 'control';
                 $color='009900';
             }

             $quota_html = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>'
                           . '<td width=33%></td><td width=33%></td>'
                           . '<td  width=33%  align=center valign=top><font color=white face=verdana>'
                           . 'You are using <b>' . sprintf("%.2f%%", $percent) . '</b> of your <b>' . sprintf("%.2fMB",$total) . '</
                           . '</font>'
                           . '<table cellpadding=1 cellspacing=0 width="100%" border=0 bgcolor=black>'
                           . '<tr><td>'
                           . '<table cellpadding=0 cellspacing=0 border=0 width="100%">'
                           . '<tr>'
                           . '<td bgcolor='.$color.' width='. sprintf("%.2f%%", $percent) . ' height=10 style="border:0">&nbsp;</td>
                           . '<td bgcolor=white width="' . sprintf("%.2f%%", $perBal) .  '" height=10 style="border:0">&nbsp;</td>'
                           . '</tr></table></td></tr></table>'
                           . '</td></tr></table>';
         }
         return $quota_html;


More information about the imp mailing list