last replier from the operators

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
alienati
Posts: 5
Joined: Thu Mar 30, 2006 1:40 pm

last replier from the operators

Post by alienati »

Hello elverybody!
I have an idea for give a function for this application:

the last replier diplay "staff" of "customer"

I Think is very intresting to diplay with operator has replied the ticket from the table of operators

has someone an idea to do it?

Best regards

Sergio :shock:
dbethea
Posts: 10
Joined: Tue Sep 23, 2008 7:59 am

Last Replier

Post by dbethea »

Well I am pretty sure someone has already figured this out by now. But because I did not see a solution to this issue, I came up with a quick remedy to it. It is just a couple of lines of code that will help keep track of who is doing what. :D

Alright within the "print_tickets.inc.php" file look for the following lines of code:

if ($ticket['lastreplier']=='1') {$ticket['lastreplier']=$hesklang['staff'];}
else {$ticket['lastreplier']=$hesklang['customer'];}

**********************************************

REPLACE WITH...

if ($ticket['lastreplier']=='1') {

$id = $ticket['id'];
$sqlid = "SELECT `name` FROM `hesk_replies` WHERE `replyto`=$id ORDER BY `dt` DESC";
$data = mysql_query($sqlid);
$reply = mysql_fetch_array($data);

$ticket['lastreplier']=$reply["name"];}
else {$ticket['lastreplier']=$hesklang['customer'];}

***********************************************

This should do it. I have tested it out numerous times. So have fun!

Oh, BTW. Mad kudos to the guys that developed this script. My company is loving this script as a temporary solution until our commercial product comes down the pike. And as of right now, that does not look like it is coming any time soon... So my hat is off to the gentlmen that devloped this code.... Bravo!
Post Reply