Dayo Posted February 22, 2010 Posted February 22, 2010 [align=center]FREE AJAX CHAT[/align]Hi i found this old chat script on my computer, i found the simple ajax chat on the web at 1st it used an external file called chat.txt to add/read content ive edited it to run off mysql this is only a simple chat script that alows you to post and chat, i will be intergrating diffrent options as i update the mod. Things like chat ban, remove/edit post etc... Please note i did not make the chat nor the bbcode function they were scripts i have on my computer made by someone else ... they were free to distribute i will find links to original source if i can find them all i did was convert the chat to work with mccodes and a mysql backend insted of reading from a txt filehere is the download link ... http://www.cddesigns.org/mods.php?dl=ajchat Enjoy :D Quote
Jordan Palmer Posted February 22, 2010 Posted February 22, 2010 Sounds good. However can we see a demo/screenshot Quote
rulerofzu Posted February 23, 2010 Posted February 23, 2010 The only problem you have there is you have set it to num rows -26 on the receive.php so throws a boolean error when you first have the chat as there is no rows. But you can resolve that by checking the number of rows and setting the value to 0. You can also include global_func to call in any functions for special names and colors. Here it is quickly installed and styled to my game theme. Not going to use this one as I have an ajax chat installed already. Very simple and clean. You would really wanna remove the ability to use img bbcode from this though as it will just create havoc! Quote
Dayo Posted February 23, 2010 Author Posted February 23, 2010 v1.0.1 relesed boolean error fixed, delet posts added, 4 bb coides removed (code, size, img and quote) if you want any of these just uncomment them in receive.php Enjoy :D Quote
Dayo Posted February 24, 2010 Author Posted February 24, 2010 v1.0.2 Relesed Bug Fix - users now cant submit nothing Chat lines are deleted every 24 hours to reduce server space (editable see README file) Instalation instructions added, for the few who dont know how to :rolleyes: Enjoy :D Quote
SteveDave Posted March 4, 2010 Posted March 4, 2010 Didn't work at first, just had to change send.php: if ($_GET['msg']) { mysql_query("INSERT INTO chat(`name`, `msg`, `time`) VALUES ('".$name."', '".$text."', UNIX_TIMESTAMP())"); to if ($_GET['name']) { $db->query("INSERT INTO chat VALUES ('','".$name."', '".$text."', UNIX_TIMESTAMP())"); and add a new field to the chat table called time, VARCHAR255. Other than that, nice basic little chat, with a little editing/new features it could be a nicer little chat. Thanks for sharing :) Quote
Dayo Posted March 5, 2010 Author Posted March 5, 2010 try You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. as this checks if the user has typed anything, otherwise they can hit the send button loads of times and spam your DB Quote
rulerofzu Posted March 5, 2010 Posted March 5, 2010 From the msg ive just received asking for help on this. Dayo you havnt updated your create table sql to include the time field. Quote
bladewolf2010 Posted August 22, 2010 Posted August 22, 2010 [mysql] CREATE TABLE IF NOT EXISTS `chat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `msg` text NOT NULL, `time` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;[/mysql] gives #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key Quote
Djkanna Posted August 22, 2010 Posted August 22, 2010 Remove auto_increment from the time column. Quote
neoaliaselmo Posted September 25, 2010 Posted September 25, 2010 ... it doesn`t shows the timestamp in the chat.php it shows the username and the message only... any fix to this ? thx, Quote
bineye Posted January 5, 2011 Posted January 5, 2011 does anyone have this file? it says from the link its been moved and i can't access it. thanks :) Quote
Dayo Posted January 5, 2011 Author Posted January 5, 2011 The link is working ... but its not. Once on the 404 error page look at the reasons and click the alternative link to the old site ;) Quote
bineye Posted January 5, 2011 Posted January 5, 2011 The link is working ... but its not. Once on the 404 error page look at the reasons and click the alternative link to the old site ;) ya i did, but once i agree to fair usage thing, it directs me to the new link (404 page) again. :S Quote
Djkanna Posted January 5, 2011 Posted January 5, 2011 The link is working ... but its not. Once on the 404 error page look at the reasons and click the alternative link to the old site ;) ya i did, but once i agree to fair usage thing, it directs me to the new link (404 page) again. :S http://www.cddesigns.org/OLD/mods/ajchat.zip ^ Direct link but read his terms first. Quote
bineye Posted January 5, 2011 Posted January 5, 2011 Thanks! I did read the terms, and agreed before I was redirected. Thanks! Quote
Dayo Posted January 5, 2011 Author Posted January 5, 2011 yea i had to edit the link so it pointed to the old site not new, should be working now Quote
Mystical Posted July 2, 2011 Posted July 2, 2011 [align=center]FREE AJAX CHAT[/align]Hi i found this old chat script on my computer, i found the simple ajax chat on the web at 1st it used an external file called chat.txt to add/read content ive edited it to run off mysql this is only a simple chat script that alows you to post and chat, i will be intergrating diffrent options as i update the mod. Things like chat ban, remove/edit post etc... Please note i did not make the chat nor the bbcode function they were scripts i have on my computer made by someone else ... they were free to distribute i will find links to original source if i can find them all i did was convert the chat to work with mccodes and a mysql backend insted of reading from a txt filehere is the download link ... http://www.cddesigns.org/mods.php?dl=ajchat Enjoy :D I know this is an old post so don't kill me........ Nice chat but for some reason it does not show the time stamp. How do I make it so oh mccodes gurus? Quote
Dayo Posted July 2, 2011 Author Posted July 2, 2011 where did you want it to display the timestamp? Quote
Mystical Posted July 5, 2011 Posted July 5, 2011 (edited) where did you want it to display the timestamp? Next to the message that is submitted. Another problem I cant figure out. I keep getting this on any user but id1 without doing anything. http://i51.tinypic.com/v7xe1u.png "Nope that dont work" The code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited July 5, 2011 by Mystical Quote
bineye Posted July 5, 2011 Posted July 5, 2011 I keep getting this on any user but id1 without doing anything. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. If it's working on ID 1 and no other, then is it not working correctly? Unless you mean you have other staff accounts where it doesn't work? Quote
Mystical Posted July 5, 2011 Posted July 5, 2011 If it's working on ID 1 and no other, then is it not working correctly? Unless you mean you have other staff accounts where it doesn't work? No I mean that if you are any user except id1 this shows and should not unless someone is trying to delete messages who is not the admin. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.