2.3 MOD: Insert Ticket Submitter's Name into Ticket Reply
Posted: Fri Oct 07, 2011 5:18 am
In testing the system getting it ready for launch, I noticed that my test users had trouble distinguishing who they were really replying to. If they were going to assign the ticket to another user, they would address the reply to the other user, instead of the addressing the reply towards the customer who originally submitted the ticket. This could be potentially embarrassing.
To keep this from happening, I added code that automatically entered an introduction using the submitter's name into the message reply text box. I also added new line commands (\n\n) so the cursor is positioned exactly where the user would being typing their reply. Canned replies are inserted to the same potion as well, making it lightning fast for the user to reply.
Find this line (somewhere near #1018):
And replace it with this line:
Auto-inserting the submitter's name reminds the users of whom they are replying to, tremendously lowering the probability of mistakenly replying to another user. And it saves them time as well. 
[edited for clarity 10-7-2011 7:30am PST]
To keep this from happening, I added code that automatically entered an introduction using the submitter's name into the message reply text box. I also added new line commands (\n\n) so the cursor is positioned exactly where the user would being typing their reply. Canned replies are inserted to the same potion as well, making it lightning fast for the user to reply.
To accomplish this, in admin/admin_ticket.phpHello [ticket submitter name],
[canned response]
[signature]
Find this line (somewhere near #1018):
Code: Select all
<span id="HeskMsg"><textarea name="message" id="message" rows="12" cols="60"><?php if (isset($_SESSION['ticket_message'])) {echo stripslashes(hesk_input($_SESSION['ticket_message']));} ?></textarea></span></p>
Code: Select all
<span id="HeskMsg"><textarea name="message" id="message" rows="12" cols="60">Hello <?php echo $ticket['name']; ?>,<?php echo ("\n\n");?><?php if (isset($_SESSION['ticket_message'])) {echo stripslashes(hesk_input($_SESSION['ticket_message']));} ?></textarea></span></p>

[edited for clarity 10-7-2011 7:30am PST]