Page 1 of 1

[RESOLVED] Add parts to the printed ticket status

Posted: Mon Nov 09, 2009 12:34 am
by m4dbra1n
/*************************************
Title:
Version:
Author:
Demo:
Download:
Website:

Short description:
Add some other parts to the printed ticket status

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

Hi, I'm using Hesk but I need to modify the printed part, to change the layout and to add some other text.

How can i change the layout with some graphics and what file have I to edit to add other text? Is it the print.php?

Thanks in advance ;)

Posted: Mon Nov 09, 2009 12:49 am
by Raven
Yup, everything you need is in print.php and \language\en\text.php :)

Remeber you can add your own entries to the language file if needed by using

Code: Select all

$hesklang['name_here']='text to show here';
So for example you could have

Code: Select all

$hesklang['printable_version']='This is a lovely printable version of your ticket';
To use the above example within print.php you could use

Code: Select all

$hesklang[printable_version]
Hope this helps :)

**EDIT**
As for adding your own graphics well just use standard html like so:

Code: Select all

<div align="center">
<img src="../img/logo.png" border="0" />
</div>
**ANOTHER EDIT**
P.S.
The title of your post suggests this is a MOD but it's not.... Might be an idea to edit it to reflect that it's a question so as not to confuse other users :P

Posted: Tue Nov 10, 2009 12:19 am
by m4dbra1n
Raven wrote:Yup, everything you need is in print.php and \language\en\text.php :)

Remeber you can add your own entries to the language file if needed by using

Code: Select all

$hesklang['name_here']='text to show here';
So for example you could have

Code: Select all

$hesklang['printable_version']='This is a lovely printable version of your ticket';
To use the above example within print.php you could use

Code: Select all

$hesklang[printable_version]
Hope this helps :)

**EDIT**
As for adding your own graphics well just use standard html like so:

Code: Select all

<div align="center">
<img src="../img/logo.png" border="0" />
</div>
**ANOTHER EDIT**
P.S.
The title of your post suggests this is a MOD but it's not.... Might be an idea to edit it to reflect that it's a question so as not to confuse other users :P
I have Hesk in ita, thanks to a user on this forum, so I guess I have to refer to the it text.php: am I right?

So, in the end, I have to edit print.php anyway but refer to \language\it\text.php

Right? :)

Posted: Tue Nov 10, 2009 12:08 pm
by Raven
Right ;)