Very Simple Chat Room
I would like to set up a very simple chat room for my daughter to use with her friends. I am reasonably competent in PHP and MySQL and was wondering if anybody could suggest a simple way to create a script.
The obvious way using what I alredy know would be to have the page auto refresh at regular intervals but I can think of several disadvantages of having the chat updated in this way. Is there an alternative way to update new message without refreshing the whole page?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Php Chat Room On Irc
Does anyone know of the name of the mirc server address, that i can connect to to join a php chatroom where people talk about php. i used to go in to one, but I have new computer and have lost the detail.
View Replies !
View Related
Chat Room Needed
I'm in a need of a chatroom for my website, and I'm assuming PHP would be the best option. There is one feature I must have: I need to be able to assign a user mod powers so any time he logs in, he'll have that power. I also would like for his text to show up in a different color than everyone else's.
View Replies !
View Related
Small Bug With My Chat Room.............................................. .....
Take a look at PHP chat with no login screen! Try changing your alias from guest, and click the SEND button, it works. But change it and then press ENTER and the input frame dissapears . This is the main parts of the message and alias text boxes, they are in different forms, how can I stop it going blank when people hit enter? ************************************************** ** <FORM NAME="MsgForm" ACTION="<?php echo($action); ?>" METHOD="POST" AUTOCOMPLETE="OFF" TARGET="<?php echo($target); ?>" onSubmit="return window.parent.validateSubmission();"> <INPUT TYPE="text" NAME="M" SIZE="45" taborder=1 tabindex=1 MAXLENGTH="299" VALUE="<?php echo(htmlspecialchars(stripslashes($ValM))); ?>"> <INPUT TYPE="hidden" NAME="sent" VALUE="0"> <INPUT TYPE="submit" NAME="sendForm" VALUE="<?php echo(L_OK); ?>"> </FORM> <form name="aliasform"> <INPUT TYPE="text" NAME="ZU" SIZE="5" MAXLENGTH="29" VALUE="<?php echo(htmlspecialchars(stripslashes(urlencode($U))) ); ?>"> </form> ************************************************** ** Can I detect if they hit Enter while in the alias text box, then set focus somewhere? Its like it submits a blank form and goes nowhere. is there a setting I can use on <form name="aliasform"> to stop that?
View Replies !
View Related
Members To Chat Room
i have got a website and I want members to log in to the chatroom when when they are loged in to the website without having to enter a nick name I know it is something like <param name="username" value="<?php print("$sql_array->member[ID]"); ?>"> <param name="password" value="<?php print("$sql_array->member[Password]"); ?>">
View Replies !
View Related
Chat Room For Paid Members
I have a dating site that I want to put a chat room on. I just want the paying members to be able to have access to it. I already have the chat room installed on the site. Whats the best way to go about doing this? I understand that you have to use cookies but I have no clue how to put that in the coding. Is there a reference where I can look it up?
View Replies !
View Related
Simple Room Booking App?
I'm lazily looking for a simple app that will let us match up teachers, classes, and instructors, preferably with a php/mysql infrastructure so that it's accessible via the web. If there is a single good repository of free scripts that would be useful as well.
View Replies !
View Related
Chat Function That Allows Users To Seek Help Via Live Chat
I found that some of these pre-made help desks also have a live chat function that allows users to seek help via live chat, similar to aim. (Once you log into the help desk at php live, click on the "launch request monitor window" to get a better understanding of what I am talking about.) Unfortunately, I showed this to my boss and he liked that idea. Why unfortunate? I have no idea where to start on this one! I have done several web apps with php and mysql, so I would say I have a fair grasp and understanding, but this one has me stumped. Has anyone done something similar to this or have an idea in which direction that I need to be going?
View Replies !
View Related
No Room To Explain
Right now when I use this script <? ' echo $row['name']; echo '- ' ?><? ' echo $row['category']; echo '- ' ?>TITLE OF MY SITE I get this when there is no 'name' or 'category' --TITLE OF SITE I want it so that - only shows if there is indead a 'name' or 'category'.
View Replies !
View Related
Check Room Availability System
I am super new to php/mysql etc. i am just trying to do a room availability system. I have 5 rooms in 5 different category. i like to know how to design a DB and write a php that takes two different dates[checkin date / checkout date] and verifies the DB for availble rooms.
View Replies !
View Related
Checking Room Availability For Hotel Booking System
I was wondering if anyone could help me with a problem I'm having. I've been using Dreamweaver to create a hotel booking system for a friend of mine, using MySQL (version 4.0.21) and PHP 5. The bit I'm struggling with is checking the Room Availability based on dates that are typed into a textfield and then returning a list of the available rooms on the next page. The three tables involved in this function are: CREATE TABLE `room` ( Room_Number tinyint(1) UNSIGNED NOT NULL, Price_Double_per_Night decimal(5,2) NOT NULL, Price_Twin_per_Night decimal(5,2) NOT NULL, Price_Single_per_Night decimal(5,2) NOT NULL, Price_Double_per_Week decimal(5,2) NOT NULL, Price_Twin_per_Week decimal(5,2) NOT NULL, Price_Single_per_Week decimal(5,2) NOT NULL, PRIMARY KEY(`Room_Number`), ) TYPE=InnoDB ROW_FORMAT=fixed; CREATE TABLE `room_booking_link_entity` ( Room_Number tinyint(1) UNSIGNED NOT NULL, Room_Booking_ID int(11) NOT NULL, Single_Double_Twin enum('Single','Double','Twin') NOT NULL, PRIMARY KEY(`Room_Number`, `Room_Booking_ID`), INDEX `Room_Number`(`Room_Number`), INDEX `Room_Booking_ID`(`Room_Booking_ID`), FOREIGN KEY `Reference_14`(`Room_Number`) REFERENCES `room`(`Room_Number`) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY `Reference_85`(`Room_Booking_ID`) REFERENCES `room_booking`(`Room_Booking_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) TYPE=InnoDB ROW_FORMAT=fixed; CREATE TABLE `room_booking` ( Room_Booking_ID int(11) NOT NULL AUTO_INCREMENT, Customer_ID int(11) NOT NULL, Bill_ID int(11) NOT NULL, Date_of_Arrival date NOT NULL, Date_of_Departure date NOT NULL, Number_of_Nights tinyint(3) NOT NULL, Date_Booking_Made date, Status_of_Booking enum('Booked','Arrived','Departed') NOT NULL, Total_Cost decimal(7,2) NOT NULL, PRIMARY KEY(`Room_Booking_ID`), INDEX `Room_Booking_ID`(`Room_Booking_ID`), INDEX `Customer_ID`(`Customer_ID`), INDEX `Bill_ID`(`Bill_ID`), INDEX `Date_of_Arrival`(`Date_of_Arrival`), INDEX `Date_of_Departure`(`Date_of_Departure`), INDEX `Status_of_Booking`(`Status_of_Booking`), FOREIGN KEY `Reference_03`(`Customer_ID`) REFERENCES `customer`(`Customer_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY `Reference_14`(`Bill_ID`) REFERENCES `bill`(`Bill_ID`) ON DELETE NO ACTION ON UPDATE NO ACTION ) TYPE=InnoDB ROW_FORMAT=fixed; I've just discovered that MySQL 4.0.21 does not support subqueries. I'm basically stuck with this version of MySQL. I think I've got round the subquery problem by using a multi query option as follows: 1.Create a temptable that will store all of the room numbers that have bookings for the particular dates requested as follows: SELECT DISTINCT a.room_number INTO temptable FROM booking_link_entity AS a INNER JOIN room_booking AS b WHERE b.departure_date >$_POST[‘ARRIVAL'] And b.arrival_date < $_POST[‘DEPART']; 2.Left join this with the room table and pull out rows with no match SELECT a.room_number, b.room_number FROM room AS a LEFT JOIN temptable AS b ON a.room_number=b.room_number WHERE b.room_number IS NULL; 3.Delete temp table I've tried doing this in Dreamweaver, but to no avail. I have a feeling it is too complex for Dreamweaver. My php knowledge is very basic and was wondering if anyone could give me some pointers as how to do this in PHP?.
View Replies !
View Related
Php Chat
i have made a chat script that uses META REFRESHES to update from a flat txt file. this is very inefficient for both server and user. the problem is i can't think of any other way to do it. one way i can think of is to open sockets so that a server can look at the file and see if it has been changed. of course, i have no idea where to start, so instead i built a really bad script that was worse on the client (i.e. 100% CPU usage) but not so bad on the server. any ideas? PHP Code:
View Replies !
View Related
Chat
I'm about to write a small chat application. To keep the flow of new messages coming, two things are possible. The first is to use a hidden frame, and to reload it every couple of seconds. The second would be to keep open the connection in the hidden frame (so the page is never realy loaded). I would prever the latter, but don't know how one keeps open the connection. What happens if the user closes the browser?
View Replies !
View Related
Simple Script For Doing A Simple Photo Album And Journal?
I'm looking to quickly get a photo album online. Very simple, thumbnails, a few pages, maybe a description, but hopefully a small script that's easy to edit and work into my existing site. I know about hot scripts, etc. but I was wondering if any one could recommend one? Secondly, I also want to setup a journal. It's not really a "blog" although I guess blog software may work. But it isn't going to be a message board or anything like that. Just a place to put out random bits of news. Once again, same premise, I'm trying to find the most simple script possible that could basically traverse a directory of simple textfiles and produce a list. I know all about Blosxom and stuff like that, but I'd like a script that just did the above and didn't overtake my site like PHPNuke or something like that. I'll probably roll my own, but I thought I'd check first.
View Replies !
View Related
Realtime Chat
i want to code a realtime chat. the server side is done (php), what i need now is the best way to refresh the page/frame containing the messages periodically (t < 500 ms). i think i could do this with a little bit of javascript. does anybody have some good code (normal mouse cursor in browser etc), or is there a better way?
View Replies !
View Related
PHP Stream (chat)
how the PHP stream chats works? There is lot of "normal" chat where the page will be updated regurarly but I am looking for php based chat where there is no update every 5 seconds...
View Replies !
View Related
Chat With You Friends
<?php // Get the names and values for vars sent by index.lib.php3 if (isset($HTTP_GET_VARS)) { while(list($name,$value) = each($HTTP_GET_VARS)) { $$name = $value; }; }; // Get the names and values for post vars if (isset($HTTP_POST_VARS)) { while(list($name,$value) = each($HTTP_POST_VARS)) { $$name = $value; }; }; // Fix some security issues if ((empty($From) || trim($From) == '') || (empty($U) || trim($U) == '') || (empty($R) || trim($R) == '') || (empty($Ver) || empty($L) || empty($N)) || (!isset($T) || !isset($D) || !isset($O) || !isset($ST) || !isset($NT)) || !is_dir('./localization/'.$L)) { exit(); } require("./config/config.lib.php3"); require("./localization/".$L."/localized.chat.php3"); require("./lib/release.lib.php3"); require("./lib/database/".C_DB_TYPE.".lib.php3"); require("./lib/clean.lib.php3"); header("Content-Type: text/html; charset=${Charset}"); // avoid server configuration for magic quotes set_magic_quotes_runtime(0); $U = urldecode($U); $R = urldecode($R); // Translate to html special characters, and entities if message was sent with a latin 1 charset $Latin1 = ($Charset == "iso-8859-1"); function special_char($str,$lang) { return addslashes($lang ? htmlentities(stripslashes($str)) : htmlspecialchars(stripslashes($str))); }; $DbLink = new DB; // ** Updates user info in connected users tables and fix some security issues ** $DbLink->query("SELECT room, status, ip FROM ".C_USR_TBL." WHERE username = '$U' LIMIT 1"); if ($DbLink->num_rows() != 0) { list($room, $status, $knownIp) = $DbLink->next_record(); $DbLink->clean_results(); $kicked = 0; // Security issue include("./lib/get_IP.lib.php3"); if ($knownIp != $IP) { $kicked = 5; }
View Replies !
View Related
Chat Scrolling
I have need to know how when a person posts a message to a chat room window how to get the chat room window (iframe) to scroll when that message is posted instead of the person having to scroll the window themselves to see the newly posted messages. Any ideas?
View Replies !
View Related
A Chat Script
I've made an attempt at a chat script, but it isn't performing exactly how I want. Yes, I am a relative newbie to PHP. I've spent hours on Hot Scripts looking for something, but nothing I found meets what I need. Code:
View Replies !
View Related
Chat Script Php
I need a chat script that works like what they have on <snip>. You have to enter your credit card info before you can chat then it tells you how long you chatted and how much you will be billed for. Anyone know of where I can find a script like this?
View Replies !
View Related
Creating A Chat Using Php
im making this sort of system now for our school group and i was thinking that putting a chat on it would be great. but i would prefer if id be the one to make it instead of using source codes... but the thing is i have no idea where to begin with... can u guys give me an idea on this or reference to how i can make this?
View Replies !
View Related
Php Chat Scripts
i want the php chat scripts.i make some searches but find a big one, i need a simple one.i need public chat system. the admin will type the message and press send button,the users who are logged at that time should see the admin message and give reply to him.all users can chat with admin.the messages will be stored in database.no private rooms.just chat messages only.
View Replies !
View Related
Chat Invite
i have a dating website with chat invite for members that are online so if 2 members are online i can invite the other one to have a private chat the thing is they will not get any popups saying they have a chat invite they have to keep checking a page to see if anyone invite them to chat do i need asp for this to work or can it be done with out asp?
View Replies !
View Related
Chat Application
iam trying to build a chat application using php/mysql for my web-site.can anybody knows any tutorials or sites for building a chat application. the application should be like this.when a sales person of my company login to my site then the online service image should be displayed,and when he logout it should disappear.when sales person is online, customers can chat with him by sending instant messages like that...
View Replies !
View Related
Live Chat
That I can do, however, in order to run live when a member request to chat with another member, a row is inserted into the database pointing to there member id They then get notified that someone wants to chat and hey preston the chat has started My problem and question is, in order for this to work live, obviously im going to have to secretly query that table every minute for instance to check for chat requests So, for every member online, thats 1 query a minute to check for a chat link in the database What if.. there was 600 people online? Code:
View Replies !
View Related
Web Cam Chat Software
I am looking for idea's as far as Online Web Cam Chatting software. probably about 100-200 webcam's connecting to the site, user's logging in an viewing and chatting. time limits on the chatting. I think you can all figure out what this is for, so if anyones got any good ideas or the build it before I would be willing to pay for them. Cause I need it in a timely manner and am out of my area here.
View Replies !
View Related
Chat Whispering
I'm working on making a chatroom, using php and mysql. I'm new to php and mysql, so this might be a stupid question, but how do I make a chat whispering? is it just if ($username == $whisperto) { echo "Hi, I'm whispering to you"; } else { echo " "; } I know I'm doing somehting wrong, just not sure what it is. And also, what I need to create also for the chat whispering, is if you want to whisper to someone, you click on their name, and it will put in a text box who you are whispering to. I'm not sure what its called, so I'm not sure how to do that. Like they have there, you click on one of the smilies, and it puts the little code into the typing area.
View Replies !
View Related
Messaging In My Chat
If anyone here would know how to redo the private messaging so that instead of showing up among the main screen messages and just not visible to other users. I would like to make them show up under all the messages on the main screen.
View Replies !
View Related
Mini Chat
I have found this nice tutorial on building a minichat module. I manage to add the entries into the database, but somehow my "function printMessages()" doesn't want to work. I can't find anything in my phpinfo that refers that it's not activated. Can anyone see why it wouldn't print? Code:
View Replies !
View Related
Building A Chat
'm trying to build a small chat in PHP, but i'm having some slight problems and need some help. first off, I want to use emoticons, and I want to use the str replace code to make it work, but it doesn't... $smile = str_replace(":)", '<img src="c001.gif">', "$msg"; $msg being the $_POST of a text field (I use a txt file with fwrite to build the chat) can anyone tell me what i'm doing wrong ? also, I want to be able to see how many users are connected to the page, without using MySQL. Can anyone guide me on how I can do this? I already have each user login and it creates a $_SESSION['username'] so i'm guessing I can make it work..
View Replies !
View Related
AJAX Chat
I came along an AJAX chat script, that auto-refreshes, and works great. The problem that i have, is that it does not use a database for the messages, it uses a file. I took on the task of re-writing it to use a database instead, and it will no longer refresh. The information is sent to the database, and it displays it correctly, but does not refresh. Here is the add_line function: Code:
View Replies !
View Related
Chat And Instant Mesenger
Can we build chat and instant messenger using php and mySQL ? it is like yahoo messenger that will view all the user (of course they have to register first).. whether they are on line or not and can keep the offline messages.
View Replies !
View Related
Chat-like Non-buffered Output
I would to like to output html data like in a HTML chat - that means line by line. As soon as I send a line to the client it shall appear directly (continuously), not when the whole document is completed. I need that for some sort of progress indication. So how can I force the browser to output contents before the document has been completely transmitted - like in a HTML chat? Do I have to send some special HTTP header(s)?
View Replies !
View Related
Chat And Instant Message
1. Does anyone know of any good chat software? I was looking for something that looks similar to digichat chatrooms and allows setup of multiple rooms. 2. How would I implement instant messaging on my website. You have probably never been on blackplanet or collegeclub before. But I want users to be able to IM each other on the website when they log-in to the site. It is built-in. I was hoping to use something plug-in based, maybe something similar to AIM Express, so they don't have to download the client when they log on from different computers. I think MSN Gaming zone used to have a built-in IM before MS started making everything a part of passport.
View Replies !
View Related
|