By Anonymous (not verified) on
hi all,
just uploaded a chatroom module to cvs.
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/chatroom/
project page is here:
http://drupal.org/project/chatroom
i'm looking for more review and feedback before releasing it as a "stable" module.
so, anyone interested in helping get an ajax powered chatroom module in Drupal, please test it, review the code, and let me know how to make it better.
cheers
justin
Comments
I know crap about AJAX and
I know crap about AJAX and Javascript in general, but I'm interested in something like this - I've been wanting to work on a role-playing game based chat, with dicerolls and NPCs (proxy users controlled by the game host, etc.). Anyway you can speed it up a bit? Compared to the demo of phpfreechat, my messages seem delayed by about 4 seconds, compared to 1 or 2 on their demo.
http://www.disobey.com/
http://www.gamegrene.com/
Developer of Drupal's GameAPI
http://www.disobey.com/
speedups
hi morbus,
did you lower the time between the updates? by default, its set to one update every two seconds.
if you edit a chatroom node, you should see a dropdown allowing you to set that to one second. it should get quicker - let me know how you go.
i'm about to embark on some further speed ups. i think i can avoid doing a full drupal bootstrap if i put some more code in the chatroom read message functions.
in general, i'd advise you to regularly update from cvs (or just run off the cvs), as i'll be working on it quite a lot over the coming weeks.
cheers
justin
Demo
Justin, can you throw up a demo somewhere possibly, or a screenshot? I'd be willing to test it out (i'm currently looking for something that will work with 4.7) but I'd like to see something before hand.
Writing "it will eat your computer" will probably scare a lot of people away, can you explain?
Cheers Justin!
re. Demo
hi joseph,
i've put up a demo on my home server here:
http://drupal.ceeceekay.net/?q=chatrooms
the main limiting factor here is my ADSL link, which is only 256kbps up.
i'll have a go at putting it up on my free webspace as well.
> Writing "it will eat your computer" will probably scare a lot of people away, can you explain?
well, i was just trying to get across that this is a work in progress, and that i'm concerned about it putting a fair load on mysql and apache.
though it may only eat your cat, i'm can't be sure at this stage.
i'm working on trying to avoid a full drupal bootstrap on the read operations that miss the cache, which should help, then i'll see if its feasible to do something similar for the write operations.
i'm keen to keep the content in the database, but it may prove prohibitively slow.
cheers
justin
Thanks
Thanks justin for the clarification. If it eat's my cat then we're all good ;-)
It doesn't seem to display
It doesn't seem to display utf8 characters (foreign language) correctly. Is there a quick fix? Thanks.
Something aint workin'
So I just started looking for a chat-based module for Drupal this morning and lo and behold I find your module - well done! :)
I got everything installed per the instructions... I create a chatroom, create an active chat and enter it... and just see a text box with a "send" button next to it which nothing happens when I click :( It's not displaying the actual chatbox or the box with who's online next to it. I tried your demo so I see that it CAN work - there's still hope yet :)
I'm using 4.7.2 btw and the CVS version of your module dated today (6/27/06)
Chatroom doesnt work properly for Drupal 4.7.4 above
Thank you Justin for the wondeful AJAX based Chatroom by topics
I should have reported this a long time ago...
I noticed that despite all tables properly created and tmp_cache folder properly created, the Chatroom cannot function to `Create a new chat' beyond Chatroom topic
Yes the node can be created but the chatroom topics cannot, but I checked my tables and they are there - they just are not displayed or what?
It worked fine with Drupal 4.7.2 and 4.7.3 as you can see
http://drupalmalaysia.org/PERKASA/?q=chatrooms/chat/2
But for Drupal 4.7.4 and 4.7.5
http://almuslimin.org/?q=chatroom1 - The chatroom topics are nowhere to be found