Jump to content

Show time since ticket last answer


criat

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated