Javascript box for PM Notifications

On the old IM site, this mod was installed and its great. We use it on our Integra site.. that being said I think it should be used here. I'm not sure if its my browser or what, but I never get any notification of new PM's (cept via email), not even a pop-up window. :(
Consider it please! I'd like to see this modification make the 1.4.1 BUILD.
<3 Bush
Consider it please! I'd like to see this modification make the 1.4.1 BUILD.
<3 Bush
- Code: Select all
################################################################ MOD Title]http://www.phpbb.hotschi.de/#[/url]# MOD Description: As everybody has a popup blocker today, this mod replaces the popup for new## private messages with a confirmation Java Script Box. It tells you, that## you have a new private message (or even how many, if you have more than one)## and asks you if you want to go to your privat messages.## Then you can click on Ok, or Abort.## MOD Version: 1.0.0#### Installation Level: Easy## Installation Time: 2 Minute## Files To Edit: 3## includes/page_header.php## templates/overall_header.tpl## language/lang_english/lang_main.php## (language/lang_german/lang_main.php)#### Included Files: n/a################################################################ For Security Purposes, Please Check: [url=http://www.phpbb.com/mods/]http://www.phpbb.com/mods/[/url] for the## latest version of this MOD. Downloading this MOD from other sites could cause malicious code## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered## in our MOD-Database, located at: [url=http://www.phpbb.com/mods/#]http://www.phpbb.com/mods/#[/url]############################################################### MOD History:#### 2005-08-13 - Version 1.0.0## - First release################################################################## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD############################################################## ##-----[ OPEN ]------------------------------------------# includes/page_header.php ##-----[ FIND ]------------------------------------------# $template->assign_block_vars('switch_enable_pm_popup', array()); ##-----[ AFTER, ADD ]------------------------------------------# $l_new_message = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['You_new_pm'] : $lang['You_new_pms']; $l_new_message_text = sprintf($l_new_message, $userdata['user_new_privmsg']); $href = append_sid("privmsg.".$phpEx."?folder=inbox"); $template->assign_vars(array( 'L_MESSAGE' => $l_new_message_text, 'U_HREF' => $href)); ##-----[ OPEN ]------------------------------------------# templates/overall_header.tpl ##-----[ FIND ]------------------------------------------# window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; ##-----[ REPLACE WITH ]------------------------------------------# if ( confirm("{L_MESSAGE}") ) { top.location.href="{U_HREF}"; } ##-----[ OPEN ]------------------------------------------# language/lang_english/lang_main.php ##-----[ FIND ]------------------------------------------#$lang['You_new_pm'] = 'A new private message is waiting for you in your Inbox';$lang['You_new_pms'] = 'New private messages are waiting for you in your Inbox'; ##-----[ REPLACE WITH ]------------------------------------------#$lang['You_new_pm'] = 'A new private message is waiting for you in your Inbox.nDo you want to go to your private messages?';$lang['You_new_pms'] = '%d new private messages are waiting for you in your InboxnDo you want to go to your private messages?'; ############################################################################################### The following steps must only be done, if you have installed the German language pack###############################################################################################-----[ OPEN ]------------------------------------------# # language/lang_german/lang_main.php###-----[ FIND ]------------------------------------------## $lang['You_new_pm'] = 'Eine neue private Nachricht befindet sich in deinem Posteingang';# $lang['You_new_pms'] = 'Es befinden sich neue private Nachrichten in deinem Posteingang';###-----[ REPLACE WITH ]------------------------------------------## $lang['You_new_pm'] = 'Eine neue private Nachricht befindet sich in deinem PosteingangnWillst du gleich zu deinen privaten Narichten gehen?';# $lang['You_new_pms'] = 'Es befinden sich %d neue private Nachrichten in deinem Posteingang.nWillst du gleich zu deinen privaten Narichten gehen?';# ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM