Sub Menu
Links Menu
Online Users

In total there are 312 users online :: 2 registered, 0 hidden and 310 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

Javascript box for PM Notifications

Feature requests for the next versions of IntegraMOD.

Moderator: Integra Moderator

Javascript box for PM Notifications

PostAuthor: Bush » Wed Apr 19, 2006 5:33 am

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


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
Last edited by Bush on Wed Apr 19, 2006 2:46 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 7:55 am
Cash on hand: 0.00

PostAuthor: Adrian Rea » Wed Apr 19, 2006 5:44 am

Yes, in my profile here I have this
Pop up window on new Private Message
Some templates may open a new window to inform you when new private messages arrive.
set to yes, but I do not get the window up.

A
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00

PostAuthor: tmotley » Wed Apr 19, 2006 5:48 am

Bush, my Firefox shows that it is blocking a popup whenever I have new pm's here at IM2. Are you sure you have popup on new pm's ON in your profile?

Also, you may want to disable smilies on your post since it's messing up some of the code you posted.
Last edited by tmotley on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Adrian Rea » Wed Apr 19, 2006 6:58 am

I think that is what Bush is getting at. If it were a javascript popup, it would fool the popup blocker, whereas the old style popup was a launched window.

A
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00

PostAuthor: Adrian Rea » Wed Apr 19, 2006 7:01 am

"tmotley";p="2284" wrote:Also, you may want to disable smilies on your post since it's messing up some of the code you posted.
Actually it is a current bug in the system. If you post using the PHP quote block the smilies are added as if it were a standard quote block. I have changed it to a [ code] bbcode block as this does not have the same issue. The problem has benn reported before <img>

A
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00

PostAuthor: Bush » Wed Apr 19, 2006 8:07 am

"Adrian Rea";p="2288" wrote:I think that is what Bush is getting at. If it were a javascript popup, it would fool the popup blocker, whereas the old style popup was a launched window.

A


EXACTLY! This way there is no setting that is gonna hold you back from seeing that you have a new PM, cept if you disable javascript but that isn't off by default in IE or FF. Pop-ups however can just plain be a pain in the butt and I think the system should turn to Javascript instead of Popups just to keep it easier for everyone.

Plus people are scared of popups these days. A simple box that displays that you have a new PM is just like the box that says you have new mail that never gets ignored by some setting in a browser or other software.

If this isn't a feature in future builds of IntegraMOD, so be it.. its just my suggestion to the developers. If it doesn't make future releases then ill keep it on my site, b/c I love it. <img>

B
Last edited by Bush on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 7:55 am
Cash on hand: 0.00

PostAuthor: Adrian Rea » Wed Apr 19, 2006 12:07 pm

I do not know if you remember but on im.com there was a site that played a sound whenever there were new messages. This was linked to the variable used in top menu, to display whether there were new mesages or not. It became a little anoying because it wuld sound on every page you clicked until you had gone to the inbox and looked at all the pms that were unread.

What may be better, would be instead or as well as the visible notification, there were a sound played once saying 'you got mail!'

Just as a further thing you can do without busting a gut to code, is to change the menu image from nav_menu to a bold flashing gif that can be the size of your pip.gif or even flashing the text NEW MAIL! That would be the most simplest of changes <img>

A
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00

Re: Javascript box for PM Notifications

PostAuthor: evolver » Wed Apr 19, 2006 12:11 pm

I posted this before:
http://integramod.com/forum/viewtopic.php?t=212

This MOD is very easy to install... :wink:
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

PostAuthor: Fubie » Wed Apr 19, 2006 12:27 pm

I think I would prefer the flashing gif like A recommends. Especially since I use no script in FF which blocks java.
Last edited by Fubie on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://www.myhorrorstories.com/files/bannerexchange.gif[/img][/url]

[url=http][img=left]http://www.fubie.net/images/geekstufflarge.jpg[/img][/url]

Fubie
Dev Team
Dev Team
 
Posts: 742
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 6:52 pm
Cash on hand: 0.00


Return to Design Your Site

Who is online

Registered users: Bing [Bot], Google [Bot]

cron