twist_killer Posted March 16, 2007 Posted March 16, 2007 Re: Ajax chat script would this work for lite? Quote
seanybob Posted March 16, 2007 Author Posted March 16, 2007 Re: Ajax chat script it works for anything... Look at chat.php At the top, you will notice the only php segment in that page is the headers for v1.1 I imagine they are close to lite - if not, just copy/paste your LITE headers over it probably same for v2 as well Quote
-Genocide- Posted March 16, 2007 Posted March 16, 2007 Re: Ajax chat script Very nice add bro....+karma for you Quote
UCC Posted March 16, 2007 Posted March 16, 2007 Re: Ajax chat script Good stuff. Looking at your spam words, my users must play your games as well. LOL. What about protecting against HTML code? I had a problem with my chat system and I had to do a search and replace for all html tags. Quote
seanybob Posted March 16, 2007 Author Posted March 16, 2007 Re: Ajax chat script hm, haven't tried that... If this ajax operates the same way some of my other projects are, the only html it accepts is line breaks... but I should prolly check Quote
Jake Posted March 16, 2007 Posted March 16, 2007 Re: Ajax chat script it works for anything... Look at chat.php At the top, you will notice the only php segment in that page is the headers for v1.1 I imagine they are close to lite - if not, just copy/paste your LITE headers over it probably same for v2 as well Yeah, these are the Lite Headers. Does this update automatically when a new post is entered, or does the user have to refresh, or is it on like a 5 second cycle? Quote
seanybob Posted March 16, 2007 Author Posted March 16, 2007 Re: Ajax chat script its ajax m8... that means it's entered automatically. It works on the same principles gmail works on Quote
spellbyte ® Posted March 26, 2007 Posted March 26, 2007 Re: Ajax chat script how would i go about automatically inserting the players username before each message was posted Quote
Vorlen Posted March 26, 2007 Posted March 26, 2007 Re: Ajax chat script <input id="chatnick" type="text" size="9" maxlength="10" > change to <input id="chatnick" type="hidden" size="9" maxlength="10" value={$ir['username']}> That might do it. Quote
Raptor_Jesus Posted March 26, 2007 Posted March 26, 2007 Re: Ajax chat script Another nice seanybob addition. I think I'll use this one for those odd people that say they cant ever get into chat. :mrgreen: Quote
spellbyte ® Posted March 26, 2007 Posted March 26, 2007 Re: Ajax chat script ok this isn't working for me, i'm trying to add it so that it shows up in the header, so when i use that suggestion by vorlen it displays this {$ir["us | test any ideas? Quote
seanybob Posted April 8, 2007 Author Posted April 8, 2007 Re: Ajax chat script I'm curious if this worked for anyone in 2.0 I had it working in 1.1, and was curious to try it in 2.0 but it gets bugged up(yes i changed the header portion) *feels like a dork for screwing up his own code* Quote
N00b Posted April 8, 2007 Posted April 8, 2007 Re: Ajax chat script the text u write goes every 1 sec lool Quote
Danny Posted September 1, 2007 Posted September 1, 2007 Re: [mccode] Ajax chat script one of the simplest ajax chat scripts you will find. No sql, just a text file ;) First, create a php file (I called mine w.php) Remember what you called it. If you are not confident of your coding skills, just keep the names I have for all the files. w.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Notice at the top of that above file it has "chat.txt"? That is a reference to the chat text file (given below). You can use that name, or create your own. I will mention everywhere it needs to be changed if you decide to change it. Now... chat.txt You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now for chat.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Pretty simple stuff. Keep in mind while renaming files... if you wish to change a file (say, w.php) then search chat.php for the string "w.php", and everywhere that occurs change it to the new filename you created. I'm 80% sure you have to chmod the chat.txt file to 777, but I may be wrong. You can set the number of lines it saves in the text file in the w.php file (its a variable near the top) Lemme know how it works out for ya ;) Quote
-CrAzY- Posted September 1, 2007 Posted September 1, 2007 Re: [mccode] Ajax chat script is there anyway i can get it so the user dont have to type in their name because someone can pretend to be someone else Quote
seanybob Posted September 1, 2007 Author Posted September 1, 2007 Re: [mccode] Ajax chat script is there anyway i can get it so the user dont have to type in their name because someone can pretend to be someone else hm... It should be where they don't have to type it in already (if I remember correctly) Quote
-CrAzY- Posted September 1, 2007 Posted September 1, 2007 Re: [mccode] Ajax chat script thanks mate ;) Quote
3XTR3M3 Posted September 2, 2007 Posted September 2, 2007 Re: [mccode] Ajax chat script the colour to light lol good mod tho Quote
dementor Posted September 19, 2007 Posted September 19, 2007 Re: [mccode] Ajax chat script nice mode anyone got it so it shows who is actullay in chat on the side if so how :-D Quote
HITMAN 17 Posted September 19, 2007 Posted September 19, 2007 Re: [mccode] Ajax chat script Warning: main(globals.php) [function.main]: failed to open stream: No such file or directory in /home/downsy00/public_html/chat.php on line 3 Warning: main(globals.php) [function.main]: failed to open stream: No such file or directory in /home/downsy00/public_html/chat.php on line 3 Fatal error: main() [function.require]: Failed opening required 'globals.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/downsy00/public_html/chat.php on line 3 if some one wud does this for free pm me plz Quote
mikey121_101 Posted September 21, 2007 Posted September 21, 2007 Re: [mccode] Ajax chat script Warning: Division by zero in /home/mikey121/public_html/header.php on line 62 im a complete amature coder and would really apreciate some help plzzzz.. how can i stop this??? ??? ~mikey121_101 ps.sorry for spelling mistakes Quote
DementedMindz Posted November 8, 2007 Posted November 8, 2007 Re: [mccode] Ajax chat script Has anyone got this to work with 2.0? I see the chat room but when I go to put my text in there is no text in the message area but there is text being written to the text file... 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.