Jump to content

Reverse Ticket Display


jeremyhaber

Recommended Posts

Have you ever gone to check your long ticket thread only to find that you have a very long way to scroll down to see the most recent message? And sometimes when you are replying you have to scroll all the way down to reread the message...

 

I know I sure have. So I came up with a fast and easy way to read your tickets in the reverse order.

 

Open up the file viewticket.tpl in your admin template folder and follow these easy steps!

 

Find the Line:

{foreach from=$replies item=reply}

 

Above it add:

{php}
$this->_tpl_vars["replies"] = array_reverse ( $this->_tpl_vars["replies"] );
{/php}

 

Save the file and re-upload it.

 

Now all your tickets will be displayed from latest to oldest!

 

- Enjoy :)

Link to comment
Share on other sites

Have you ever done a search of the forums!!

If so you would have found that this was done by me quite some time ago.

 

Yup, I search the forums all the time!

I wasn't aware you posted this already. My apologies.

 

I just found a problem I was having and decided to go and fix it ;)

It took me all of 5minutes to do anyways...

 

Edit:

Looking at your code now.. yours seems to be a complete overhaul of the template file. This is a simple addition.

Edited by jeremyhaber
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