Help Messages

Started on the old forum in February 2009 · view the original in the archive · old links redirect here

12 replies · 852 views · started 17 years ago · 1 min read

5 participants
Leviathan73 Senior · 260 posts #1

Hi friends!! chat messages continue to disappear after 50 seconds, I tried to solve this problem, we can not. file core.php

///////////////////////////////////////Add to chat

function addtochat($uid, $rid)

{
  $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
if($bago[0]==0){
$msg = "*mat Enter the Room";
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'");
}

  $timeto = 86400;

  $timenw = time();

  $timeout = $timenw - $timeto;

  //$exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");

  $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");

  if(!$res)
  if($counter<15)

  {
    
    mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");

  }

}

and file chat.php

addtochat($uid, $rid);
        $timeto = 86400;
        $timenw = time();
        $timeout = $timenw-$timeto;
        $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
        $rname = $rooms[1];
        $nick = getnick_sid($sid);
   
       
      if ($action=="")
      {
     $check = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_chonline WHERE uid='".$uid."', rid='".$rid."'"));
        if($check[0]!=$uid){
      
      mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'");
}
addtochat($uid, $rid);
      echo "<head>";
      echo "<title>$rname</title>";
      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_popups WHERE unread='1' AND touid='".$uid."'"));
      if ($unreadpopup[0]<1)
      {
      echo "<meta http-equiv=\"refresh\" content=\"20; url=chat.php?time=";
      echo "".date("dmHis")."";
      echo "&sid=$sid&rid=$rid&rpw=$rpw\">";

thanks to those who solves this problem 😉

subzero Super moderator Fellow · 3,954 posts #2

lavalair lmao

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... _______…

looony Developer · 95 posts #4

it would help if u put the right files up here these file dont even have the delete chat message query

External image (may be gone)

if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }

Leviathan73 Senior · 260 posts #5

I have this -- Table structure for table ibwf_chat

CREATE TABLE ibwf_chat ( id int(99) NOT NULL auto_increment, chatter int(100) NOT NULL default '0', who int(100) NOT NULL default '0', timesent int(50) NOT NULL default '0', msgtext varchar(255) NOT NULL default '', rid int(99) NOT NULL default '0', exposed char(1) NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- -- Dumping data for table ibwf_chat

looony Developer · 95 posts #6

there not querys either thats your db

External image (may be gone)

if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }

amylee Principal · 1,092 posts #7

if chat messages are being deleted every 50 seconds obviously its a problem with the $timeto =function basically just search every single one of them in core and chat.php that should solve the problem i think like the following crap

function cleardata()
{
  $timeto = 120;
  $timenw = time();
  $timeout = $timenw - $timeto;
  $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");
  $timeto = 300;
  $timenw = time();
  $timeout = $timenw - $timeto;
  $exec = mysql_query("DELETE FROM ibwf_chat WHERE timesent<'".$timeout."'");

forgotten how this script works now not used or touched it for well over a year now

Leviathan73 Senior · 260 posts #8

amylee in file core.php is the same that I have

metulj Super moderator Principal · 1,726 posts #9

QUOTE (Leviathan73 @ Feb 9 2009, 06:26 PM) <{POST_SNAPBACK}>

Hi friends!! chat messages continue to disappear after 50 seconds, I tried to solve this problem, we can not. file core.php CODE ///////////////////////////////////////Add to chat

function addtochat($uid, $rid)

{ $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'")); if($bago[0]==0){ $msg = "*mat Enter the Room"; mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'"); }

$timeto = 86400;

$timenw = time();

$timeout = $timenw - $timeto;

//$exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");

$res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");

if(!$res)
if($counter<15)

{
  
  mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");

}

} and file chat.php CODEaddtochat($uid, $rid); $timeto = 86400; $timenw = time(); $timeout = $timenw-$timeto; $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'")); $rname = $rooms[1]; $nick = getnick_sid($sid);

    if ($action=="")
    {
   $check = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_chonline WHERE uid='".$uid."', rid='".$rid."'"));
      if($check[0]!=$uid){
    
    mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'");

} addtochat($uid, $rid); echo "<head>"; echo "<title>$rname</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_popups WHERE unread='1' AND touid='".$uid."'")); if ($unreadpopup[0]<1) { echo "<meta http-equiv="refresh" content="20; url=chat.php?time="; echo "".date("dmHis").""; echo "&sid=$sid&rid=$rid&rpw=$rpw">"; thanks to those who solves this problem 😉 this is part of code from chat.php the only important thing is number 259200... posted value 259200 will keep last 10(if set so) msgs in chat for 3(!) days, cos value is in secunds...........

addtochat($uid, $rid);
                   $timeto = 259200;
                   $timenw = time();
                   $timeout = $timenw-$timeto;
                   $deleted = mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");
               if ($action=="")
               {
               echo "<card id=\"chat\" title=\"$s_name\" ontimer=\"chat.php?time=";
               echo date('dmHis');
               echo "&sid=$sid&rid=$rid&rpw=$rpw";
               echo "\">";

//////////////////////////////////////////////////////////////////////////////////////////// meanwhile in code from core.php

function addtochat($uid, $rid)
           {
             $timeto = 45;
             $timenw = time();
             $timeout = $timenw - $timeto;
             $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");
             $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");
             if(!$res)
             {
               mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");
             }
           }

value $timeto only means for how long(again in secunds!) user will be shown as present in chat room eventhough he already left room...

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Leviathan73 Senior · 260 posts #10

does not work either, in addition to the messages disappear, disappeared the names of the rooms and the background color 🙁

metulj Super moderator Principal · 1,726 posts #11

QUOTE (Leviathan73 @ Feb 12 2009, 11:10 AM) <{POST_SNAPBACK}>

does not work either, in addition to the messages disappear, disappeared the names of the rooms and the background color :(

any1 who ever edited anything in lava script will know that my reply is 100% correct... if that doesnt work for you... then you didnt explain your problem properly or you have some other problems as well 🤔

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Leviathan73 Senior · 260 posts #12

Other problems I have, in games, the upload, opening that does not refresh inside the room when sends a message. This is the Community, I do not want to spam

metulj Super moderator Principal · 1,726 posts #13

QUOTE (Leviathan73 @ Feb 12 2009, 06:21 PM) <{POST_SNAPBACK}>

Other problems I have, in games, the upload, opening that does not refresh inside the room when sends a message. This is the Community, I do not want to spam

i dont understand language on site anyway...

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

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