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
Admin Ticket List
Moderator: mkoch227
Re: Admin Ticket List
Use PHP's substr() function.
instead of printing out $variable_name use
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 
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


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
Re: Admin Ticket List
how did you modify your ticket list?? did you have it display separate columns?stevekotyk wrote:Thank you!
Thank is exactly what i needed.
Re: Admin Ticket List
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.
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