Important alert: (current site time 7/15/2013 10:07:48 PM EDT)
 

winzip icon

ASP Chat Version 3.0

Email
Submitted on: 4/13/2001 1:02:43 AM
By: Kaustav Acharya  
Level: Advanced
User Rating: By 67 Users
Compatibility: ASP (Active Server Pages), HTML, VbScript (browser/client side)
Views: 74159
author picture
(About the author)
 
     Here it is fellow programmers: ASP Chat Version 3.0. I had promised when I first the skeleton ASP Chat Script i.e. Version 1.0, that I would try my hardest to clone the Yahoo! Chat Rooms. After a lot of hair-pulling and siting in tutorial sites, I fixed almost all the glitches and added a lot of new features. This new version allows users in a particular website to dynamically chat with other people accessing the same website. A good thing in this new version is that you can create you own Chat room, if you don't like the ones that are listed. Included as a bonus is a logging ability, which logs any activity in any chat room using seperate text files. It also displays the IP address of the user connected to the Chat Room. If you like it please vote for it! :)

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
' for :ASP Chat Version 3.0
'**************************************
If you use this script, please give me credit in some way.
Original Author: Kaustav Acharya
First Script Date of Completion: 11/24/00
Second Script Date of Completion for Version 2.0: 12/10/00
Third Script Date of Compeltion for Version 3.0: 04/12/01
Email Address: excalibur@palebluedot.net
Homepage URL: TBA
I would personally like to thank Gino for some good suggestions for this script:
Email Address: gdefelice@hotmail.com
Homepage URL: http://home.earthlink.net/~gdefelice/
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 6 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
4/14/2001 5:16:03 PMNuno Sousa

Just awesome!!! 5 stars from me!
(If this comment was disrespectful, please report it.)

 
4/15/2001 5:21:17 PMMary Coles

Just superb! I never would imagine a 16 year old to code such a complex script! You truly are one of kind!
(If this comment was disrespectful, please report it.)

 
7/5/2001 8:39:55 PMAdam

Good Job amn, keepup with good job.
(If this comment was disrespectful, please report it.)

 
7/7/2001 2:06:38 PMahmed hasanat

excelent job ..5 stars from me..
but still there is some errors ocurs beside when one of users log out it stay active as is he is still chatting..
(If this comment was disrespectful, please report it.)

 
7/20/2001 1:56:05 AMjc

i found this error
Microsoft VBScript compilation error '800a03f3'

Expected '='

//global.asa, line 10

set title
---------^

how to solve it?
(If this comment was disrespectful, please report it.)

 
7/21/2001 3:12:24 AMKaustav Acharya

Hi JC!

Hmm, I never saw that error before. Is there something you did different when you copied the files into your desired directory? I'm happy to help you in any way that I can, but I'm kinda lost as to what you did for it to cause it. It may be something simple, or something difficult to fix, but I'm here to help ya out! Drop me a line if you haven't fixed it already with other's help. I'll be happy to lend a hand.
(If this comment was disrespectful, please report it.)

 
7/25/2001 11:37:53 AMSean McCormack

Do you have any ideas on the scalability of the application? ie would it support 100 simultaneous users, etc? Thanks!
(If this comment was disrespectful, please report it.)

 
7/25/2001 10:02:09 PMKaustav Acharya

Hey Sean,

Well as far as I know, you can have as many people as you want logged in simultaneously. If you come across a problem having large users let me know.
(If this comment was disrespectful, please report it.)

 
7/28/2001 5:10:50 AMEllen

Excellent! I'm truly impressed. I'm having the same problem about logging off from the chat room. Is this a known glitch? Or is it just me?
(If this comment was disrespectful, please report it.)

 
7/28/2001 5:23:04 PMKaustav Acharya

Hey Ellen!

The problem you're facing is one that has been brought to my attention numerous times. If the user does not hit the log off button and closes the chat window, the user stays online until the server is rebooted. Theoretically the server should time the user out after 15-20 min, at least so I thought. Many people have been trying to fix it along with me, but unfortunately so far no luck :(. Sorry Ellen, I wish I could help you more, but I'm working on a solution and will let people know ASAP! Thanks for your interest in my code!

Kaustav
(If this comment was disrespectful, please report it.)

 
8/1/2001 10:29:22 PMKaustav Acharya

Ladies and gentlemen:

I am as of now currently working on resolving the main bug of the script. If any one has any suggestions as to how to get started, please don't hesistate to contact me! Thanks so much!
(If this comment was disrespectful, please report it.)

 
8/10/2001 5:10:57 AMAmit

Dude From One Indian To another...Great Son...Son ? Nah i am 17 so pal would be better...i am also into professional designing,ecom and stuff and have achieived great success...welll i would go through. son you sure have the ability i guess...which part of india are u in...firstly i hope ur in india right now...well i have quite a few plans to earn some bucks on the net...
If I have a person like u we can make some great things to happen
Mail Me Son Mail Me
amit_tgo@yahoo.com
Regards
One Lover Of India
(If this comment was disrespectful, please report it.)

 
8/10/2001 11:26:02 PMKaustav

Hey Amit!

Well what I'm about to tell you might dissapoint you a bit. I'm actually currently residing in California and attend high school here. I unfortunately don't live in India, sorry for the bad news! :( But thanks for your interest in my code!! :)
(If this comment was disrespectful, please report it.)

 
9/30/2001 11:26:40 PMDeryck H

Well, this is a great script, I'll hand you that. Just one annoying and abundant amongst coders problem :: No logout. It will only log the user out if they chose to. Please fix. Otherwise, great code! 5 stars!
(If this comment was disrespectful, please report it.)

 
10/11/2001 6:45:03 AMguest

very good 5 stars
(If this comment was disrespectful, please report it.)

 
10/11/2001 6:48:47 AMpadma

very good
(If this comment was disrespectful, please report it.)

 
10/12/2001 12:07:50 PMElliot

I wanted to know if there is a way to delete a chat room. Where is it being stored. There is no database or anything. Otherwise I think its a great job
(If this comment was disrespectful, please report it.)

 
10/19/2001 4:29:32 AMjmchugh

Any progress on the logout problem? Love the program!
(If this comment was disrespectful, please report it.)

 
11/8/2001 8:31:34 AMKobus

Quite a improvement from the first code you posted (CDONTS Mailer).
To respond to Kings--I have seen this logout "bug" in more than one ASP chat. Don't know about the layout...
(If this comment was disrespectful, please report it.)

 
11/26/2001 10:59:19 AMjs

I am having the same error that jc had the:

Microsoft VBScript
compilation error '800a03f3'


Expected '='

//global.asa, line
10

set title
---------^

I didn't know if you or jc have found a way to fix it. All I did was download the code and make what changes needed. I can't load my site with this error.


(If this comment was disrespectful, please report it.)

 
12/10/2001 6:36:46 AMJohn Robinson

I found this code very useful and would like to thank the author for sharing it. I have adapted some code to enable old chat sessions and users to be cleared off. Also, I have adapted the date stamp to allow for time differences (ie +0500 for EST to GMT). If anyone would find this useful, I can post the code here (if possible) or e-mail it out.
(If this comment was disrespectful, please report it.)

 
12/15/2001 10:19:30 PMMarc

Very good, 5 stars
(If this comment was disrespectful, please report it.)

 
12/16/2001 7:20:30 PMignis

Simply comment out the line that the error is being caused in.
(If this comment was disrespectful, please report it.)

 
1/11/2002 6:07:46 PMCho

I have found some solution to the user logout problem. Kaustav Acharya please contact me at gessed@hotmail.com
(If this comment was disrespectful, please report it.)

 
3/1/2002 1:08:05 PMSteve

I used the following in msg.asp inside the body tag.... onUnload="return exitChat()"

Seems to work for me... no ghostly users...

Thanks for a great application.
(If this comment was disrespectful, please report it.)

 
3/18/2002 8:56:15 PMmr burrito

I absolutely love the code that you have written, when I have seen it in action, but unfortunately, I keep getting multiple errors! I copy it -exactly- to a folder on my server, called chat.
When I go to default.asp, everything is fine. I have created a room, but when I type in a name, and try to connect to it, I get the following error:
Microsoft VBScript runtime error '800a0046'

Permission denied

/burritoslair/chat/chat.asp, line 49

This occurs in the main frame of the chat room. The bottom and right hand frame are fine. Do you have any idea what the problem could be?

Thank you very much!
(If this comment was disrespectful, please report it.)

 
3/20/2002 12:37:36 PMJohn

Hy ladies and gentlemen
Ï love that code Kaustav, great Job!
and a spetial thanks to stephe!
(body tag.... onUnload=
(If this comment was disrespectful, please report it.)

 
3/20/2002 12:42:13 PMJohn

Hello
Great Job!
by the way Stephens Code works exelent!onUnload="return
exitChat()"
thank you
but there is still a problem, how du i kick ghostli user from the chat, that have been in before i put the new code in?
thanks John from Switzerland...
(If this comment was disrespectful, please report it.)

 
4/15/2002 9:12:28 PMJoeCool

This is for the Error people are getting SET TITLE =
_____________________^
It simply a comment which didnt get the "'" put in before it so just put a single ' in before that line in global.asa.
(If this comment was disrespectful, please report it.)

 
4/19/2002 9:54:59 AMMargarida

It's simple but it's good.
Altought you must think on a solution do erase the old messages! Because if you enter the chat for the first time, you ble albe to see all the posteds mgs.

Give me some feedback to e-mail.
Thank's.
(If this comment was disrespectful, please report it.)

 
4/24/2002 3:25:55 AMKurt

The code works great. The only problem is
that when I logout the exit.asp page
creates the following error:
Error Type:
Microsoft VBScript runtime (0x800A003E)
Input past end of file
/2046/s9808132/asp/chat/exit.asp, line 67

I have had a look at the code but do not
know what is wrong, could you please help

Thanks
Kurt
(If this comment was disrespectful, please report it.)

 
5/22/2002 3:35:22 AMandi

im making one my own, and i'm using session variable to store the names of chatters, can this really be done? how? I'm new to ASP.
(If this comment was disrespectful, please report it.)

 
7/17/2002 8:08:51 AMAlwin Menezes

Hey hi Kaustav .. Ur Code is excellent .. in fact its near perfection .. Man u r Genius and for a while i thought u have a Pentium 4 processor in ur brain .. its simply tooo good ... Keep it Up .. i started ASP day before yesterday .. so i hope ur code will be the best Tutorial
(If this comment was disrespectful, please report it.)

 
7/17/2002 8:12:30 AMAlwin

hey hi ...
i when i press F5 i get my nick name twice in the chatters list .. and so if i press it 5 times , i will have my nick 5 times ... is this a bug ...
Alwin
(If this comment was disrespectful, please report it.)

 
11/6/2002 4:40:47 AM

can you tell me a free host that support ASP,FLASH,"global.asa" file,virtual directory so that I can use your chat.
(If this comment was disrespectful, please report it.)

 
12/13/2002 3:09:43 AM

Excellent! Superb!
(If this comment was disrespectful, please report it.)

 
1/27/2003 10:25:15 AMTom Walsh

Microsoft VBScript runtime error '800a005b'

Object variable not set: 'Users'

/chat/exit.asp, line 8


Microsoft VBScript runtime error '800a005b'

Object variable not set: 'Users'

/chat/exit.asp, line 34


Microsoft VBScript runtime error '800a003e'

Input past end of file

/chat/exit.asp, line 66
(If this comment was disrespectful, please report it.)

 
1/28/2003 8:09:58 AM

hi Kaustav, this is e very good aspchat.. i've been looking long time for something like this!

I've noticed though that an error occurs quite often. When i just leave the chat open without chatting the following error appears:

Object variable not set: 'Users'

/aspchat/users.asp, line 35

Any idea why this is happening?

Thanks alot!
(If this comment was disrespectful, please report it.)

 
1/28/2003 11:43:25 AM

Sorry about this, but the above problem appears not only when you are not chatting. I think iam facing tha same problem as Tom Walsh.

thx again

(If this comment was disrespectful, please report it.)

 
2/24/2003 7:30:47 PMnfs

Just want to say nice work.

Do you want to make money with your programming skills ? Software Objects provide following services : 1)Sell your software. 2)Post a software to be done. 3)Bid on the software projects. 4)Buy software Thanks and have a nice day. Software Objects http://www.thesoftwareobjects.com
(If this comment was disrespectful, please report it.)

 
5/28/2003 8:58:36 AM

I too am seeing the following...

Microsoft VBScript compilation error '800a03f3'
Expected '='
//global.asa, line 10
set title
---------^

I've uploaded all unzipped files directly to a clean IP on a Windows 2000 server. See http://64.27.112.77/

Please advise...

Tony
(If this comment was disrespectful, please report it.)

 
6/15/2003 4:29:32 PM

The errors reported by Mr. Burrito and others appear to be caused by the lack of permission to upload to the chat folder on your server. If you share a server, you may have to get the host to give
(If this comment was disrespectful, please report it.)

 
6/15/2003 4:32:23 PM

As I was saying, get the host to change the permissions to give "everyone" "full" permissions. This solved the problem for me. The error I'm talking about looks like this:

Microsoft VBScript
runtime error '800a0046'

Permission
denied

/[your directory]/chat/chat.asp,
line 49


Also occurs on exit.asp

Great program, thanks.

(If this comment was disrespectful, please report it.)

 
8/27/2003 11:35:23 AM

I just downloaded this code of urs. I will workout and get back to u........
keep smiling :))

(If this comment was disrespectful, please report it.)

 
9/10/2003 12:26:54 PM

Hello.
I wanted to know if there is a way to
delete a chat room. Where is it being
stored. There is no database or
anything. Otherwise I think its a
great job

Thank you.
a.elgai@lycos.com
(If this comment was disrespectful, please report it.)

 
1/7/2004 5:11:51 AM

its just great man. 7 stars from my side
(If this comment was disrespectful, please report it.)

 
1/7/2004 11:24:45 AMAQS

8stars
(If this comment was disrespectful, please report it.)

 
3/19/2004 1:39:32 PM

Excellent chat room. I am installing it on my page with the ghost fix tips in the comments.
(If this comment was disrespectful, please report it.)

 
4/9/2004 7:11:30 AM

Great code!
Can somebody tell me how to erase the data in a chatroom, how to delete chatrooms, and where are they stored?

Thanks,

Kurt
(If this comment was disrespectful, please report it.)

 
9/3/2004 8:01:40 AM

its excellent but there is error so solve it and make extra ordinry!!!!!!!
(If this comment was disrespectful, please report it.)

 
9/4/2004 2:33:53 AM

I have recieved an enquiry for developing a voice chat server.Iam a web designer.Would you be interested in taking it up.Where are you located.Expecting your early reply

Regards

(If this comment was disrespectful, please report it.)

 
4/28/2005 10:12:11 AM

I have a question... when i send or receive a private message, it say that i received... but how do i see it? because it doest show it...
(If this comment was disrespectful, please report it.)

 
9/30/2005 6:29:01 AMAnoop

I have a question ...

If i want to denay a user from the chat, how is it possible. It is very use full for me .. Please report it.

(If this comment was disrespectful, please report it.)

 
1/19/2006 10:05:09 PMEVM

A-M-A-Z-I-N-G Code. Learnt A LOT from it. Thanks man for sharing it :)
(If this comment was disrespectful, please report it.)

 
11/16/2006 1:51:43 PMKeyman

Wow! This is a great application. However, like some of the past posters, I wanted to know how to "clear" a room when it is empty, and how to prevent multiple listings of a username when F5 is pressed. Excellent Code!!
(If this comment was disrespectful, please report it.)

 
5/29/2007 7:22:52 PMdolev

********** 10 stars from me
thanks for the code
greate job
is there a limit of online users ?
did some one try is on by websites with a lot of users 300-400 online ?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.