Search the Community
Showing results for tags 'chat'.
-
Say I want to allow users to chat with each other either through text or video on my site, what would be the best way to go on about doing that? I know basic text chat system can be created with PHP/Mysql/Ajax. What about video chat? Or is there a chat plugin/service out there that I can use to implement in my site? Note that I am looking for something can allow thousands of registered users to chat with each other at the same time.
-
Hello, I've been using Open-Source Social Network a while now and i've tried to edit this chat but i can't find a way to put in a auto-delete after the message has been seen by the receiver. I have tried asking about it in the official Open-Source Social Network website forum with no luck. Was wondering if anyone here has any idea. I deleted the image folder and sound folder to reduce the size. And i've been trying to work it out in actions/markread.php OssnChat.zip Any ideas would be greatly appreciated.
- 3 replies
-
- auto-delete
- chat
-
(and 1 more)
Tagged with:
-
I've been trying to figure out how chat apps work all afternoon to do dynamic data in HTML loading. Can someone please tell me where I'm going wrong for the code flow in this script: <script> function submitchat{ if (form1.uname.value=='' || form1.msg.value==''){ alert("fill out whole form"); return; } var uname=form1.uname.value; var msg=form1.msg.value; var xmlhttp= new XMLHttpRequest(); xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState==4 && xmlhttp.status=200){ document.getElementById('chatlogs').innerHTML=xmlhttp.responseText; alert("message sent"); } xmlhttp.open('GET', '?page=3.2&uname='+uname+'&msg='+msg, true); xmlhttp.send(); } </script> <form name="form1"> enter your chat name<input type="text" name="uname"> message: <textarea name="msg"></textarea> <br> <div id="chatlogs">Loading Chat Logs...</div> <a href="#" onclick="">send</a> </form> <?php $uname = $_REQUEST['uname']; $msg = $_REQUEST['msg']; if ($msg!='' && $uname!=''){ $chat=" INSERT INTO chat ( `uname` , `msg` ) VALUES ( '$uname', '$msg' )"; $result = mysql_query($chat, $con) or die (sql_death($chat)); }
- 5 replies
-
- chat
- javascript
-
(and 2 more)
Tagged with:
-
I currently am looking for a php programmer to either revamp a current freeware chat / CMS program I am presently using or for someone with the ability to write what we need. We are a fiction writing / roleplaying community and the current chat / CMS program we use (freeware) is out of date with php and javascript updates. Needlessly to say it is failing in various areas and things have begun to stop working. We have very specific needs and have a budget with which to work and would like to get this work done as soon as possible. Willing to pay a portion up front. You can contact meon AIM @ para.siempre or on gtalk okatykatbonita@gmail.com or at that same e-mail. SERIOUS INQUIRES ONLY PLZ! Thank you for your time!! Kate
-
I am trying to code for a chat that I can charge either pay per minute or a voucher system. Sort of like livezilla or I been looking at Ajax any help on what would be best for a psychic chat site
-
I been working on a chat for a website got most of it done and happy with it, until I monitored it on chrome through the network in task manager and saw that the more text is shown, the of a load it takes. Here is what I have. submitchat.php <? print "<BODY SCROLL='NO' bgcolor='#404040' text='black'>"; print "<body style='overflow: hidden'>"; print "<form action='chatbox.php' method='post' id='banana'>"; print " <input type='text' name='message' id='message' size='100'></textarea>"; print "<input type='submit' name='submit' value='Send'></form>"; ?> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#banana").validate({ debug: false, submitHandler: function(form) { // do other stuff for a valid form $.post('chatcode.php', $("#banana").serialize(), function(data) { $('#log').load('chatlog.php'); $('#message').val(''); }); } }); }); </script> chatlog.php <? include ("connect.php"); ?> <head> <body bgcolor="black"> </head> <? $delete = "DELETE FROM `messages` WHERE `timestamp` < (NOW() - INTERVAL 2 HOUR)"; $deletenow = $db->exec($delete); $getmsg = "SELECT * from messages ORDER BY TIMESTAMP DESC"; $getmsg2 = $db->query($getmsg); while ($getmsg3 = $getmsg2->fetch(PDO::FETCH_ASSOC)) { { $find = "/me"; if ($getmsg3['function'] == $find) { $string1 = "<font color='tan'><i><b>$getmsg3[user] </b><font color='tan'>$getmsg3[message]</font></i>"; } else { $string1 = "<font color='$getmsg3[chatcolor]'><b>$getmsg3[user]: </b></font><font color='white'>$getmsg3[message]</font>"; } echo "$string1<br>"; } } ?> main.php <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <head> <div id="main"> </head> <script type="text/javascript"> var auto_refresh; function start() { auto_refresh = setInterval(fresh, 10000); } function end() { auto_refresh = clearInterval(auto_refresh); } function fresh() { $('#log').load('chatlog.php'); } </script> <script type="text/javascript"> idleTimer = null; idleState = true; idleWait = 1200000; (function ($) { $(document).ready(function () { $('*').bind('mousemove keydown scroll', function () { clearTimeout(idleTimer); if (idleState == true) { $("#log").load('chatlog.php'); start(); } idleState = false; idleTimer = setTimeout(function () { // Idle Event $("#log").load('chatstop.php'); end(); idleState = true; }, idleWait); }); $("body").trigger("mousemove"); }); }) (jQuery) </script> <style> #topframe { width: 100%; position: absolute; left: 50%; top: 0%; ; color: #DDDAD7; height: 60%; overflow:auto; } #bottomframe { width: 100%; position: absolute; left: 50%; top: 60%; ; color: #DDDAD7; height: 40%; overflow:auto; } iframe {width: 100%; border: none; overflow-y: auto; overflow-x: hidden;} </style> <div id="topframe"> <iframe id="top" name="top" src="/home.php" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"></iframe> </div> <div id="bottomframe"> <style> body { background-color: #404040; background-image:url('rockblack.jpg'); } #log { color: white; position: absolute; width: 95%; height: 80%; left: 50%; ; top: 15%; padding:5px 5px; background: black; border-radius: 20px; overflow:auto; -moz-border-radius: 20px; /* Firefox 3.6 and earlier */ } </style> <? print "<body text='white' scrolling='1'>"; ?> <div id="chatbox"> <? include ("submitchat.php"); ?> </div> <div id="log"> <? include ("chatlog.php"); ?> </div> </div> </div> Basically, main has submitchat.php and chatlog.php and refreshes #log div with chatlog.php every 10 seconds. Works as it is shown. As I said, as the messages in the database get bigger, so does the chatlog.php file. Is there a way to lessen that load without having to do the whole chat in a different approach?
-
Hi folks! Im trying to implement an Ajax chat client to my website, and im having issues with the implementation of the files., This is a third party code, the link is here... http://ajaxim.com/ Now, i have my database set up etc... but when i implement this code into my pages, the chat box doesnt show, and if i ftp the ajaxim.php file in standalone as it were, i get this error, even though the files are there. Fatal error: require_once() [function.require]: Failed opening required '../ajaxim/libraries/dbMySQL.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/guyrich/public_html/ajaxim/ajaxim.php on line 30 The snippet of code im using to implement the chat system in my <head> is <script type="text/javascript" src="ajaxim/js/im.load.js"></script> This is bugging me big time, and by the sounds of it, others are having this issue also. Im not excellent with coding, im a learner. Your help is most appreciated
-
I have a chat script that I have installed and its like : http://omegle.com/ but for some reason Im not able to get it to work 100%, it just doesnt seem to pick up any other chatter on the site to chat with. There are no visible errors at all which makes it hard to find out why the chat feature doesnt seem to work. I wouldnt mind sharing this script with anyone, if you can just get it to work and let me know what the problem is in return. I dont think there is a big issue to fix, as its a small script, I have probably just missed something. If your interested in having this script and making it work then sharing what the problem was please let me know. Many Thanks