Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[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: 60)

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
#2
This is actually very interesting, will give it a try Smile
Reply
#3
what is the difference between author thread mention below and this tutorial ?

https://community.mybb.com/thread-166192...pid1135286
Reply
#4
(2019-07-28, 10:00 AM)mujeebdgk Wrote: what is the difference between author thread mention below and this tutorial ?

https://community.mybb.com/thread-166192...pid1135286

The difference is that the code just needs to be inserted before the variable, not after variable.
That's why I added a new tutorial.
Reply
#5
it works man.. thank you!
Reply
#6
Tested on:
  • DVZ Shoutbox 2.3.3
  • MyBB 1.8.22
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)