Page 1 of 1

[RESOLVED] Make %%HESK_NAME%% work in admin_ticket.php

Posted: Tue Sep 29, 2009 8:22 pm
by Raven
/*************************************
Title: ?
Version: 2.0
Author:
Demo: N/A
Download: N/A
Website: localhost atm

Short description:

*************************************/

Hi, is there any way I can have, "Hi %%HESK_NAME%%," then two line breaks be automatically added to the TextField in admin_ticket.php like the automatic signature (defined within your user profile)?

The only way I can see to do this at the moment is to either manually type the customers name in or make a canned reply and add it everytime. Would be nice to have this already in the TextField so you just need to type/add the main solution/body text.

Thanks

Posted: Wed Sep 30, 2009 2:40 pm
by Klemen
I have something like this in my HESK, I just might add it as an option to the next version. For now you can open admin_ticket.php in a text editor and change

Code: Select all

<textarea name="message" id="message" rows="12" cols="60"></textarea>
to

Code: Select all

<textarea name="message" id="message" rows="12" cols="60"><?php echo "Hi $ticket[name],\n\n"; ?></textarea>

Posted: Wed Sep 30, 2009 4:03 pm
by Raven
Awesome, worked a treat :) Thank you so much for this and yup, your right this would be a cool little feature to include. I like the idea of each user being able to turn it on/off maybe from within their profile or something.

Thank you again :)

Posted: Mon Jan 25, 2010 3:56 pm
by Petert
Klemen wrote:I have something like this in my HESK, I just might add it as an option to the next version. For now you can open admin_ticket.php in a text editor and change

Code: Select all

<textarea name="message" id="message" rows="12" cols="60"></textarea>
to

Code: Select all

<textarea name="message" id="message" rows="12" cols="60"><?php echo "Hi $ticket[name],\n\n"; ?></textarea>
works great, maybe an idea to make this permanent for the next release? Using languagefiles ofcourse :)

Posted: Fri Jun 11, 2010 4:57 pm
by morsedesign
Has this mod changed in V2.2?