Is there any way to modify the word 'staff' in http://domain.com/support/view.php?id=123456(http://domain.com/support/view.php?id=123456) (example) that users see:

'Ticket created by staff'

to something else, we'd prefer:

'Ticket created by Company Name.'

etc.

Thx!

Is there any way to modify the word 'staff' in http://domain.com/support/view.php?id=123456(http://domain.com/support/view.php?id=123456) (example) that users see:

'Ticket created by staff'

to something else, we'd prefer:

'Ticket created by Company Name.'

etc.

Thx

Modify scp/tickets.php

$_POST='Ticket created by staff';

Modify scp/tickets.php

$_POST='Ticket created by staff';

Hmm - can't find that code in there (can find POST['message' but not ='Ticket... content.

Hmm - can't find that code in there (can find POST['message' but not ='Ticket... content.

Whats the whole line you have? What version of osTickets are you using?

Whats the whole line you have? What version of osTickets are you using?

$title='Dept. Transfer from '.$olddept.' to '.$ticket->getDeptName();

$ticket->postNote($title,$_POST);

$msg='Ticket transfered sucessfully to '.$ticket->getDeptName().' Dept.';

$title='Dept. Transfer from '.$olddept.' to '.$ticket->getDeptName();

$ticket->postNote($title,$_POST);

$msg='Ticket transfered sucessfully to '.$ticket->getDeptName().' Dept.';

That is around line 128 for me. Thats not the correct code. Keep going down further.

Around 380 for me is the code I referenced.

case 'open':

$ticket=null;

$_POST=$_POST=0; //clean crap.

$_POST='Ticket created by staff';

That is around line 128 for me. Thats not the correct code. Keep going down further.

Around 380 for me is the code I referenced.

case 'open':

$ticket=null;

$_POST=$_POST=0; //clean crap.

$_POST='Ticket created by staff';

For the life of me I can't find that code in scp/tickets.php - also, it seems odd to me that the user's view would be in this folder/file - am I looking in the right place?

For the life of me I can't find that code in scp/tickets.php - also, it seems odd to me that the user's view would be in this folder/file - am I looking in the right place?

Oh, I see what yer saying. You want the customer to see something different from what has been posted. This change would make future "messages" be something different but that won't change the view of existing tickets. Hmmm....

Oh, I see what yer saying. You want the customer to see something different from what has been posted. This change would make future "messages" be something different but that won't change the view of existing tickets. Hmmm....

Exactly - lemme know if you find something!

Ok, here we go:

include/client/viewticket.inc.php

Find the following line:

<td><?=Format:($msg_row)?></td></tr>

and right before that line add this:

<? if ($msg_row == 'Ticket created by staff'){ $msg_row = 'Ticket created by X Company'; } ?>

Ok, here we go:

include/client/viewticket.inc.php

Find the following line:

<td><?=Format:($msg_row)?></td></tr>

and right before that line add this:

<? if ($msg_row == 'Ticket created by staff'){ $msg_row = 'Ticket created by X Company'; } ?>

That did the trick, thanks for all your awesome help!

That did the trick, thanks for all your awesome help

Sweet! np!

Write a Reply...