See here: http://www.osticket.com/forums/forum/osticket-1-6-x/mods-and-customizations/2134-mod-add-post-sendername-time-duration-in-each-message(http://www.osticket.com/forums/forum/osticket-1-6-x/mods-and-customizations/2134-mod-add-post-sendername-time-duration-in-each-message)
Building on (masino_sinaga's work.)
I rewrote the class using 1.7.
Save the class file into /includes/class.duration.php
Class here: http://pastebin.com/raw.php?i=KzWmb7fW(http://pastebin.com/raw.php?i=KzWmb7fW)
Open /includes/staff/ticket-view.inc.php
Find:
//Get the goodies.
$dept = $ticket->getDept(); //Dept
$staff = $ticket->getStaff(); //Assigned or closed by..
$team = $ticket->getTeam(); //Assigned team.
$sla = $ticket->getSLA();
$lock = $ticket->getLock(); //Ticket lock obj
$id = $ticket->getId(); //Ticket ID.
Add after:
//Load the duration MOD
require_once(INCLUDE_DIR.'class.duration.php');
$mod_duration = new MOD_Duration($ticket);
Find: <th width="440"><span><?php echo Format:($entry);?></span></th>
Add immediately after: <th width="160"><span><?php echo $mod_duration->addThreadEntry($entry); ?></span></th>
You could put it wherever you like, I find putting it here is ok.
Right at the bottom, find: <script type="text/javascript" src="js/ticket.js"></script>
Add just before:
<br /><b>Total: <?php echo $tcount; ?> post(s), <?php $mod_duration->printThreadSummary(); ?></b>
Test and enjoy!