Author |
Topic |
|
Dan Martin
Average Member
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.
-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
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
|
|
|
Dan Martin
Average Member
USA
528 Posts |
Posted - 11 June 2001 : 21:42:07
|
That's strange. Oh well, those quirks don't suprise me anymore.
|
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 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.
-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 |
|
|
Dan Martin
Average Member
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.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 12 June 2001 : 12:28:41
|
you do know that <bgsound> is only supported by IE
Dayve |
|
|
Dan Martin
Average Member
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
|
|
|
Morten
Junior Member
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...
|
|
|
mfindlay
Junior Member
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?
|
|
|
@tomic
Senior Member
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
|
|
|
dayve
Forum Moderator
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 |
|
|
Dan Martin
Average Member
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 %>
|
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 13 June 2001 : 20:32:34
|
If anyone would like to change their New Message wav go here
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. |
|
|
dayve
Forum Moderator
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...
Dayve |
|
|
Dan Martin
Average Member
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.
-Dan
|
|
|
dayve
Forum Moderator
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.
-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 |
|
|
|
Topic |
|