Solution
I created a way to retrieve the original message - this works on the "Post Reply" (utilizing Template used on ticket response/reply). The way template variables work is much different then in 1.6 (in my opinion, much cleaner)
in class.ticket.php in function "postreply"...
Change:
$msg = $this->replaceVars($msg,
array('response' => $response, 'signature' => $signature, 'staff' => $thisstaff));
To:
$msg = $this->replaceVars($msg,
array('response' => $response, 'signature' => $signature, 'staff' => $thisstaff, 'originalmsg' => $this->getOriginalMessage()));
create new function after function postreply:
function getOriginalMessage(){
$sql = 'select body from '.TICKET_THREAD_TABLE.' where ticket_id='.$this->id.' LIMIT 0,1';
if(!($res=db_query($sql)) || !db_num_rows($res))
return '';
$originalMessage = db_fetch_array($res);
return $originalMessage;
}
use %{originalmsg} in your template - again, I only created this for staff to post replies to the original request. If you need it for other templates, this should give you a general idea of what to look for in the other functions.
Enjoy!