criat Posted November 8, 2013 Share Posted November 8, 2013 Currently, when a client enter his account and go to his Tickets list (supportticketslist.tpl), the latest answer on the tickets will be sorted by full date, example: Example 1: Latest update: 8th Nov 2013 (14:06) But on admin panel, when you go to Support -> Support Tickets, it shows the time since the last answer, example: Example 2: Latest Answer: 0h 52m So I was trying to adapt it to work on client area as well, here's what I found: Admin panel: <div class="ticketlastreply">{$_ADMINLANG.support.lastreply}: {$lastreply}</div> Client area: <td data-title="{$LANG.supportticketsticketlastupdated}">{$ticket.lastreply}</td> My hosting company shows the time since the last answer on the client area, using whmcs, so I know it's possible, the question is... HOW? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 9, 2013 Share Posted November 9, 2013 well the how is going to be current time - $lastreply = waiting time so get current time, convert $last reply, take one away from the other = convert result back to days/hours/mins etc... all in php strtotime might be a good starting point... http://de.php.net/manual/en/function.strtotime.php 0 Quote Link to comment Share on other sites More sharing options...
criat Posted November 9, 2013 Author Share Posted November 9, 2013 Yeah, but as WHMCS uses this function already in the admin area, then this code already exists, right? I want to know how to use it, wich variable or where to find it..I've already searched within every file of /admin/ folder with fileseek but couldn't find it 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 9, 2013 Share Posted November 9, 2013 which tells you that the function code exists in an encrypted file! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.