Page 1 of 1

Display only new/reply required tickets in staff section

Posted: Wed May 23, 2007 11:52 am
by PashaSilence
Script URL: http://www.wnsoft.ru/support/
Version of script: 0.94
Hosting company: http://www.mastak.com
URL of phpinfo.php: http://www.wnsoft.ru/support/phpinfo.php
URL of session_test.php: http://www.wnsoft.ru/support/session_test.php
What terms did you try when SEARCHING for a solution: settings for admin part

Write your message below:

Is this possible to display only new or reply required tickets in the admin section by default? Our support members when login into admin section see all tickets including replied tickets. There a feature in the bottom of the admin page to show only new tickets by setting Status radio list to necessary state. But this is time spending if do this action every time after login. Can anyone show the way to display only new or reply required tickets right after login without any additional actions? As I understand admin part source code is crypted, so I can’t change it manually.

Thanks.

Posted: Wed May 23, 2007 1:10 pm
by Klemen
None of the code is Hesk is encrypted except a very small portion which takes care of printing out "Powered by" links is encoded a bit.

Try this:
- open file "print_tickets.inc.php" inside the "inc" folder with Notepad
- change line 43 from

Code: Select all

if (!isset($_GET['status'])) {$status=6; $sql .= " AND (`status`='0' OR `status`='1' OR `status`='2') ";}  
to

Code: Select all

if (!isset($_GET['status'])) {$status=5; $sql .= " AND (`status`='0' OR `status`='1') ";}  
- save, upload, test.

Just a reference what status numbers mean if anyone has some different requirements:
0 = NEW
1 = WAITING REPLY
2 = REPLIED
3 = RESOLVED
4 = ANY STATUS
5 = 0 + 1
6 = 0 + 1 + 2

Posted: Fri May 25, 2007 6:50 am
by power
I dont understand what you guys are talking about.....when you login to admin....how dose the tickets get listed ? new, reply, awaiting first ...it that the order ?

Posted: Fri May 25, 2007 7:47 am
by Klemen
Tickets which have status either NEW, WAITING REPLY or REPLIED are listed by default and sorted by Priority.

Posted: Sat May 26, 2007 3:38 am
by power
hey PashaSilence,

did the code work for you ?