2015-02-04, 01:21 PM
Based on Sound notification for DVZ Shoutbox 2.1.x, I've done a visual alert.
It uses jQuery Title Alert.
1. upload the jquery.titlealert.js file into jscripts/ directory on your server
[attachment=33695]
2. Open the dvz_shoutbox template (Global Templates) and add the following code after {$javascript}
It uses jQuery Title Alert.
1. upload the jquery.titlealert.js file into jscripts/ directory on your server
[attachment=33695]
2. Open the dvz_shoutbox template (Global Templates) and add the following code after {$javascript}
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.titlealert.js"></script>
<script>
dvz_shoutbox.callbacks['update'].push(function(){
if ($('#shoutbox .entry.new').length) {
$.titleAlert('Activity on ShoutCast', {requireBlur:true});
}
});</script>