this code on chat.php page willshow users record on line..
you can edit how record you need changing >10, >20 ,etc.
and you can put on text wil appear on chat page the smiley you want
i done this for my XHTML chat version
if you have a WML version, maybe you have to put others \ on img src
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if (filesize('chatpaikalla.txt')>10){
$viesti="";
$tie = fopen('chat.txt', 'r+');
$ko=file_get_contents ('chat.txt');
$to='SYSTEM: RECORD NOW on CHAT!!:[ 10 ] USERS on line[img]smileys/record.gif[/img]
'. $ko;
fputs($tie, $to);
fclose($tie);}</div>
you can edit how record you need changing >10, >20 ,etc.
and you can put on text wil appear on chat page the smiley you want
i done this for my XHTML chat version
if you have a WML version, maybe you have to put others \ on img src
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if (filesize('chatpaikalla.txt')>10){
$viesti="";
$tie = fopen('chat.txt', 'r+');
$ko=file_get_contents ('chat.txt');
$to='SYSTEM: RECORD NOW on CHAT!!:[ 10 ] USERS on line[img]smileys/record.gif[/img]
'. $ko;
fputs($tie, $to);
fclose($tie);}</div>
sob code works but it creates a continue text on chat.php page..and it appears on every message sent by users..
Comment