Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sound notification for DVZ Shoutbox 2.1.x, 2.2.x, 2.3.x
#1
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,221)

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>
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply
#2
waoo , nice update sir Smile

thanks a lot of , work like charm
Reply
#3
Sound doesn't work and I did everything you said to do!
Good New Year 2015!
明けまして      おめでとう!
Reply
#4
This user has been denied support. This user has been denied support.
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
Reply
#5
yep the people are right, the sound is not working, so explain what to do now?
Reply
#6
Strange, it works for me Confused
Reply
#7
don't work, any suggestions?
Reply
#8
not works to me.. how.??
Reply
#9
Used to work on Your version but doesnt work on the Private Messaging version.

Apparantly it doesnt uses dvz_shoutbox Callbacks

Any help?
Reply
#10
This user has been denied support. This user has been denied support.
working for me
thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)