Title notification for DVZ Shoutbox 2.1.x
#1
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

.zip   jquery.titlealert.js.zip (Size: 1.94 KB / Downloads: 7)

2. Open the dvz_shoutbox template (Global Templates) and add the following code after {$javascript}
Code:
<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>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)