Script URL: internal site
Version of script: 2.4.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: last replier
Write your message below:
I would like to change the "Last Replier" name shown by show_tickets.php to take the name/email address from the email headers and not the name already saved in the database. This is to avoid confusions when multiple users are updating the same ticket.
Can you please let me know how to do this?
Change last replier name based on sender
Moderator: mkoch227
Re: Change last replier name based on sender
This makes sense.
In file "inc/pipe_functions.inc.php" try changing to
In file "inc/pipe_functions.inc.php" try changing
Code: Select all
$ticket['lastreplier'] = $ticket['name'];
Code: Select all
$ticket['lastreplier'] = ($tmpvar['name'] == $hesklang['pde']) ? $tmpvar['email'] : $tmpvar['name'];
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Change last replier name based on sender
Hi Klemen,
I made the change as you suggested but that didn't work. System is still taking the name from the database. I am using version 2.4.2. Does that make a difference?
I made the change as you suggested but that didn't work. System is still taking the name from the database. I am using version 2.4.2. Does that make a difference?
Re: Change last replier name based on sender
Try also changing to
Code: Select all
hesk_dbEscape($ticket['name'])
Code: Select all
hesk_dbEscape($ticket['lastreplier'])
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Change last replier name based on sender
Hi Klemen,
Thanks that changed the last replier name in ticket view. However, the ticket list is still showing $ticket['name']. Any way to change it to last replier. I tried editing ticket_list.inc.php but that didn't help. Can you please help me?
Thanks in advance
Thanks that changed the last replier name in ticket view. However, the ticket list is still showing $ticket['name']. Any way to change it to last replier. I tried editing ticket_list.inc.php but that didn't help. Can you please help me?
Thanks in advance
Re: Change last replier name based on sender
I'm afraid that would require a bit more modifying the structure of files and variables.
Perhaps the alternative would be to just show "Customer" instead of the name in ticket list by changing to in ticket_list.inc.php
Perhaps the alternative would be to just show "Customer" instead of the name in ticket list by changing
Code: Select all
$ticket['repliername'] = $ticket['name'];
Code: Select all
$ticket['repliername'] = 'Customer';
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools