Jump to content

Archived

This topic is now archived and is closed to further replies.

elementz

How To Make Live Chat Between 2 Users?

Recommended Posts

How would I go about making a live chat between 2 registered users. I am making an RPG site and wanted to know how to allow two users to request a chat with each other and then to actually being able to chat. I want them to be able to press close image and the connection closes or when the browser is closed, any ideas on how to do this?

Share this post


Link to post
Share on other sites
I suppose if you wanted you could run an IRC channel and send a command to a botserv to join a unique channel and then direct the users to this channel with a key to enter using a java applet.. The only way to do it with PHP would be to store everything in a database and get the page to auto reload therefore fetching all text from the database. This will be slow and means the page would be reloaded every few seconds so not the best way. Can't see any fast way with PHP as it's clientside and gets parsed as soon as the page is loaded.

Regards
Liam

Share this post


Link to post
Share on other sites
Just a quick google and found some solutions (free) right out there...but this one in particular looked decent, although I cannot see if there are any moderator functions available...

[url=http://socket7.net/lace/]http://socket7.net/lace/[/url]

or if you want to really learn how to get started implementing check this out...nothing fancy here..

[url=http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=9]http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=9[/url]

Share this post


Link to post
Share on other sites
While the website is down at the molment,
http://www.phpfreechat.net/
is what i have used for chatting. The latest beta supports channels, private messaging, admins, ext. All the features you could want. The soure would be a bit dificult to modify to a novice, but its generally well-written.

Share this post


Link to post
Share on other sites
I was experimenting with this and I managed to create a chat program using php sockets and a java applet / javascript on the client side. The java applet was hidden and the page where the chat took place was a standard html page. Unfortunately, the page is not currently active or I would provide a link to demonstrate. If anyone wants more details I might be able to help.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.