[For 1.8] DVZ Shoutbox 2.3.3 – Sound notification.
#1
DVZ SHOUTBOX 2.3.3 – SOUND NOTIFICATION

Download sound notification:

.zip   dvz_shoutbox.zip (Size: 1.38 KB / Downloads: 112)

Upload the dvz_shoutbox.mp3 file to the \images

Go to ACP >>> Templates & Style >>> Templates >>> Global Templates >>> dvz_shoutbox
Add the following code before {$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.5;
        audio.play();
    }
});
</script>

Tested on:
  • DVZ Shoutbox 2.3.3
  • MyBB 1.8.22
Reply


Messages In This Thread
DVZ Shoutbox 2.3.3 – Sound notification. - by Tomik - 2019-07-27, 04:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)