seanybob Posted March 16, 2007 Share Posted March 16, 2007 toggle: top/bottom display | bold Quote Link to comment Share on other sites More sharing options...
twist_killer Posted March 16, 2007 Share Posted March 16, 2007 Re: Ajax chat script would this work for lite? Quote Link to comment Share on other sites More sharing options...
seanybob Posted March 16, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
-Genocide- Posted March 16, 2007 Share Posted March 16, 2007 Re: Ajax chat script Very nice add bro....+karma for you Quote Link to comment Share on other sites More sharing options...
UCC Posted March 16, 2007 Share 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 Link to comment Share on other sites More sharing options...
seanybob Posted March 16, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
Jake Posted March 16, 2007 Share 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 Link to comment Share on other sites More sharing options...
seanybob Posted March 16, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
spellbyte ® Posted March 26, 2007 Share Posted March 26, 2007 Re: Ajax chat script how would i go about automatically inserting the players username before each message was posted Quote Link to comment Share on other sites More sharing options...
Vorlen Posted March 26, 2007 Share 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 Link to comment Share on other sites More sharing options...
Raptor_Jesus Posted March 26, 2007 Share 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 Link to comment Share on other sites More sharing options...
spellbyte ® Posted March 26, 2007 Share 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 Link to comment Share on other sites More sharing options...
CraigF Posted March 26, 2007 Share Posted March 26, 2007 Re: Ajax chat script awsome +1 Quote Link to comment Share on other sites More sharing options...
seanybob Posted April 8, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
N00b Posted April 8, 2007 Share Posted April 8, 2007 Re: Ajax chat script kl +1 for that Quote Link to comment Share on other sites More sharing options...
N00b Posted April 8, 2007 Share Posted April 8, 2007 Re: Ajax chat script the text u write goes every 1 sec lool Quote Link to comment Share on other sites More sharing options...
Danny Posted September 1, 2007 Share 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 Link to comment Share on other sites More sharing options...
-CrAzY- Posted September 1, 2007 Share 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 Link to comment Share on other sites More sharing options...
seanybob Posted September 1, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
-CrAzY- Posted September 1, 2007 Share Posted September 1, 2007 Re: [mccode] Ajax chat script thanks mate ;) Quote Link to comment Share on other sites More sharing options...
3XTR3M3 Posted September 2, 2007 Share Posted September 2, 2007 Re: [mccode] Ajax chat script the colour to light lol good mod tho Quote Link to comment Share on other sites More sharing options...
dementor Posted September 19, 2007 Share 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 Link to comment Share on other sites More sharing options...
HITMAN 17 Posted September 19, 2007 Share 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 Link to comment Share on other sites More sharing options...
mikey121_101 Posted September 21, 2007 Share 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 Link to comment Share on other sites More sharing options...
DementedMindz Posted November 8, 2007 Share 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 Link to comment Share on other sites More sharing options...
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.