Jump to content

How can you tell what year a ticket was sent in?


Web Host Pro

Recommended Posts

Hi Charles,

 

All I show is: Posted on Sunday 18th June at 16:48

How can you tell what year is was from?

the quick way would be to edit the viewticket.tpl template in your admin template folder and change...

 

{if $reply.friendlydate}
{$_ADMINLANG.support.on} {$reply.friendlydate}

to...

{if $reply.date}
{$_ADMINLANG.support.on} {$reply.date}

R8osTnz.png

 

so that will now show the year, but rather annoyingly shows the time too - two options to fix that, either remove the Smarty line from the template that shows the time...

{$_ADMINLANG.support.at} {$reply.friendlytime}

or remove the time from the date variable...

{if $reply.date}
{$_ADMINLANG.support.on} {$reply.date|strstr:' ':true}

BdrVFd2.png

... or if you want a clearer date format...

{if $reply.date}
{$_ADMINLANG.support.on} {$reply.date|replace:'/':'-'|date_format:"l, jS F, Y"}

7oKf7FB.png

 

now the lengthier solution would be to modify the friendlydate values in the array using an action hook - but that's going to need more than one line of code! :idea:

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.

×
×
  • 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