Changing the ticket list page a bit... help?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
SnortDorker
Posts: 11
Joined: Mon Jun 20, 2011 3:39 am

Changing the ticket list page a bit... help?

Post by SnortDorker »

Script URL:
Version of script: 2.4
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I want to change the columns in the ticket list page to show ticket originally created "timestamp" instead of "updated", "issue"(custom3) instead of "Subject", add a column called "department"(custom2), and change "last replier" column to "owner" to show who the ticket was assigned to. I also need them to sort correctly either by time/date for the "timestamp" or alphabetically for the rest. :D Can you point me to the location of files I need to modify and maybe give me a little hint as how to best implement it myself. :D

You helped me on version 2.2 and I did it before on 2.2 but it seems not everything isn't in the same place or I didn't document it correctly. I also seemed to screw up sorting on my version of 2.2

Any help would be appreciated. I love 2.4 so far... much nicer. Oh Yeah! How do I disable the showing of the job timer, we don't charge by the hour and I don't want anybody to think they can use it for performance appraisals.
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: Changing the ticket list page a bit... help?

Post by dr_patso »

i wanna help!
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: Changing the ticket list page a bit... help?

Post by dr_patso »

here's a start,

edit your /inc/ticket_list.inc.php

change line 340

Code: Select all

		<td class="$color">$ticket[lastchange]</td>
to

Code: Select all

		<td class="$color">$ticket[dt]</td>
then I think dt sorting is already implemented into /inc/prepare_ticket_search.inc.php

edit line 443 in /inc/ticket_list.inc.php

Code: Select all

<th class="admin_white" style="text-align:left; white-space:nowrap;"><a href="<?php echo $href . '?' . $query . $sort_possible['lastchange'] . '&sort='; ?>lastchange"><?php echo $hesklang['last_update']; ?></a></th>

change the hesklang in that th class to ['timestamp'] I think. change $sort_possible to ['dt'] probably change all instances of lastchange in the th class line to dt
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: Changing the ticket list page a bit... help?

Post by dr_patso »

this might be enough for you to figure out the rest, although you'll have to add some kind of sort function, to the prepare_ticket_search.inc.php for your custom fields.... i'm not sure, code should be pretty similar to 2.2 do you still have the files to look at?
SnortDorker
Posts: 11
Joined: Mon Jun 20, 2011 3:39 am

Re: Changing the ticket list page a bit... help?

Post by SnortDorker »

Yes I have the old code because that is what is running the production ticket system... I just spaced on where to look and I have a messy desk because I do all tiers of helpdesk support. I can't find my old notes.

I am still having a problem changing lastreplier over to owner, it just shows the owners hesk id # instead of their name.
SnortDorker
Posts: 11
Joined: Mon Jun 20, 2011 3:39 am

Re: Changing the ticket list page a bit... help?

Post by SnortDorker »

Duh... found out what I broke... nevermind.
inkan
Posts: 1
Joined: Mon Sep 24, 2012 3:12 pm

Re: Changing the ticket list page a bit... help?

Post by inkan »

SnortDorker wrote:Yes I have the old code because that is what is running the production ticket system... I just spaced on where to look and I have a messy desk because I do all tiers of helpdesk support. I can't find my old notes.

I am still having a problem changing lastreplier over to owner, it just shows the owners hesk id # instead of their name.
Having the same problem, how did you solve to show the name of the owner?
I would be happy if you can share.
Thanks!

:)
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Changing the ticket list page a bit... help?

Post by steve »

Try this
-Steve
Post Reply