Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 24-07-2010 17:04:40

cohenmitch
Members
Registered: 04-07-2010
Posts: 11

sorting

Dear David:

Your program is working well for us. One question I have is about sorting. I can't figure out what order the tickets come up in. It would be fine if it came up in ticket # order or date order when I browse tickets. Right now, it seems random.
I was looking in the program since I know PHP, but it's sourceguardian, so I can't add a sort "order by" command to any of the mysql statements or I would do it myself instead of bugging you.

I also noticed the first 5 seem to be highlighted with a box around them and the others don't have a box. I'm not sure if there is a signficance to the first 5 in the list. They seem to start in ticket order but then it gets mixed up. If you need an admin account, I can add one for you, if this isn't usually the way it works.

Mitch

Last edited by cohenmitch (24-07-2010 17:05:09)

Offline

#2 24-07-2010 17:45:42

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,065

Re: sorting

Hi Mitch,

Glad the program is working ok. Tickets are grouped by priority. High priority first, then medium, then low. The ones highlighted should be 'High' priority. After the priority ordering they are then grouped by id.

If you have a couple of high priority tickets, and then later a low priority ticket is opened, the high priority remain at the top.

If you would prefer the ordering done some other way, then let me know and I`ll send you the modified files. Actually, as you have mentioned it, I`ll move this to the defined file so it can be changed by users.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 24-07-2010 17:57:59

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,065

Re: sorting

Ok, I`ve made this adjustable for users. Re-download Maian Support and replace the following:

admin/templates/tickets-open.php
admin/templates/tickets-closed.php

Add the following to the 'admin/control/defined.inc.php' file:

define('MYSQL_TICKET_ORDERING', 'ORDER BY ticketStatus,FIELD(priority,\'high\',\'medium\',\'low\'),id DESC');

So, to have the display in the order the tickets are coming in, you would do:

define('MYSQL_TICKET_ORDERING', 'ORDER BY id DESC');

Hope that helps.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#4 25-07-2010 19:48:44

cohenmitch
Members
Registered: 04-07-2010
Posts: 11

Re: sorting

Thanks David. That worked.
It's much easier for me to see the tickets when I enter the system in ticket order with the newest at the top, and I can scan through quickly. Thanks so much.
Mitch

Offline

#5 25-07-2010 20:47:11

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,065

Re: sorting

You`re welcome Mitch. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#6 28-07-2010 04:16:58

cohenmitch
Members
Registered: 04-07-2010
Posts: 11

Re: sorting

David, I found that sorting by lastUpdate has made things much more efficient for me. I'm adding this in case others wish to try it. It shows the tickets that were most recently responded to at the top. I normally filter those waiting for Admin response. So when I sort by lastUpdate, it puts the most recent customer responses at the top (which is the way I like to view it).  To make this work, I added an index for lastUpdate in the mysql table.  Then I just changed your new parameter line to:
define('MYSQL_TICKET_ORDERING', 'ORDER BY lastUpdate DESC');

It didn't work when I tried this without adding the index first.

It would also be a nice feature to see "updated: (with the date)" added to your status line.

Thanks for the flexibility to be able to try out some different sorting choices.

Offline

#7 28-07-2010 06:59:14

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,065

Re: sorting

You`re welcome Mitch, glad the change made things better for you. If you do have any other feedback, don`t hesitate to let me know. I`ve added the 'Last Updated' option to my suggestions list, this will definitely be in the next update. Spam filters for imap should also make it in the next release.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy