I thought I remembered a thread asking about this a year or two ago, but I couldn't find it tonight!
Would someone let me know if they think this was a bad idea? It seems like a safe change to me, but I'm always nervous about modifying code that I'm not supposed to have my fingers in! I just made some minor changes to these two files:
- C:\Program Files\Mail Enable\bin\NETWebMail\HooDoo\lang\en\Scripts\libusagebar.js
C:\Program Files\Mail Enable\bin\NETWebMail\HooDoo\Skins\HooDoo\me.css
Now it displays green from 0% to 70%, yellow from 70% to 90%, and red from 90% to 100%.
The procedure is pretty obvious once you look at the code. In case you're interested, here are the details:
In LIBUSAGEBAR.JS, I modified the function SetUsagePercentage like this:
Code: Select all
function SetUsagePercentage(Percentage)
{var oUsage=document.getElementById("divUsageBar");if(Percentage<0)
{oUsage.className='ME_UsageBarNormal';oUsage.style.width='100%';}
else
{if(Percentage>=100)
{oUsage.className='ME_UsageBarFull';oUsage.style.width='100%';}
else
{if(Percentage>=90)
{oUsage.className='ME_UsageBarCritical';oUsage.style.width=Percentage+'%';}
else
{if(Percentage>=70)
{oUsage.className='ME_UsageBarWarn';oUsage.style.width=Percentage+'%';}
else
{oUsage.className='ME_UsageBarNormal';oUsage.style.width=Percentage+'%';}}}}}
Code: Select all
.ME_UsageBarNormal
{
height: 13px;
text-align: right;
font-size: 10px;
background-image: url(green_bar.gif);
}
.ME_UsageBarWarn
{
height: 13px;
text-align: right;
font-size: 10px;
background-image: url(yellow_bar.gif);
}
.ME_UsageBarCritical
{
height: 13px;
text-align: right;
font-size: 10px;
background-image: url(red_bar.gif);
}
.ME_UsageBarFull
{
height: 13px;
font-size: 10px;
text-align: center;
background-color: Red;
}
green_bar.gif yellow_bar.gif red_bar.gif
You can grab mine from here if you'd like:
http://www.AcadiaSys.com/MailEnable/green_bar.gif
http://www.AcadiaSys.com/MailEnable/yellow_bar.gif
http://www.AcadiaSys.com/MailEnable/red_bar.gif
I just thought others would be interested to know that it's easy, and wanted to see if anybody has any warnings for me!
-Tom Rusnock
Acadia Systems, Inc.