Page 1 of 1

Realtime reports editing... Resolved!

PostPosted: Tue Dec 18, 2012 7:59 am
by Lozza
Hi all,

I guess I'm a noob to vicidial & php & mysql but learning at a fast rate. I was wandering if anyone could give me a hand editing the real main reports page.

At the moment when an agent has been waiting for a call for more that 1 minute, it turns dark blue. Could somebody nudge me in the right direction about how to change this to if an agent has been waiting for more than 2 minutes, it turns dark blue instead of one minute.

Thank you for reading,

Im using Vicibox redux v.4.0.1

Re: Realtime reports editing...

PostPosted: Tue Dec 18, 2012 9:03 am
by DomeDan
Welcome Lozza!

The Real-Time Main Report get's its data with AJAX from AST_timeonVDADall.php and maybe some other scripts I think.

I took a quick look in AST_timeonVDADall.php (build 120612-2150) and it seams like you only need to change 60 to 120 here:
Code: Select all
if ($call_time_S >= 60) {$G='<SPAN class="blue"><B>'; $EG='</B></SPAN>';}


and then you might want to change the info printed:
Code: Select all
$Aecho .= "  <SPAN class=\"blue\"><B>          </SPAN> - Agent waiting for call > 1 minute</B>\n";


Good luck!

Re: Realtime reports editing...

PostPosted: Tue Dec 18, 2012 9:23 am
by Lozza
Thank You Very Much DomeDan!

That has worked perfectly.

And you have saved me a lot of time!