I have just made a checkin into the contributions repo of an ajax enabled chat module. This module depends on the buddylist module to allow users to chat in real time with their online buddies on a Drupal powered website. The module includes the drupal.js created by thox for enabling Ajax in Drupal. We started off on this module to explore how we can utilize rich internet technologies like AJAX to create something useful within Drupal. The module is shaping up nicely but it can do with more robustness. This is definitely alpha quality code. Download the module from http://cvs.drupal.org/viewcvs/drupal/contributions/modules/chat/
A screenshot is available at http://labs.tekritisoftware.com/drupalchat/ajaxchat.GIF
Feedback and further contributions are most welcome and appreciated!
-Gaurav
http://www.tekritisoftware.com
http://www.newdelhitimes.org
Comments
That's very nice,
That's very nice, Gaurav!
Hoping it will be available in module form sometime soon for us CVS-challenged to try out;-)
Ram
You can still use it
Ram, you can still use it. Just download the chat folder from the URL I provided. The 'INSTALL' file has instruction on installing the module.
Thanks,
Gaurav
http://www.tekritisoftware.com
http://www.newdelhitimes.org
Thanks for the
Thanks for the clarification, Gaurav. That gives me the courage to try it.
Ram
innovation ...
Thanks,use of ajax for this mudole is very good idea ,
-----
www.PersiaData.com
I will sponsor this module
I like this module and don't mind to sponsor its updates and whatever it takes to get it ready.
Who ever is ready to finish this work let me know.
i am ready to update it.
I had written this module while working in Tekriti, I am ready to update it.
$200 to fix chat module
Hi
There is an ajax chat module at (http://drupal.org/node/27689?time=1153499782) it has a few bugs (it uses login instead of sessions) and i really do need this chat so users can chat with there buddies i feel this module is really needed by drupal. I don't know much php but i want to pay who ever can port this thing to 4.7 and make it work.
This is pretty urgent
Thanks
Merge with chatbox
Chatbox module is a old, non-Ajaxed chat... it would be useful to the end user if there is only one chatbox module which incorporates the best features from both the old one and yours.
--
If you have a problem, please search before posting a question.
Thats a good idea
I hadn't looked at chatbox.module before. I am not sure if its meant for 1-1 chat or not but having a single module for chatting might make sense.
-Gaurav
http://www.tekritisoftware.com
http://www.newdelhitimes.org
+1 for group chat
I know this is an old topic, but I'll add my +1 for making this module support group chat. Chatbox does group chat but isn't Ajax slick.
I'll help with suggestions, interface, however I can...
--D
--
http://dave.notik.com
Merging with Chatbox
I am the maintainer for the Chatbox project. I would like to see all the chat functions in one module. Currently Chatbox only supports group chat, but an invitation feature has been created that allows users to send invitations to logged-in users. This could be extended to allow one-on-one chatting.
Chatrooms could be enabled by adding message filtering to Chatbox.
Combining these projects would make it much easier to get the best features of both.
This is a very cool module.
This is a very cool module. Thanks!
I have a few comment and suggestions, if you're interested:
I'd offer to help out with the code, but Javascript terrifies me.
demolicious | leafish
Contact module instead of private message
My vote is that it would be "offline, send message" and link to their user contact form if enabled through the profile. This seems to be taking over for private message and it is much easier and more common to go to email then having to come on the site for messages.
Awesome work
Thank you. I've been looking for something like this. The old chatbox module is nice but this really brings things into the 21st century. I really look forward to seeing this develop.
BTW: Here's another vote for forced chatting.
Thanks for the feedback
I am glad that there is interest in this module. We certainly plan to make it more robust and can also use some community help.
I understand that the current approach to determine who is online doesn't work 100% of the time. Need to work more on that though it wont be right to create a parallel mechanism to determine who is online. Drupal already tracks that to some extent.
Force chat for admins is a good idea. It does feel a little intrusive but it might be good in scenarios where site admin needs to inform currently online users of something ("site going down for maintenance in 15 mins" etc)
A note of caution here -- This module automatically pings the server periodically to determine if any new message have arrived or if any new users have come online. So for a website with hundereds of users online at the same time, this can be add significant load to the website. A setting for throttling the ping back time can be useful I guess.
Please keep the feedback coming. I will post updates here as we add more to this module.
-Gaurav
http://www.tekritisoftware.com
http://www.newdelhitimes.org
Create a project
Just a note about best practices for new projects -- it's best to actually create a project. A sandbox is fine for "test" code that may or may not work, but a module that is actually in development should have a project created.
Once you create a project (or as Steven suggests, take over chatbox), you can track feature requests and changes, rather than doing everything in one big forum thread. It tends to be more useful for tracking feature requests, and also allows other people to submit patches easily.
If you would like to take over chatbox, please sign on to the developer's mailing list (http://lists.drupal.org) and discuss it there. You might also find the handbook page on maintaining a project to be useful.
I'd like to encourage you to create a project too
This is something that I think many people are looking for.
IE javascript problem
I am eager to use this module on my site. However the popup IM window does not function well in IE. In IE I am seeing a javascript error. On firefox, there is no problem so far.
Please Explain the problem
Hi velanker
Thanks for your feedback. Can you plaese explain the problem , as we have already tested it in IE .
Amit Tyagi
Sr. software Engg.
Tekriti Software
www.tekritisoftware.com
Problem with IE
Hi Amit !!!
It was working fine untill i add functionality to send offliners too. I did dat by adding event:
o.n.C.l.i.c.k="chat_room2('.$buddy->uid.');"
(dots r to avoide filter for javascript ;-) )
in img displayed for offline user in user_block.
It was working fine in Firefox but in IE, although it sends offliners successfully but then afterwards the site got hanged.
Hope u ll find d solution soon.I m looking forwards to use it ASAP.
Any news on the next version
Any news on the next version of this module?
demolicious | leafish
Next version
Group chat and chat rooms are planned for the next version. I don't have an ETA right now but we are definitely planning more upgrades.
Thanks,
http://www.newdelhitimes.org
http://www.tekritisoftware.com
Another cool example
Haven't tried out this module yet, but maybe this AJAX based chat will give you some ideas for future versions:
http://www.unwieldy.net/ajaxim/
Very nice piece of work
The only thing it lacks is group chat.
That's very cool. It's a
That's very cool. It's a different approach to this chat module, but imaging that IM "app" running as a Drupal block, populating its list from buddies or online users. Mmmmmm.
demolicious | leafish
chat.sql
This is a neat development, but adding chat.sql I got this error message:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=37' at line 25
Cheers!
Same error
I am getting the same error. Can someone help us out with this? Thanks!
MySQL versions?
Could be an issue between different versions of MySQL? Try dropping the 'CHARSET=latin1' part in the SQL query.
---
paul byrne
paul.leafish.co.uk | www.leafish.co.uk
---
Paul Byrne
pfaocle.co.uk | CTI digital
fix
I deleted all instances of:
ENGINE=MyISAM DEFAULT CHARSET=latin1
And it's seems to work ok.
fix 2
I changed chat.module line number 190 to:
Previously it required nice urls on, which I can't use. Ugly urls always work.
fix 3
I fixed the Online smiley problem. Once a user had logged on, he showed up as online forever in the buddy list. It seems to work better now........
I changed a handful of lines to access the sessions table instead of user_login. I left the old lines in as comments and marked them with wrp ******.
You can get the fixed file here.
ftp://cyberbillp.dyndns.org/chat.module
ajaxIM has committed this fix
ajaxIM has committed this fix (SQL errors), at least to their 5.x release.
Following is the URL to the bug report I opened when I found this thread.
http://drupal.org/node/155576
chat.sql
when I goto
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/chat/
and navigate to the drupal 5 - 7 branch
I copy the files and put them in a folder in my modules directory
EXCEPT for
chat.sql
which returns with
An Exception Has Occurred
Python Traceback
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/viewvc/viewvc.py", line 3665, in main request.run_viewvc()
File "/usr/lib64/python2.4/site-packages/viewvc/viewvc.py", line 388, in run_view vcself.view_func(self)
File "/usr/lib64/python2.4/site-packages/viewvc/viewvc.py", line 1882, in view_log options)
File "/usr/lib64/python2.4/site-packages/viewvc/vclib/ccvs/__init__.py", line 96, in itemlog sink.default_branch, rev)
File "/usr/lib64/python2.4/site-packages/viewvc/vclib/bincvs/__init__.py", line 816, in _file_log raise vclib.Error('Invalid tag or revision number "%s"' % filter)
Error: Invalid tag or revision number "DRUPAL-5"
does anyone else have the chat.sql text file they are willing to share?
email it to holler@yourboyvic.com
thnks
ps this community rules!
i'm interested too
My plan is developing a drupal chat module that supports webcams using own signed activex component written in vb, or by rewriteing a simple gnu chatcam program like like this : http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2944...
great idea
that would be a HUGE draw!
___
Warren County, Virginia News & Networking: http://warrencountyreport.com
What about using Flash for
What about using Flash for the webcam bit? its got built in features to interface with a host machines webcam.
--
Ixis (UK) providing Drupal consultancy and Drupal theme design.
--
Ixis (UK): Drupal support, Drupal hosting.
Multi Site
I installed it and was so excited .. until I realized that it might not be accounting for the table prefix in a multi site configuration? Am I right .. I get this error ..
Table 'mydb.sessions' doesn't exist query: SELECT * from sessions where uid=2 in /home/user/public_html/includes/database.mysql.inc on line 66.
Should be looking in a prefix_sessions table .... for me anyway :)
Drupal 4.6.5, Mysql
IE7 bug??
Hi,
A very neat feature, though eats up quite a lot of bandwidth.
I found that the chat windows didn't open properly in IE7 beta2. The log shows
user/modules/chat/send.gif not found.
user/modules/chat/chat_window.js not found.
user/modules/chat/chat.css not found.
user/modules/chat/drupal.js not found.
the user/ should not have been there and it happens only with IE7 (haven't tested in earlier versions of IE, but works fine in firefox, opera)
Thanx
Dee
example
Hi, Is there anywhere i can see this in action? Did i miss it?
HumanDesignOnline.com
A chat for 1-1 communication
Dear Mr.
I 'd like to see a chat module that works from inside the contact tab into the profile. Just a "simple" 1-1 chat that integer a new form under the contact form and indicate if the user is online.
a) the user is online, and accept conversation, a chat is possible.
b) the user is indicated offline, accept email, chat is impossible but a message is possible.
No duplicate of fonction or area.
The buddylist restriction could always applied. But definitively, I'd like that Drupal interface will be (and sometimes stay) as simple and efficient as possible.
Otherwise for large group chat module, phpfreechat seems to be a good (better?) candidate. However your chat has a great potential usage.
Sincerely
does this module work with fancy theme?
i have followed intructions and installed it. i have friends module activated, but all the friend see in the module's bock are their inactive names - non clickable. how exactky it does work.
yes It works
Yes , you can check it at
http://improveindia.org
I will sponsor this module
I like this module and don't mind to sponsor its updates and whatever it takes to get it ready.
Who ever is ready to finish this work let me know.
Patches to work under 4.7
The following are patches to buddylist.js and chat.module, to make this work under 4.7.
Please note, I installed my copy under sites/default/modules/chat - if you use a different directory, you will need
to change lines 47, 49 and 62 of buddylist.js, to reflect the different path to online.gif and online2.gif.
Patch to chat.module:
Patch to buddylist.js:
it seems to work, but
it seems to work, but format of the block is broken. when page reloads the chat (my buddy list) block seems just ok, but for only a second, and them borders of the block suddenly disappear and i only can see list of my buddies without smiles.
no it doesn't work in 4.7
no, unfortunately, it doesn't work in 4.7. the smiles are inactive even two buddies are online. and then there is described in my previous post proble - the block borders disappear together with all the smiles after some while. I think that has some link to line 71 of the buddylist.js:
kkt=setTimeout("get_friends()",7157);
please look up in the problem.
/sites/default/modules/
if in buddylist.js to change all the "/sites/default/modules/" to just "/modules/" then smiles do not disappear. Of course! Why one should put "sites/default" into path? Probably it needs to be put only for multiple sites.
Anyway, this only solves a problem of disapperaing smiles. the borders of the block still get lost after a while and smiles are never active, thus we can not click on them to open chat windows. so the modeuls still doesn't function.
it works
The solution is in line 47 , 49 and 62 go change the path to the images to something like this src="/modules/chat/online.gif">
no it does not
as i posted above, it only makes smiles to be seen. however chat itself doesn't work.
it works
amazing, but it started to work. maybe after i fixed all the encoding settings in MySQL. The matter I have russian language website. So now, I have this module working, but still there are some problems unsolved.
1. Block borders keep disappearing. You can see the list of your buddies, but in the block without borders.
2. It only shows messages in latin. I have fixed MySQL encoding and MySQL actually shows cyrillic messages, but receiving user never sees anything else but messages in only latin.
I would appreaciate if these problems would be addressed.
problem again
namemeet, i was happy for it was working. but then only i noticed that new users can not login, nor logged users can logout. in either cases when you press a button to send it shows blank page.
as i tried to explain before, the borders of the block always disappear after a while, only names and smiles remain. so i believe there is a problem with format and that problem also causes the blank page when logging in or out.
i need this module very much, but it would be great if someone could help me to solve its problems. namely why the block's borders disappear? could anyone else replicate this problem?
use spread firefox theme
works for me
Project page
I have created a project page for this module.
Any Ideas
Hi All,
Anyone has an Idea how to put a link to open this ajax chat window in user profile page? For example if user A viewing user B's profile page, theres a link saying send message or whatever. So that once the user A clicks on the link chat window must open for user A to chat with user B.
This chat doesn't work for
This chat doesn't work for me...
I get the following error:
user warning: Table 'animenord_com.user_login' doesn't exist query: SELECT * FROM user_login WHERE uid=1 AND online=1 in C:\wamp\www\includes\database.mysql.inc on line 121.
I use a prefix (drupal_), so it tries to connect to the wrong/non existing table, but what to I have to change? I've looked at the modul-file, but when I add the prefix there I only get even more errors...
chat.install problem
I got the same error, but have no prefix. There was a previous post that suggested the use of sessions as opposed to the user_login? Anyways, it appears that the chat.install file is never executed (at least for me). After manually inserting the tables it seemed to work just fine. Here's the SQL query for all those in the same boat:
Using PHPMyAdmin
How to I set up the necessary database if I use PhpMyAdmin?
AjaxIM
Drupal AjaxIM project: http://drupal.org/project/ajaxim
New version of the module was created. It uses Ruby server as daemon and supports more then 100 online users.
Aleksey Khodakovskiy
thanks
thanks gaurav
thaks a lot.
This module for 5.1 exist or not ?
Hi,
Has any one updated this module for Drupal 5.1?
Updated the module for the version 5.1 and remove old bugs
Hi All,
I have updated the Drupal module for 5.1.
I have also removed the Bug user name containing '-' bug and also the block problem.
These days I am bit busy , once I get the the time I will release the path code here.
Do it fast
Please do it fast, some one is waiting for you......... ;)
www.zenxcoder.com
Regarding the chat module
Hey
A few months ago I asked about how far you had come with the updated drupal module. Is it getting near an release? I need it badly.
Best Regards
Stephan
Downloading chat module
How to download the chat module? The link http://cvs.drupal.org/viewcvs/drupal/contributions/modules/chat/ shows up two links i.e. parent directory and readme.txt . Please help me in downloading this module. Thanx
Drupal 5.x chat module
Does this module for Drupal 5.x?
@Searchmax: See post #3 here
@Searchmax:
See post #3 here - http://drupal.org/node/116994 - I just ported it as part of another project.
Thankyou
Thanks a lot mate...! I have not yet integrated the module. I will post you back after I integrate the module.
Buddy Chat
I have integrated this module. But I cant see anything happening out of this module. I have copied and pasted in the modules folder and i cant see any image beside the buddies' names. Can you please help me out?
Is not it better to integrate drupal with jabber
Please see #7 on this thread:
http://drupal.org/node/116994#comment-1146533
link not working
is this link not working??
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/chat/
i need a chat module can you suggest for a chat module to download..
Thanks in advance..
not able to download
whenever i click on the download site.the directory structure is shown.I am not able to download...please tell me how to download this module
Is this module does not work for drupal 6.17.
Hi gauravb,
Just now i download this module. But I cant get the full output. Because i use drupal 6.17 version. In this version the buddylist module cant work. Then, how can i enable the buddylist module in my site.
Is there any possibilities to use the AJAX enable chat module in my site.
Please guide me on this issue.
Thanks & Regards
Sarav.....
Thanks & Regards
Sarav..