Help Desk Software & Beyond
February 04, 2012, 03:23:24 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [MOD] Customer Ticket List for Operators  (Read 3233 times)
Sparky
Moderator
Hero Member
*****

Karma: 82
Posts: 2,206


stop pushing all those buttons


View Profile
« on: July 02, 2008, 01:44:26 PM »

Provide a link (to only your Operators) inside every Ticket which quickly brings up a complete list of this particular customer's Ticket history.

In TTXTicket.pm, in the ticket subroutine, add this piece of code in blue just below the line as indicated...

Quote
$data->{PAGEHEADING} = '[%Ticket%] #'.$t->{id};
if ($isoper) {
    $data->{CUST_TICKETS} = "<a href='".$cfg->get('scriptname')."?cmd=helpdesk&sid=".$query->param('sid')."&style=&status=(PND|OPN|WFR|CLS)&qsort=open&qwindow=30&email=".$t->{email}."'>All Tickets by ".$t->{email}."</a>";
}

In your ticket.html template, add the new macro anyplace you wish...

Quote
(%CUST_TICKETS%)

Easy Tweaks-

 - This code displays 30 tickets per page.  Edit qwindow=30 above if you want to change this.

 - This code displays tickets of all four status codes.  Edit status=(PND|OPN|WFR|CLS) above if you want to change this.

 - This code sorts the ticket list by creation date column.  Edit qsort=open above if you want to change this.
« Last Edit: January 08, 2009, 10:39:42 AM by Sparky » Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Sparky
Moderator
Hero Member
*****

Karma: 82
Posts: 2,206


stop pushing all those buttons


View Profile
« Reply #1 on: July 02, 2008, 01:45:12 PM »

Optional Companion Modification...

Customer Ticket List for Customers
« Last Edit: July 02, 2008, 05:43:35 PM by Sparky » Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
lebowski
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #2 on: January 08, 2009, 08:09:46 AM »

Just an FYI...
I had to enable the Keep operators logged in (keep session id in cookie) in order for this to work out in TTX 3.0. 
Logged
Paul Nolette
Newbie
*

Karma: 10
Posts: 49


View Profile
« Reply #3 on: January 08, 2009, 10:02:02 AM »

If you do not use the option "Keep operators logged in" you can just pass the sid in the command by using this instead:
Code:
if ($isoper) {
    $data->{CUST_TICKETS} = "<a href='".$cfg->get('scriptname')."?cmd=helpdesk&sid=".$query->param('sid').
                                          '&style=&status=(PND|OPN|WFR|CLS)&qsort=open&qwindow=30
                                          &email='.$t->{email}."'>All Tickets by ".$t->{email}."</a>";
}

basically added
Code:
sid=".$query->param('sid').
Logged
Sparky
Moderator
Hero Member
*****

Karma: 82
Posts: 2,206


stop pushing all those buttons


View Profile
« Reply #4 on: January 08, 2009, 10:37:47 AM »

If you do not use the option "Keep operators logged in" you can just pass the sid in the command by using this instead:
Code:
if ($isoper) {
    $data->{CUST_TICKETS} = "<a href='".$cfg->get('scriptname')."?cmd=helpdesk&sid=".$query->param('sid').
                                          '&style=&status=(PND|OPN|WFR|CLS)&qsort=open&qwindow=30
                                          &email='.$t->{email}."'>All Tickets by ".$t->{email}."</a>";
}

basically added
Code:
sid=".$query->param('sid').

Good idea...  I'll add that anyway.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
arvin
Sr. Member
****

Karma: 9
Posts: 400


Yeah thats right !


View Profile
« Reply #5 on: January 08, 2009, 11:44:53 AM »

Just wondering .....

Are there any TTX version limitations for this mod? or is this mod good for all versions?

Thank you in advance
Logged
Sparky
Moderator
Hero Member
*****

Karma: 82
Posts: 2,206


stop pushing all those buttons


View Profile
« Reply #6 on: January 08, 2009, 11:47:08 AM »

It's basically just a specially constructed link so it should work on any version.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
robwellesley
Jr. Member
**

Karma: 3
Posts: 53


View Profile
« Reply #7 on: August 13, 2010, 07:25:23 PM »

Could one replace the query by email with a custom field?
Logged
Sparky
Moderator
Hero Member
*****

Karma: 82
Posts: 2,206


stop pushing all those buttons


View Profile
« Reply #8 on: August 15, 2010, 08:45:03 AM »

Could one replace the query by email with a custom field?

Yes, but then the list of tickets will no longer be for one particular customer.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
robwellesley
Jr. Member
**

Karma: 3
Posts: 53


View Profile
« Reply #9 on: August 15, 2010, 05:08:17 PM »

Actually, we use the group feature to group each individual 'customer' into  Companies.  Because our Customer is the company.  So sorting by group would be even better.
Logged
Sparky
Moderator
Hero Member
*****

Karma: 82
Posts: 2,206


stop pushing all those buttons


View Profile
« Reply #10 on: August 15, 2010, 09:35:39 PM »

Actually, we use the group feature to group each individual 'customer' into  Companies.  Because our Customer is the company.  So sorting by group would be even better.

You can do that.  Just modify the query string in the URL code to use the group instead of the email.  I think the new variable would look like $t->{group}
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.03 seconds with 20 queries.