Author |
Topic |
ppehrson
Starting Member
14 Posts |
Posted - 16 December 2002 : 14:41:44
|
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
|
Yeah, the most important one (in my opinion).
Make a refresh free chat room - maybe something like this:
http://hifi-konsulenten.dk/chat/ |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 16 December 2002 : 20:11:30
|
Password protection, IP/User banning, smilies, skins (more difficult) |
|
|
ppehrson
Starting Member
14 Posts |
Posted - 16 December 2002 : 21:03:58
|
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)
|
|
|
ppehrson
Starting Member
14 Posts |
Posted - 16 December 2002 : 21:06:02
|
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/
|
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 17 December 2002 : 04:02:34
|
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. |
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
|
ppehrson
Starting Member
14 Posts |
Posted - 17 December 2002 : 15:43:21
|
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
|
|
|
ppehrson
Starting Member
14 Posts |
Posted - 17 December 2002 : 15:46:14
|
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.
|
|
|
ppehrson
Starting Member
14 Posts |
Posted - 17 December 2002 : 15:58:17
|
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. |
|
|
alex042
Average Member
USA
631 Posts |
Posted - 18 December 2002 : 09:08:48
|
It might be easier to modify a current database-driven ASP chatroom than recreate one.
|
|
|
ppehrson
Starting Member
14 Posts |
Posted - 18 December 2002 : 17:34:54
|
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.
|
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
|
ppehrson
Starting Member
14 Posts |
Posted - 18 December 2002 : 18:41:23
|
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.
|
|
|
Ameriscot
Starting Member
21 Posts |
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 18 December 2002 : 19:03:48
|
Not mine...I got it a long time ago from a danish friend. |
|
|
Topic |
|