Page 1 of 1

Subject variables

Posted: Tue Aug 11, 2015 8:31 pm
by smegnl
Script URL: support.highlandschools.org/hesk26
Version of script: 2.6
Hosting company: self
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
text.php, email variable, subject variables.
Write your message below:
Trying to use %%ID%% and %%NAME%% in the subject that is sent to customers and staff.

Editing text.php

// EMAIL SUBJECTS
$hesklang['new_ticket_staff'] = '%%SUBJECT%% [%%NAME%%]';
$hesklang['ticket_received'] = 'Ticket [%%ID%%] received: %%SUBJECT%%';
$hesklang['ticket_assigned_to_you'] = 'Ticket %%ID%% assigned: %%SUBJECT%%';

The %%SUBJECT%% works fine. The ID and NAME just print out instead of the value. I tried it witha nd without brackets.

Thanks in Advance.

Re: Subject variables

Posted: Tue Aug 11, 2015 8:50 pm
by Klemen
Tags currently supported in HESK subjects are here:
http://www.hesk.com/knowledgebase/index.php?article=66

Other tags will not work without modifying the source code.

Re: Subject variables

Posted: Tue Aug 11, 2015 9:02 pm
by smegnl
I was using this ...

http://www.hesk.com/knowledgebase/?article=35

it shows
SPECIAL TAG WILL BE REPLACED WITH
%%NAME%% customer name
%%ID%% sequential ticket ID

is that just an outdated article? That is the link that came up when using the hesk26/docs/step-by-step-guide.html . May want to change your doc then.

Re: Subject variables

Posted: Wed Aug 12, 2015 8:31 am
by Klemen
That article is about email content (email templates inside "language/en/email").

Email subjects (inside "language/en/text.php") are in the article I linked to.

P.s.: read the very first note in the article :wink:

Re: Subject variables

Posted: Wed Aug 12, 2015 10:23 pm
by smegnl
come on, that note is huge bright yellow, how was I supposed to notice that? :oops:

Re: Subject variables

Posted: Thu Aug 13, 2015 11:04 am
by Klemen
:lol: