View Single Post
  #2  
Old 30th April 2012, 17:03
aibara aibara is offline
Junior Member
 
Join Date: Apr 2012
Posts: 18
Thanks: 1
Thanked 4 Times in 2 Posts
Default

#ScreenShots





#CoolSTUFF
1. ADDING SPAM MONITORING TO MAIL CLIENT MENU
Follow the steps of tutorial made by Falko

One you've done, create spam_monitor.php file under /usr/local/ispconfig/interface/web/mail/ directory and paste the following code into your file :
NOTE : this file includes an iframe that loads the content of the mail stats, and also some style's you could change without any problem.
Code:
<style type="text/css">
::-webkit-scrollbar{
    width:0.8em;
    height:0.8em;
    background-color:#fff;
}
::-webkit-scrollbar:hover{
    background-color:#eee;
}
::-webkit-resizer{
    -webkit-border-radius:4px;
    background-color:#666;
}
::-webkit-scrollbar-thumb{
    min-height:0.8em;
    min-width:0.8em;
    -webkit-border-radius:4px;
    background-color: #ddd;
}
::-webkit-scrollbar-thumb:hover{
    background-color: #bbb;
}
::-webkit-scrollbar-thumb:active{
    background-color:#888;
}
</style>
<iframe src="http://www.yourdomain.com/cgi-bin/mailgraph.cgi" width="100%" style="height:450px;pading-top:25px;overflow-x:hidden; overflow-y:scroll; border:0;">Your browser isn't compatible with IFRAME</iframe>
Save the file.
Now open /usr/local/ispconfig/interface/web/mail/lib/module.conf
Search in the 4 o 5 line for $items = array();

And after that line add the following code :
Code:
$items[] = array( 'title' 	=> 'Monitor SPAM',
                  'target' 	=> 'content',
                  'link'	=> 'mail/spam_monitor.php',
                  'html_id' => 'SPAM MONITOR');

Last edited by aibara; 1st May 2012 at 01:50.
Reply With Quote