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/O Code)
 INTENT TO PROGRAM: Database-driven chat system
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

ppehrson
Starting Member

14 Posts

Posted - 16 December 2002 :  14:41:44  Show Profile
I am intending to write a workable chat system that will probably run as an iframe on a separate page (with forum layout, naturally).

My plan is to write the chat over four tables, namely:


[CHAT_CONFIG]
C_MAX_ROOMS
C_MAX_LINES

[CHAT_ROOMS]
C_ROOM_ID
C_MEMBER_ID_OWNER
C_NAME

[CHAT_ACTIVE]
C_MEMBER_ID
C_SINCE
C_ROOM_ID]

[CHAT_LINES] -- 500 rows max
C_LINES_ID
C_TIMESTAMP
C_LINE_MEMBER_ID
C_MESSAGE
C_ROOM_ID


The chat system will include code that will limit the amount of lines stored for a particular room (if multiple rooms will be implemented) to n amount set in the config table C_MAX_LINES.

Any opinions, requests, ideas?

-peter

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 16 December 2002 :  15:28:07  Show Profile
Yeah, the most important one (in my opinion).

Make a refresh free chat room - maybe something like this:

http://hifi-konsulenten.dk/chat/
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 16 December 2002 :  20:11:30  Show Profile
Password protection, IP/User banning, smilies, skins (more difficult)
Go to Top of Page

ppehrson
Starting Member

14 Posts

Posted - 16 December 2002 :  21:03:58  Show Profile
It is supposed to be implemented in the Forum Software so wouldn't that be unnecessary since a user will be banned from the entire forum and using his forum account to chat?

The smilies thing makes sense, but the chat will probably make use of the forum layout (for now) for ease of modding.

quote:
Originally posted by Carefree

Password protection, IP/User banning, smilies, skins (more difficult)

Go to Top of Page

ppehrson
Starting Member

14 Posts

Posted - 16 December 2002 :  21:06:02  Show Profile
That chat actually does refresh but it looks neat.

In order to do a nonrefreshing chat the server needs to push without being requested and I am not sure if ASP can do that.

quote:
Originally posted by wii

Yeah, the most important one (in my opinion).

Make a refresh free chat room - maybe something like this:

http://hifi-konsulenten.dk/chat/

Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 17 December 2002 :  04:02:34  Show Profile
You can use a neat javascript trick for this, so it almost looks refresh free. I can send you the code for the chat I posted, if you like.
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 17 December 2002 :  04:03:49  Show Profile
Server push is possible in ASP - see this: http://www.lundlay.com/products/chat/index.htm
Go to Top of Page

ppehrson
Starting Member

14 Posts

Posted - 17 December 2002 :  15:43:21  Show Profile
Are you *sure* this is not pull? It looks and sounds a lot like the client keeps refreshing the chat window over and over every second.

BTW I'm Danish too, but let's keep this in English. :-)

FYI the site I need this chat for is http://forum.enya.com

quote:
Originally posted by wii

Server push is possible in ASP - see this: http://www.lundlay.com/products/chat/index.htm

Go to Top of Page

ppehrson
Starting Member

14 Posts

Posted - 17 December 2002 :  15:46:14  Show Profile
I'd like to see it.

quote:
Originally posted by wii

You can use a neat javascript trick for this, so it almost looks refresh free. I can send you the code for the chat I posted, if you like.

Go to Top of Page

ppehrson
Starting Member

14 Posts

Posted - 17 December 2002 :  15:58:17  Show Profile
According to Microsoft, ASP does not really support server push (in the word's actual meaning). It supports a pseudo-push method that still requires one to refresh a page once in a while.

http://support.microsoft.com/default.aspx?scid=KB;en-us;q250983

Whether or not it works in IE, I am not sure, it's not an intended feature. I believe the only REAL server push can be done with Perl or C.
Not that it's absolutely necessary to push - but it frees the need for a lot of re-sending. Perhaps it would be an idea to test the kb article code example.
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 18 December 2002 :  09:08:48  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
It might be easier to modify a current database-driven ASP chatroom than recreate one.
Go to Top of Page

ppehrson
Starting Member

14 Posts

Posted - 18 December 2002 :  17:34:54  Show Profile
I agree but have failed to find a suitable one with enough features. Do you know of any that are good and relatively well programmed?

quote:
Originally posted by alex042

It might be easier to modify a current database-driven ASP chatroom than recreate one.


Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 18 December 2002 :  18:06:52  Show Profile
This is the best ASP chat Iīve seen so far, it would be cool, if you could fix the bugs and complete the translation to english.

Demo: http://hifi-konsulenten.dk/chat
Download: http://hifi-konsulenten.dk/chat/chat.zip

The best Iīve used are Perl/CGI with server push, I guess itīs not possible on Windows servers.
Go to Top of Page

ppehrson
Starting Member

14 Posts

Posted - 18 December 2002 :  18:41:23  Show Profile
I'll take a look at it. It looks good, needs some spelling corrections and possibly tweaking, but certainly looks good. Is it your software?
quote:
Originally posted by wii

This is the best ASP chat Iīve seen so far, it would be cool, if you could fix the bugs and complete the translation to english.

Demo: http://hifi-konsulenten.dk/chat
Download: http://hifi-konsulenten.dk/chat/chat.zip

The best Iīve used are Perl/CGI with server push, I guess itīs not possible on Windows servers.

Go to Top of Page

Ameriscot
Starting Member

21 Posts

Posted - 18 December 2002 :  18:58:37  Show Profile
There is a database-drive chat called Liquid Chat. This has some (minor) problems, so I have stopped using it.

http://www.programmersresource.com/articles/aspchat.asp

Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 18 December 2002 :  19:03:48  Show Profile
Not mine...I got it a long time ago from a danish friend.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07