Author |
Topic ![Next Topic Next Topic](images/icon_go_right.gif) |
|
Dan Martin
Average Member
![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif)
USA
528 Posts |
Posted - 11 June 2001 : 19:58:13
|
I don't know if anyone has done this (it wouldn't suprise me). It's very simple, but very effective.
First download this file: http://www.getitcrunk.com/forum/gotmail.wav Place it in your forum directory.
Then, in privatemess.asp change this line (should be 4th from the bottom)
<% =strDBNTUserName %></b><% end if %><% end if %> - You have <% if pmcount >=1 then %><font color="<% =strActiveLinkColor %>"><b><% =pmcount %></b></font><% else %><% =pmcount %><% end if %> new private messages.</font> To this:
<% =strDBNTUserName %></b><% end if %><% end if %> - You have <% if pmcount >=1 then %><bgsound src=gotMail.wav><font color="<% =strActiveLinkColor %>"><b><% =pmcount %></b></font><% else %><% =pmcount %><% end if %> new private messages.</font>
If anyone has a new private message, when they load the forum it will say "You've Got Mail". It's a good way to make sure your user notices his mail. ![](icon_smile_wink.gif)
-Dan
Edited by - Dan Martin on 11 June 2001 19:59:39
Edited by - Dan Martin on 11 June 2001 20:01:31 |
|
Morten
Junior Member
![](images/icon_star_cyan.gif) ![](images/icon_star_cyan.gif)
Denmark
251 Posts |
Posted - 11 June 2001 : 20:50:26
|
Thanks! - its works fine. I only had to change: <bgsound src=gotMail.wav> intoto: <bgsound src=gotmail.wav>
Morten
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
Dan Martin
Average Member
![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif)
USA
528 Posts |
Posted - 11 June 2001 : 21:42:07
|
That's strange. Oh well, those quirks don't suprise me anymore. ![](icon_smile.gif)
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
Classicmotorcycling
Development Team Leader
![](images/icon_star_gold.gif) ![](images/icon_star_gold.gif) ![](images/icon_star_gold.gif) ![](images/icon_star_gold.gif) ![](images/icon_star_gold.gif)
Australia
2085 Posts |
Posted - 12 June 2001 : 00:48:22
|
Dan,
It has been done in this topic;
MOD: Private Messages (another re-release w/fixes)
Thought that you might like to know. There is also ways to get the popup notification as well.
quote:
I don't know if anyone has done this (it wouldn't suprise me). It's very simple, but very effective.
First download this file: http://www.getitcrunk.com/forum/gotmail.wav Place it in your forum directory.
Then, in privatemess.asp change this line (should be 4th from the bottom)
<% =strDBNTUserName %></b><% end if %><% end if %> - You have <% if pmcount >=1 then %><font color="<% =strActiveLinkColor %>"><b><% =pmcount %></b></font><% else %><% =pmcount %><% end if %> new private messages.</font> To this:
<% =strDBNTUserName %></b><% end if %><% end if %> - You have <% if pmcount >=1 then %><bgsound src=gotMail.wav><font color="<% =strActiveLinkColor %>"><b><% =pmcount %></b></font><% else %><% =pmcount %><% end if %> new private messages.</font>
If anyone has a new private message, when they load the forum it will say "You've Got Mail". It's a good way to make sure your user notices his mail. ![](icon_smile_wink.gif)
-Dan
Edited by - Dan Martin on 11 June 2001 19:59:39
Edited by - Dan Martin on 11 June 2001 20:01:31
Regards,
Webmaster @ Classic Motor Cycling Classic Motor Cycling |
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
Dan Martin
Average Member
![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif)
USA
528 Posts |
Posted - 12 June 2001 : 10:50:48
|
Oh, in that one. Well, then I don't feel bad, that's one monster topic. ![](icon_smile.gif)
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
dayve
Forum Moderator
![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif)
USA
5820 Posts |
Posted - 12 June 2001 : 12:28:41
|
you do know that <bgsound> is only supported by IE
Dayve |
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
Dan Martin
Average Member
![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif)
USA
528 Posts |
Posted - 12 June 2001 : 13:45:19
|
I personally wasn't aware of that. However, I don't see an issue with that. Netscape does merely ignore the tag, correct? In this case, Netscape users will have the same functionality as before (no sounds).
Is there a similar tag that is supported by non-IE browsers?
-Dan
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
Morten
Junior Member
![](images/icon_star_cyan.gif) ![](images/icon_star_cyan.gif)
Denmark
251 Posts |
Posted - 12 June 2001 : 13:53:50
|
I think Netscape users are use to miss a lot, they will proberbly not even notise that they miss this too...![](icon_smile_big.gif)
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
mfindlay
Junior Member
![](images/icon_star_cyan.gif) ![](images/icon_star_cyan.gif)
USA
144 Posts |
Posted - 12 June 2001 : 14:10:40
|
quote:
I personally wasn't aware of that. However, I don't see an issue with that. Netscape does merely ignore the tag, correct? In this case, Netscape users will have the same functionality as before (no sounds).
Is there a similar tag that is supported by non-IE browsers?
-Dan
Could a script be called to play the .wav?
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
@tomic
Senior Member
![](images/icon_star_purple.gif) ![](images/icon_star_purple.gif) ![](images/icon_star_purple.gif) ![](images/icon_star_purple.gif)
USA
1790 Posts |
Posted - 12 June 2001 : 14:43:36
|
I've been using the audio PM alert for a while now and it's great for IE, Win users. It has caused untold grief for a couple mac users. I had to go disable PM so they could use the forum. There is a specific tag for playing wav's in Netscape but I can't recall it right this second.
@tomic
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
dayve
Forum Moderator
![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif)
USA
5820 Posts |
Posted - 12 June 2001 : 16:55:00
|
You can use <embed> but there can be quirks with this. For instance, when I installed quicktime, the plugins for some reason screw up the way .wav's get interpreted, especially with the <embed> tag so I too use the <bgsound>. I just wanted everyone aware that Netscape does not support this before they go through hours of senseless troubleshooting wondering why it didn't work...
An option I use for members using Netscape is the pop up window alerting them they have new messages. A combination of this with browser checks works out quite well.
Dayve |
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
Dan Martin
Average Member
![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif)
USA
528 Posts |
Posted - 13 June 2001 : 15:15:25
|
Okay, for a cross platform solution, this is no longer a 1 line mod:
This line, changed in the version above, goes back to what is used to be:
<% =strDBNTUserName %></b><% end if %><% end if %> - You have <% if pmcount >=1 then %><font color="<% =strActiveLinkColor %>"><b><% =pmcount %></b></font><% else %><% =pmcount %><% end if %> new private messages.</font>
Then right below that, ADD:
<% if pmcount >=1 Then <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var MSIE=navigator.userAgent.indexOf("MSIE"); var NETS=navigator.userAgent.indexOf("Netscape"); var OPER=navigator.userAgent.indexOf("Opera"); if((MSIE>-1) || (OPER>-1)) { document.write("<BGSOUND SRC=gotmail.wav>"); } else { document.write("<EMBED SRC=gotmail.wav AUTOSTART=TRUE "); document.write("HIDDEN=true VOLUME=100 LOOP=FALSE>"); } // End --> </SCRIPT> <% end if %>
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
rick7165
Senior Member
![](images/icon_star_purple.gif) ![](images/icon_star_purple.gif) ![](images/icon_star_purple.gif) ![](images/icon_star_purple.gif)
USA
1094 Posts |
Posted - 13 June 2001 : 20:32:34
|
If anyone would like to change their New Message wav go here ![](icon_smile.gif)
http://www.research.att.com/~mjm/cgi-bin/ttsdemo
Rick
Test Site www.eastpasco.com HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser. |
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
dayve
Forum Moderator
![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif)
USA
5820 Posts |
Posted - 13 June 2001 : 22:13:48
|
quote:
Okay, for a cross platform solution, this is no longer a 1 line mod:
This line, changed in the version above, goes back to what is used to be:
<% =strDBNTUserName %></b><% end if %><% end if %> - You have <% if pmcount >=1 then %><font color="<% =strActiveLinkColor %>"><b><% =pmcount %></b></font><% else %><% =pmcount %><% end if %> new private messages.</font>
Then right below that, ADD:
<% if pmcount >=1 Then <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var MSIE=navigator.userAgent.indexOf("MSIE"); var NETS=navigator.userAgent.indexOf("Netscape"); var OPER=navigator.userAgent.indexOf("Opera"); if((MSIE>-1) || (OPER>-1)) { document.write("<BGSOUND SRC=gotmail.wav>"); } else { document.write("<EMBED SRC=gotmail.wav AUTOSTART=TRUE "); document.write("HIDDEN=true VOLUME=100 LOOP=FALSE>"); } // End --> </SCRIPT> <% end if %>
FYI #2 IE supports <embed> meaning this code can be trimmed. BTW, there is also a topic on this already that demonstrates this same exact feature... ![](icon_smile_wink.gif)
Dayve |
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
Dan Martin
Average Member
![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif) ![](images/icon_star_blue.gif)
USA
528 Posts |
Posted - 13 June 2001 : 23:12:09
|
I don't beleive all versions of IE support embed, but I could be wrong. The code above comes from javascript.internet.com. It's supposed to be the "true" cross browser solution. Seems to work for me.
As far as another topic, the one mentioned above talks about the entire PM mod. Of course, I didn't know it was being talked about at all when I started this thing. ![](icon_smile_blackeye.gif)
-Dan
|
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
dayve
Forum Moderator
![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif) ![](images/icon_star_bronze.gif)
USA
5820 Posts |
Posted - 14 June 2001 : 17:25:01
|
quote:
I don't beleive all versions of IE support embed, but I could be wrong. The code above comes from javascript.internet.com. It's supposed to be the "true" cross browser solution. Seems to work for me.
As far as another topic, the one mentioned above talks about the entire PM mod. Of course, I didn't know it was being talked about at all when I started this thing. ![](icon_smile_blackeye.gif)
-Dan
<embed> is supported in IE generation type browsers 3 and higher. I don't believe there would be anyone out there still using version 2 and if so, then I don't beleive snitz forum is compatable to begin with.
This is just an FYI so please don't take it personal. I have done quite extensive programming in cross browser scripting and in fact I am part of a great team that supports cross browser DHTML at http://www.dhtmlcentral.com , formerly http://www.bratta.com . If you are familiar with Thomas Brattli you will know that I have learned quite a bit of good clean client side coding from him. Check it out sometime, you'd be amazed...
Dayve
Edited by - dayve on 14 June 2001 17:27:32 |
![Go to Top of Page Go to Top of Page](images/icon_go_up.gif) |
|
|
Topic ![Next Topic Next Topic](images/icon_go_right.gif) |
|