[RESOLVED] Add parts to the printed ticket status

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

[RESOLVED] Add parts to the printed ticket status

Post 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 ;)
Last edited by m4dbra1n on Tue Nov 10, 2009 6:12 pm, edited 2 times in total.
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post 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
m4dbra1n
Posts: 60
Joined: Sun Oct 04, 2009 10:33 am

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

Post by Raven »

Right ;)
Post Reply