Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 PM AddOn - You've got Mail - Simple (1 line)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Dan Martin
Average Member

USA
528 Posts

Posted - 11 June 2001 :  19:58:13  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
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  Show Profile
Thanks! - its works fine. I only had to
change: <bgsound src=gotMail.wav>
intoto: <bgsound src=gotmail.wav>

Morten

Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 11 June 2001 :  21:42:07  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
That's strange. Oh well, those quirks don't suprise me anymore.

Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 12 June 2001 :  00:48:22  Show Profile
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
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 12 June 2001 :  10:50:48  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
Oh, in that one. Well, then I don't feel bad, that's one monster topic.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 June 2001 :  12:28:41  Show Profile  Visit dayve's Homepage
you do know that <bgsound> is only supported by IE

Dayve
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 12 June 2001 :  13:45:19  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
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

Morten
Junior Member

Denmark
251 Posts

Posted - 12 June 2001 :  13:53:50  Show Profile
I think Netscape users are use to miss a lot, they will proberbly not even notise that they miss this too...

Go to Top of Page

mfindlay
Junior Member

USA
144 Posts

Posted - 12 June 2001 :  14:10:40  Show Profile  Visit mfindlay's Homepage
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

@tomic
Senior Member

USA
1790 Posts

Posted - 12 June 2001 :  14:43:36  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 June 2001 :  16:55:00  Show Profile  Visit dayve's Homepage
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

Dan Martin
Average Member

USA
528 Posts

Posted - 13 June 2001 :  15:15:25  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
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

rick7165
Senior Member

USA
1094 Posts

Posted - 13 June 2001 :  20:32:34  Show Profile  Visit rick7165's Homepage
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.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 June 2001 :  22:13:48  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 13 June 2001 :  23:12:09  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
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

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 June 2001 :  17:25:01  Show Profile  Visit dayve's Homepage
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07