2015-01-26, 04:21 PM
This slight addition allows you to add a sound notification for DVZ Shoutbox when a new message is posted, using its internal hooks system.
1. Open the attached file and upload the dvz_shoutbox.mp3 file to the images/ directory on your server
[attachment=33621]
2. Open the dvz_shoutbox template (Global Templates) and add the following code after {$javascript}
1. Open the attached file and upload the dvz_shoutbox.mp3 file to the images/ directory on your server
[attachment=33621]
2. Open the dvz_shoutbox template (Global Templates) and add the following code after {$javascript}
<script>
dvz_shoutbox.callbacks['update'].push(function(){
if ($('#shoutbox .entry.new').length) {
var audio = new Audio(rootpath + '/images/dvz_shoutbox.mp3');
audio.volume = 0.2;
audio.play();
}
});
</script>