Page 2 of 2
Re: Configuring columns in the open ticket view
Posted: Wed Jun 26, 2013 4:43 pm
by bastiaan.c
IT WORKS !!!!
Thank you so much

Re: Configuring columns in the open ticket view
Posted: Thu Jun 27, 2013 6:31 am
by akwil
Klemen it works now like a charm!
You are our GOD now!
Bastian it works perfect but you need to paste it like this:
$ticket['owner'] = isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : '<i>'.$hesklang['unas'].'</i>';
echo <<<EOC
ABOVE meens up not down:P
Greetings,
Artur
Re: Configuring columns in the open ticket view
Posted: Thu Jun 27, 2013 12:14 pm
by bastiaan.c
Great Thanks for your help !!!

Re: Configuring columns in the open ticket view
Posted: Thu Jul 04, 2013 12:15 pm
by gurdain
Klemen wrote:A working solution has been posted a few replies up.
This should also work: in inc/ticket_list.inc.php find
Just ABOVE that code add
Code: Select all
$ticket['owner'] = isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : '<i>'.$hesklang['unas'].'</i>';
Then the $ticket[owner] variable should display the name instead of number.
Is this all that I would need to modify? Nothing seems to change.
I'm not sure how to modify what the previous solution above was...
Re: Configuring columns in the open ticket view
Posted: Thu Jul 04, 2013 12:28 pm
by akwil
Dear Gurdain,
Just go to inc/ticket_list.inc.php find
Change below
Add this:
This should also work: in inc/ticket_list.inc.php find
echo <<<EOC
Just ABOVE that code add
$ticket['owner'] = isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : '<i>'.$hesklang['unas'].'</i>';
Then the $ticket[owner] variable should display the name instead of number
After it you need to change this line (in this functionfunction hesk_print_list_head())
I wanted to have owner insted of Las replier so i change it to
<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible[owner] . '&sort='; ?>owner"><?php echo $hesklang[owner]; ?></a></th>
Save the script. Refresh the website and check if it also works for you...
Greetings,
Artur
Re: Configuring columns in the open ticket view
Posted: Mon Jul 08, 2013 10:36 am
by gurdain
Ok I adjusted the script, however I would like to have the ticket owner show up as well as the last replier.
So I tried to add:
<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible[owner] . '&sort='; ?>owner"><?php echo $hesklang[owner]; ?></a></th>
before the last replier line
But its just added the column header without adding the entire column.
So now I have Owner and underneath that it shows the last replier
The last replier column shows the flags
And the flags column is outside the text box!
Also can I change the wording of 'Owner' to "Assigned to" or something....
Re: Configuring columns in the open ticket view
Posted: Mon Jul 08, 2013 10:44 am
by gurdain
Ok I managed to get the full column, to show...hadn't added the owner one to the list under echo <<<EOC
Just need to figure out how to change the title now...
Re: Configuring columns in the open ticket view
Posted: Mon Jul 08, 2013 10:47 am
by gurdain
Ok done...went into /language/en/text.php
changed
$hesklang['owner']='Owner';
to
$hesklang['owner']='Assigned to';
Re: Configuring columns in the open ticket view
Posted: Mon Jul 08, 2013 10:58 am
by akwil
Perfect:)
I also modified my view and rows on my admin panel were wraped.
I wanted to have ticket in one line.
To see tickets in one line read this:
viewtopic.php?f=13&t=4446
Re: Configuring columns in the open ticket view
Posted: Mon Jul 15, 2013 1:09 pm
by snifty
So far so good, but how do I sort by user or name?
With this modification the sorting is only done by user id and not by user name.
It would be more helpful to have the sorting alphabetically (either user or name) and not by ID.
Does anybody know how to do this?
Thanks!
Re: Configuring columns in the open ticket view
Posted: Fri Jan 31, 2014 1:02 pm
by Johnyb
gurdain wrote:Ok done...went into /language/en/text.php
changed
$hesklang['owner']='Owner';
to
$hesklang['owner']='Assigned to';
Hi, i added <td class="$color">$ticket[owner]</td> to ticket_list.inc.php . This add column which i need to ticket view .
But i need add this new column name to column header too. Can u help me ?
(no need rename, need ad column

.....
No sort or other function need . Thx for reply .
Johny
Re: Configuring columns in the open ticket view
Posted: Fri Jan 31, 2014 1:25 pm
by Johnyb
Solved .
i add this line :
Code: Select all
<th class="admin_white" style="text-align:center; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['owner'] . '&sort='; ?>lastreplier"><?php echo $hesklang['owner']; ?></a></th>
to ticket_list.inc.php (row cca 444 ...function hesk_print_list_head() ) .