Help Desk Software & Beyond
May 17, 2012, 05:07:37 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: [REQ] (%OPERATORNAME%) in both Operator and Customer notifications  (Read 836 times)
Derwood
Newbie
*

Karma: 1
Posts: 19


View Profile
« on: January 30, 2011, 06:55:39 AM »

Sparky,

I think I have got this right...

I am looking for a Mod or solution whgich will allow me to use the variable (%OPERATORNAME%) in both Operator and Customer notifications.

Thanks

Darren
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: January 30, 2011, 11:43:14 AM »

I won't have time to do anything more than a suggested modification.

It will be up to you to verify that it actually works.
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: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #2 on: January 30, 2011, 11:52:20 AM »

READ the sticky threads BEFORE you make your modification.

You'll have to very that this actually works in all cases, when customers trigger a notice, when operators trigger a notice, new tickets, replies, etc.

In TTXTicket.pm, in the opernotify subroutine, look for the section full of macros.  They will start with "$macros{"

Insert the following in there someplace, let's say between the "COMPANYNAME" and "UEMAIL" lines....

Quote
my $oper;
  if ($cfg->get('_USER') ne undef) {
    $oper = $cfg->get('_USER');
  } elsif ($ticket->{oper} ne undef) {
    $oper = TTXUser->new($ticket->{oper});
  }
  if ($oper ne undef) {
    $macros{OPERATORNAME} = $oper->{fname}.' '.$oper->{lname};
  }

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.02 seconds with 19 queries.