Subject variables

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
smegnl
Posts: 24
Joined: Wed Jun 20, 2012 8:40 pm

Subject variables

Post 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.
Klemen
Site Admin
Posts: 10167
Joined: Fri Feb 11, 2005 4:04 pm

Re: Subject variables

Post 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.
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
smegnl
Posts: 24
Joined: Wed Jun 20, 2012 8:40 pm

Re: Subject variables

Post 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.
Klemen
Site Admin
Posts: 10167
Joined: Fri Feb 11, 2005 4:04 pm

Re: Subject variables

Post 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:
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
smegnl
Posts: 24
Joined: Wed Jun 20, 2012 8:40 pm

Re: Subject variables

Post by smegnl »

come on, that note is huge bright yellow, how was I supposed to notice that? :oops:
Klemen
Site Admin
Posts: 10167
Joined: Fri Feb 11, 2005 4:04 pm

Re: Subject variables

Post by Klemen »

:lol:
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
Post Reply