Admin Ticket List

Helpdesk for my helpdesk software

Moderator: mkoch227

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

Admin Ticket List

Post by steve »

Hello,

I have modified the ticket_list.inc.php file so my admin ticket list displays customs fields.

Does anybody know how to limit the amount of character displayed from the custom field value. Lets say custom field = ABCDEFGHIJKLMNOPQRSTUVWXYZ obviously that is very long, if that were to display in the admin ticket list it would really stretch out the table. Anybody know how to make it so it cuts of at say 15 character, so instead it displays ABCDEFGHIJKLMNO....?

Thanks,

Steve
-Steve
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Admin Ticket List

Post by Klemen »

Use PHP's substr() function.

instead of printing out $variable_name use

Code: Select all

substr($variable_name, 0, 15); 
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
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Admin Ticket List

Post by steve »

Thank you!

Thank is exactly what i needed.
-Steve
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: Admin Ticket List

Post by dr_patso »

stevekotyk wrote:Thank you!

Thank is exactly what i needed.
how did you modify your ticket list?? did you have it display separate columns?
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Admin Ticket List

Post by steve »

I used the method described in this thread

viewtopic.php?f=14&t=3036&p=15624&hilit ... ist#p15624

My admin ticket list shows the following.

http://i50.tinypic.com/5lvqqa.png

The reported issue column is the one i wanted the above mention code for, as this field generally contains a lot of data.
-Steve
Post Reply