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

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

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

Post 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
Last edited by Raven on Sat Oct 17, 2009 7:03 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post 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>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post 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 :)
Petert
Posts: 26
Joined: Sun Jan 10, 2010 10:10 pm

Post 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 :)
morsedesign
Posts: 15
Joined: Thu Jan 07, 2010 8:50 pm

Post by morsedesign »

Has this mod changed in V2.2?
Shawn Morse | Morse Associates, LLC
Lead Designer/Programmer
Post Reply