Chat Messages In A .txt File

Started on the old forum in October 2007 · view the original in the archive · old links redirect here

8 replies · 791 views · started 19 years ago · 1 min read

6 participants
kiss Senior · 294 posts #1

Greetings friends,i need a litle help....i want to add messages from chatroom(chat.php) of lavalair script in a .txt file. Example chatroom message: hi sir how are you?(this mesage goes to chat.txt)

After that if it posible to be resolved by someone i would like to add in chat.php "next|prev" option to see all messages that you lost External image (may be gone) Thank you.

www.inbuzunar.mobi -Your mobile portal pocket

Lordx Senior · 303 posts #2

Greetings friends,i need a litle help....i want to add messages from chatroom(chat.php) of lavalair script in a .txt file. Example chatroom message: hi sir how are you?(this mesage goes to chat.txt)

After that if it posible to be resolved by someone i would like to add in chat.php "next|prev" option to see all messages that you lost External image (may be gone) Thank you.

Nice ,must insert a function to white al the text from the chatrom in a text file that you wont Kiss ?

subzero Super moderator Fellow · 3,954 posts #3

adding new task is easy kiss

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

WhiteWarrior Principal · 1,419 posts #5

you want all the chat messages to go into a file? or you want it where users can select messages instead or typing them selfs?..

kiss Senior · 294 posts #6

you want all the chat messages to go into a file? or you want it where users can select messages instead or typing them selfs?..

yes all messages from chat.php room to copied in that .txt file

www.inbuzunar.mobi -Your mobile portal pocket

WhiteWarrior Principal · 1,419 posts #7

add something like this to the chat.php

{
        $ubr = $tosay;
        $alli = "Username: " . $uid . "
Chatmessage: " . $ubr . "
----------
";
        if (trim($uid) != "")
        {
            $fname = "chatlog/" . $uid . ".txt";
            $out = fopen($fname, "a+");
            fwrite($out, $alli);
            fclose($out);
        }

might work i dont know but you gotta make a folder and call it chatlog and cmod it to 777 and all the chatmessahes should go in there and it will create a file its self... like kiss.txt and your chat messages will be in there

kiss Senior · 294 posts #8

add something like this to the chat.php

{
  $ubr = $tosay;
  $alli = "Username: " . $uid . "
Chatmessage: " . $ubr . "
----------
";
  if (trim($uid) != "")
  {
   $fname = "chatlog/" . $uid . ".txt";
   $out = fopen($fname, "a+");
   fwrite($out, $alli);
   fclose($out);
  }

might work i dont know but you gotta make a folder and call it chatlog and cmod it to 777 and all the chatmessahes should go in there and it will create a file its self... like kiss.txt and your chat messages will be in there

thanx mate i try it,this code it from login but dont work.I try a code from mobilichat too but not work.Anyone whit other idea?Thanx.

www.inbuzunar.mobi -Your mobile portal pocket

GumSlone Administrator Principal · 1,690 posts #9

thanx mate i try it,this code it from login but dont work.I try a code from mobilichat too but not work.Anyone whit other idea?Thanx.

have you correctly chmoded the folder and files?

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close