I know the subtle little bitty at the bottom of the thread sits there just before you are about to reply.. but we process orders before we get to the bottom.. so I added this..
If you haven't modded ticket-view.inc.php, simply extract the attached over yours, otherwise, read on:
in: include/staff/ticket-view.inc.php
Find (around line 29) this:
//Useful warnings and errors the user might want to know!
if($ticket->isAssigned() && (
($staff && $staff->getId()!=$thisstaff->getId())
|| ($team && !$team->hasMember($thisstaff))
))
$warn.=' <span class="Icon assignedTicket">Ticket is assigned to '.implode('/', $ticket->getAssignees()).'</span>';
Replace with:
//Useful warnings and errors the user might want to know!
if($ticket->isAssigned() && (
($staff && $staff->getId()!=$thisstaff->getId())
|| ($team && !$team->hasMember($thisstaff))
)){
$warn.= $assigned_warning = ' <span class="Icon assignedTicket">Ticket is assigned to '.implode('/', $ticket->getAssignees()).'</span>';
$assigned_warn =<<<WARNING
<div id="ticketNotYours" name="ticketNotYours" style="float;
-webkit-transform(45deg);
-moz-transform(45deg);
-o-transform: rotate(45deg);
filter: progid.Microsoft.BasicImage(rotation=2);
font-size;
border: 10px dotted #ff23b6;
margin: 200px;
padding: 20px; text-align: center; ">$assigned_warning</div>
<script type="text/javascript">
/* Set background colour to something incredibly noticeable! */
document.body.style.background= '#ff23b6';
</script>
WARNING;
}else{
$assigned_warn = '';
Round line 57 (Immediately before but after the ?>
Add:
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#ticketNotYours").each(function () {
$(this).effect("pulsate", { times }, 2500);
});
});</script>
Round (after above changes) line 367 , find:
<?php echo Format:($entry); ?></td>
Add beneath: (but before the )
<?php echo $assigned_warn; $assigned_warn=''; ?>
(The second one clears it, otherwise it is repeated for each message)
Cosmetic changes, however, when you are inside a thread, and someone else has been assigned to the ticket, BOY DO YOU KNOW, the background has been changed to fuscia pink, the "message" has been copied into a tilted massive message right in the middle of the thread, it pulses (jquery!) and has a dotted pink border.. if you can't spot this one, there is something wrong with you! Don't believe me? Try: (#ff23b6)
[ticket-view.inc.php.zip](https://forum.osticket.com/assets/files/migrated/3/8ff610a4b7ddc3065aad438e778ea6a.zip)