Print Topic - Archive

E-Blah Community  /  Modification Archive  /  PM Message Mod
Posted by: sanuk, February 8, 2004, 1:14pm
Hi Justin.

My suggested Mod.

Sometimes when you log into the forum you tend to overlook where it says you have "new XX Private Messages"

Is there a way there could be a pop up box with sound (i.e Bing Bong)
or maybe just a popup box that appears when you login that alerts you with the message you have "xx new Private messages"

Maybe a silly idea, but may be helpful to some, including Me !

Cheers

Mike   ;)
Posted by: Justin, February 8, 2004, 2:14pm; Reply: 1
You can do it with JavaScript in some way.
Posted by: sanuk, February 8, 2004, 2:57pm; Reply: 2
Hi,
Could do with a bit of help on this one.
Cheers
Mike  ;)
Posted by: Nat, February 8, 2004, 4:03pm; Reply: 3
This is a mod that that I would use.. but aint got a clue where to start on it. What I have done, on the forum I am soon to launch, is to put the pm code in its own cell, this makes it really stand out if you get a PM. 
Posted by: Neil, April 8, 2004, 9:22am; Reply: 4
You should easily be able to put a check in the PERL (Routines.pl after the loop that increments $new) such as:

if $new > 0{
   $popupscript = "<script type="text/javascript">window.alert("You have $new new private messages\n");</script>";
} else{
   $popupscript = "";
}

and then include
<blah v="$popupscript"> in the <head> of the template.

PS: This is a 2 minute post with no real thought through it so it may not work first time. Have fun.
Posted by: Justin, April 8, 2004, 3:11pm; Reply: 5
Hrmm .... I wonder if people would like this better than the other way.  :-/
Posted by: Justin, April 8, 2004, 6:47pm; Reply: 6
I went and did it a little more this way.  ;D
Posted by: Neil, April 9, 2004, 3:53am; Reply: 7
So when can we look forward to the next release? :)
Posted by: Justin, April 9, 2004, 10:13am; Reply: 8
Uhhh .. a long way off.  lol  You can download P6, but the code for PM's will change.

If you want more info, read the Chit Chat board.

- Justin
Posted by: Neil, April 21, 2004, 3:25am; Reply: 9
Ah well, I shall just have to wait patiently with everyone else. One thing about the JavaScript I mentioned above (for the benefit of those who considered implementing it and not for Justin as I' sure he is well aware of this) is that it will pop up an new alert window upon each page load, including when the back button is pressed on the browser, until the messages had been read. The only solution would be to class the PMs as new (i.e. not yet notfied the user of there existence), unread (i.e. not yet read but the user has had a popup) and read. This way a user would be prompted only once when a new message(s) arrived. You would still suffer from the back button problem unless you weren't caching the page which I guess is possible if you have access to the server settings but it would slow down the navigation of the board as it all comes from Blah.cgi.
Print page generated: January 9, 2009, 6:26pm