Were you trying to "embed a player" into the ticket thread with the attachment? or were you just trying to "allow WAV" files?
because, allowing WAV is dead easy, simply change the admin settings file-extensions to allow it.
If the former.. well..
http://www.w3schools.com/html/html_sounds.asp(http://www.w3schools.com/html/html_sounds.asp)
You could modify class.thread.php:
function getAttachmentsLinks($file = 'attachment.php', $target = '', $separator = ' ') {
$str = '';
foreach ($this->getAttachments() as $attachment) {
/* The hash can be changed but must match validation in <USERMENTION username="file">@file</USERMENTION> */
$hash = md5($attachment . session_id() . $attachment);
$size = '';
if ($attachment)
$size = sprintf('<em>(%s)</em>', Format :: file_size($attachment));
if ('wav' == strtolower(substr(strrchr($attachment, '.'), 1))) {
$file_url = sprintf('%s?id=%d&h=%s', $file, $attachment, $hash);
$str .= <<<EMBEDDEDPLAYER
<audio src="$file_url" autoplay></audio>
Any other javascript player etc code could go here, feel free to delete this line
EMBEDDEDPLAYER;
}
$str .= sprintf('<a class="Icon file" href="%s?id=%d&h=%s" target="%s">%s</a>%s %s', $file, $attachment, $hash, $target, Format :: htmlchars($attachment), $size, $separator);
}
return $str;
}
Not sure if you can link to the file like that.. lemme know!
Apparently http://www.jplayer.org(http://www.jplayer.org) is the tits.. haven't tried it.