Chatty, a PHP chat script


Short introduction

Chatty :) is a very nice script that lets you create a simple but very-good looking chat in a few minutes. Distributed under GPL and written entirely in PHP (which means it will run better on PHP hosting, since it has been designed to ensure smooth work of PHP applications), it is highly customizable and fully open to modifications.
Now works properly also with non-western languages. It requires MySQL as a backend RDBMS.

You can download the chat program (with source code) directly here.

Features

Here is a short list of features of “Chatty :)” (as of version 1.0.4):

  • registration is needed to enter the chat;
  • multi-coloured chat: every user can have a different color;
  • list of connected users;
  • works with MySQL (www.mysql.org);
  • works with non-western languages;
  • can be easily localized
  • supports emoticons
  • fixed for possible cross-site scripting attacks.

Moreover, Chatty is currently used in many sites over the Internet. With its fully-customizable graphics, Chatty is one of the best GPL chat systems out there, and it probably is worth a try if you’re looking for a free and stable chat system for your activity or site.

Screenshot

Here you find a screenshot of “Chatty :)” in action:

Chatty screenshot
(click on the picture to enlarge)

License

This chat program is distributed under GPL version 2 (or above, at your choice) and you can do whatever you want with this source code, as long as you respect the GPL license.

Download

Click here to download the source code (about 22 KB)

TODO

There are many things to do:

  • make it more customizable (fonts, colors, …);
  • make it work with other DBMS than MySQL;
  • make it possible to have more chatrooms;
  • create an online interface for the administrator(s) of the chat;
  • create an online interface for the moderator(s) of the chat;
  • create one-to-one (private) chatrooms;
  • create a system to exchange messages with users not currently connected.

Bugs

Currently there is no known bug. If you find any, please contact me.
Thanks!

If you want further information about my projects, please visit my software section.

  1. #1 by Dean McComas on 16/03/2012 - 15:31

    Hi there I downloaded you chatty program and had everything working very quickly i have been going through it there is stuff I dont under stand yet but it works thats what matters anyway what I am interested in is making a old BBS style package I am using apache and dns dhcp and have everything set up so people can connect to my wap wireless access point router and type in chevak and have a menu I have been adding features like your chattty and very pleased with it could you contact me if you have any interest in something like this what I want is like the old BBS where you can chat upload download files post local and email messages maybe even play games and such I live in a village where a lot of the local kids dont have internet but are given these mac laptops and you can only stand outside so long next to school to try and get access and they limit that

  2. #2 by shahparz on 22/09/2012 - 14:43

    can we make chat rooms ?

  3. #3 by Sagar Gopale on 09/11/2012 - 11:53

    Hey I want to create a 1 admin to many users chat interface. I am new to the chat application concept. The admin should be able to reply to each user individually.

  4. #4 by temesghen mhreteab on 06/12/2012 - 16:08

    nice code i appreciate u & i want to create a website of video streaming with chating room among users who currently logson to my site ,i want those users to choose a catagory like sport ,love ,education etc and chat with whoever user in same catagory so would you pls help me to prepare those things with php and mysql

  5. #5 by deepika on 20/02/2013 - 12:16

    hi… i am tring ur code but i’m unable to either login or register… it shows me a database error .. i created everything according to the instructions given.. i’m unable to trace it.. can u please hellp me..when i try to register it shows the following errors:
    SELECT * FROM users WHERE username = ‘buddy’
    1049: Unknown database ‘a6194542_chatty’

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\example\pro\chat\chatty\index.php on line 100
    REPLACE INTO users (username, password, email, active, sent_on) VALUES (‘buddy’, ‘e338bc584bd1c7f87b8a5bf70a3cf80e’, ‘buddy@gmail.com’, ‘y’, DATE_ADD(NOW(), INTERVAL 0 HOUR))
    1049: Unknown database ‘a6194542_chatty’

  6. #6 by senthilkumar on 01/04/2013 - 08:17

    i want to create a website of video streaming with chating room among users who currently logson to my site ,i want those users to choose a catagory like sport ,love ,education etc and chat with whoever user in same catagory so would you pls help me to prepare those things with php and mysql

  7. #7 by rahber on 06/05/2014 - 13:32

    Greatt working in an awesome manner..very thankful to you.could you please enhance it with private message working?

  8. #8 by sohbet on 24/03/2016 - 00:12

    Thanks Script my web site running php5 version ?

  9. #9 by Deuniforme on 14/04/2016 - 10:38

    Hi there I downloaded you chatty program and had everything working very quickly i have been going through it there is stuff I dont under stand yet but it works thats what matters anyway what I am interested in is making a old BBS style package I am using apache and dns dhcp and have – See more at: http://olivo.net/2009/08/chatty/#sthash.suD7NncF.dpuf

  10. #10 by Jarod on 24/05/2016 - 10:44

    汉字显示变成乱码了,能解决吗?谢谢

(will not be published)


css.php