Mod Name / Version - Private Message Pop Up Notification 2.2
Version 2.2 fixes an issue with the popup script not displaying on some servers.
Description - This pops up a little window when there are new Private Messages Waiting. The window tells how many messages, and gives a link to check them. The window will refresh periodically and update the total number of messages, and close when there are no more new messages to read. There is also an option to have an audio alert (with or without the popup window) when you have new private messages. Users can specify which option, or none or both in their profiles.
Pre-requisites - none
Author - JoshPet
Credits - Definately couldn't have done this without help from JustDave and Gardener - Thanks Guys! Thanks to Chaos for helping to track down bugs and errors in my instructions for 6.2. <img src="/threads/php/images/graemlins/smile.gif" alt="" />
Files Altered - ubbt.inc.php, editbasic.php, changebasic.php,
/templates/default/editbasic.tmpl, /templates/default/ubbt_registerednav.tmpl,
/languages/english/online.php, /languages/english/generic.php,
/languages/english/editbasic.php
Database Altered - Yes - 2 fields (U_PrivatePopup & U_PrivateAlert) are added to allow users the option to choose or disable either option
New Files - messagepopup.php
Any other info - I was pretty proud of myself for pulling this one off. <img src="/threads/php/images/graemlins/wink.gif" alt="" /> LOL
Screenshot - Here is what the popup window looks like. I made it bright yellow, with red text (not stylesheet dependent) so that it will stand out. It inserts the name of the site (from config file), user's name, number of messages and link back to check private messages. Clicking the link or the flashing envelope icon will open the list of received messages back in the original threads window.
[]
https://www.ubbdev.com/threads/php/uploads/59752-popupwindow.gif[/]
I also have included
this sound file in the zip, but you can substitute any .wav file. I found a great source for "you have mail" type sound files at
http://newmail.monsterserve.com NOTE: Audio alert may not work in all browsers. <img src="/threads/php/images/graemlins/wink.gif" alt="" />