Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
erbe Offline
New Member
 
Posts: 1
Join Date: Jan 2006
Procesing template fields - 22-01-2006, 11:23 PM

I've modified the ticketlist template to show also the ticket creation date.

After some tests I've found that I can get the creation date in unix time using the var <{$ticket[dateline]}> but I know that this is not a real php variable and is more like a string to be parsed by kayako.

Since I want to use date('dd-mm-YY', $ticket[dateline]) to format the unix time to a human readable time I don't really know how I can proces this variable inside php. I've tried with <?php echo " <{$ticket[dateline]}> "; ?> for example but it doesn't works so I don't know what I have to do...
   
Reply With Quote
  (#2) Old
thuan Offline
New Member
 
Posts: 6
Join Date: Dec 2005
12-06-2006, 11:37 PM

Hi,
I did this by changing the sql behind the whole thing..
In the client_tickets.php under \modules\tickets

....
//$dbCore->query("SELECT * FROM `". TABLE_PREFIX ."tickets` AS tickets WHERE `email` IN (". buildIN($_emaillist) .") ORDER BY `lastactivity` DESC LIMIT ".intval($_offset).",".intval($_limit).";");
$dbCore->query("SELECT ticketmaskid,subject,ticketid,ticketstatusid,prior ityid,departmentid,from_unixtime(dateline) as dateline,lastreplier,fullname FROM `". TABLE_PREFIX ."tickets` AS tickets WHERE `email` IN (". buildIN($_emaillist) .") ORDER BY `lastactivity` DESC LIMIT ".intval($_offset).",".intval($_limit).";");
..............
   
Reply With Quote
Reply

Tags
procesing, template

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Fields & Custom Template Groups. Yosemite SupportSuite, eSupport and LiveResponse 1 25-07-2007 02:22 AM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 09:53 PM
Merging Custom Fields in ViewTicket of Staff Mick SupportSuite, eSupport and LiveResponse 0 21-09-2006 05:48 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46