Page 1 of 1

adding category and message in Admin tickets table

Posted: Fri Sep 18, 2009 9:51 am
by uaeee
Script URL: on intranet
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: add category

Write your message below:

I would like to add extra coloums in ticket table in administrator page to display category and message body..

Please help..

thank you!

Posted: Fri Sep 18, 2009 3:56 pm
by Klemen
Unfortunately such customization is out of the scope of my support.

Posted: Fri Sep 18, 2009 4:46 pm
by uaeee
Appreciate your prompt response ..
thanks.. I just found code posted here viewtopic.php?t=745
really usefull
and I managed to add both as coloums to the table..
however,

I need help to display (message) truncated..ie,
display only first 50 charcaters.. no the whole message.

any idea?

Posted: Mon Sep 21, 2009 5:30 am
by Klemen
You can use the substr() function
http://www.php.net/substr

In your case something like

Code: Select all

$somevar = substr($somevar,0,50);
Just replace $somevar with the variable you use.