Show in room

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Originally posted by Ponick View Post
    im goin to say this bad news again...it didnot show any thing
    its a function in core.php that had to b modified.
    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."', msgtext='".$msg."', rid='".$rid."'");
    }
    
    $timeto = 120;
    $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."'");
    }
    try this in core.php


    and this in chat.php just after where if(!canenter($rid,$sid)) function end
    Code:
    addtochat($uid, $rid);
            $timeto = 300;
            $timenw = time();
            $timeout = $timenw-$timeto;
            $deleted = mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");
            $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
            $rname = $rooms[1];
            $nick = getnick_sid($sid);
    Last edited by ranzit2; 13.09.09, 00:52.
    she is beautifull than php.and i love her more than php.
    sigpic

    Comment


      #47
      Originally posted by ranzit2 View Post
      its a function in core.php that had to b modified.
      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."', msgtext='".$msg."', rid='".$rid."'");
      }
      
      $timeto = 120;
      $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."'");
      }
      try this in core.php


      and this in chat.php just after where if(!canenter($rid,$sid)) function end
      Code:
      addtochat($uid, $rid);
              $timeto = 300;
              $timenw = time();
              $timeout = $timenw-$timeto;
              $deleted = mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");
              $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
              $rname = $rooms[1];
              $nick = getnick_sid($sid);
      it's very easy..just like my previous post..put this below if(isbanned){}
      PHP Code:
      $bago mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
      if(
      $bago[0]==0)
      {
      $msg "".getnick_uid($uid)." Enter the Room";
      mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', msgtext='".$msg."', rid='".$rid."'");

      My Blog: http://jhommark.blogspot.com
      My Facebook: http://www.facebook.com/jhommark
      My Official Site: http://www.undergroundweb.tk
      My Community Site: http://undergroundwap.xtreemhost.com

      Comment


        #48
        Originally posted by Ponick View Post
        im goin to say this bad news again...it didnot show any thing
        can u put this on top of the page after <?php

        error_reporting (E_ALL);
        ini_set ('display_errors', true);

        because its not showing any errors for me and that will tell you where the error is

        Comment


          #49
          Originally posted by kiLLeR-eyEd_14 View Post
          it's very easy..just like my previous post..put this below if(isbanned){}
          PHP Code:
          $bago mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
          if(
          $bago[0]==0)
          {
          $msg "".getnick_uid($uid)." Enter the Room";
          mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', msgtext='".$msg."', rid='".$rid."'");

          it doesnt do anything . Is there need any sql table specialy? Its be better if some one you guys kindly give me the tested those php file ....
          PHP Code:
          /* I don't know everything hehe */ 
          Find me on facebook

          Comment


            #50
            Originally posted by something else View Post
            can u put this on top of the page after <?php
            error_reporting (E_ALL);
            ini_set ('display_errors', true);
            because its not showing any errors for me and that will tell you where the error is
            i have used it but n0thing heppend
            PHP Code:
            /* I don't know everything hehe */ 
            Find me on facebook

            Comment


              #51
              Originally posted by Ponick View Post
              it doesnt do anything . Is there need any sql table specialy? Its be better if some one you guys kindly give me the tested those php file ....
              it's working in my site..does your script really a lava?
              My Blog: http://jhommark.blogspot.com
              My Facebook: http://www.facebook.com/jhommark
              My Official Site: http://www.undergroundweb.tk
              My Community Site: http://undergroundwap.xtreemhost.com

              Comment


                #52
                Yes , i downloaded it from here . Named "lavalair plain script"
                can i see you site ?
                PHP Code:
                /* I don't know everything hehe */ 
                Find me on facebook

                Comment


                  #53
                  yuhjiwap.co.cc or undergroundwap.co.cc
                  My Blog: http://jhommark.blogspot.com
                  My Facebook: http://www.facebook.com/jhommark
                  My Official Site: http://www.undergroundweb.tk
                  My Community Site: http://undergroundwap.xtreemhost.com

                  Comment


                    #54
                    Yah nw nw it working . . But n0t like your site . . .
                    its working like= username time>>mat* entered !

                    Nw what i neet to do to make it like your site ??
                    PHP Code:
                    /* I don't know everything hehe */ 
                    Find me on facebook

                    Comment


                      #55
                      Every booody eid mubarak . .Happy eid day . Ops am i flooding here ?
                      PHP Code:
                      /* I don't know everything hehe */ 
                      Find me on facebook

                      Comment


                        #56
                        Originally posted by Ponick View Post
                        Yah nw nw it working . . But n0t like your site . . .
                        its working like= username time>>mat* entered !

                        Nw what i neet to do to make it like your site ??
                        the function i posted take the core function and paste in core.php
                        she is beautifull than php.and i love her more than php.
                        sigpic

                        Comment


                          #57
                          Originally posted by ranzit2 View Post
                          the function i posted take the core function and paste in core.php
                          mmm thanx . . . But when some one exit or loguot its not showing anything ! :p
                          PHP Code:
                          /* I don't know everything hehe */ 
                          Find me on facebook

                          Comment


                            #58
                            Thanx every buddy :D
                            now its working properly

                            you can see it now here

                            is there any system to show user leaving msg ?
                            PHP Code:
                            /* I don't know everything hehe */ 
                            Find me on facebook

                            Comment


                              #59
                              repost the procedure here

                              Comment


                                #60
                                its making me confused you said to add function in core.php already and i have done it and then it is showing as mate enter and then as ponick got the same problem and he also asked the a question about it and then you said him to paste the function to core.php what to do you mean? it is already done na? your saying a thing which as been done already i dont get it please tell me only that part.

                                Comment

                                Working...
                                X