MyBB Community Forums
Sound notification for DVZ Shoutbox 2.1.x, 2.2.x, 2.3.x - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: Sound notification for DVZ Shoutbox 2.1.x, 2.2.x, 2.3.x (/thread-166192.html)

Pages: 1 2 3 4


Sound notification for DVZ Shoutbox 2.1.x, 2.2.x, 2.3.x - Devilshakerz - 2015-01-26

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

.zip   dvz_shoutbox.zip (Size: 1.27 KB / Downloads: 1,898)

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>



RE: Sound notification for DVZ Shoutbox 2.1.x - mujeebdgk - 2015-01-30

waoo , nice update sir Smile

thanks a lot of , work like charm


RE: Sound notification for DVZ Shoutbox 2.1.x - jpninside - 2015-02-14

Sound doesn't work and I did everything you said to do!


RE: Sound notification for DVZ Shoutbox 2.1.x - dongitcher - 2015-04-04

Yeah sound doesn't work

I lied this does work, can you add an option to disable it if a user don't want it?

Next you should add attentions in it


RE: Sound notification for DVZ Shoutbox 2.1.x - Wazzyl - 2015-04-13

yep the people are right, the sound is not working, so explain what to do now?


RE: Sound notification for DVZ Shoutbox 2.1.x, 2.2.x - TheDcoder - 2015-12-23

Strange, it works for me Confused


RE: Sound notification for DVZ Shoutbox 2.1.x, 2.2.x - krzychu20 - 2016-01-08

don't work, any suggestions?


RE: Sound notification for DVZ Shoutbox 2.1.x, 2.2.x - ZipAnime - 2016-01-19

not works to me.. how.??


RE: Sound notification for DVZ Shoutbox 2.1.x, 2.2.x - ralf93 - 2016-04-12

Used to work on Your version but doesnt work on the Private Messaging version.

Apparantly it doesnt uses dvz_shoutbox Callbacks

Any help?


RE: Sound notification for DVZ Shoutbox 2.1.x, 2.2.x, 2.3.x - nuwan350 - 2016-12-01

working for me
thanks