Show in room

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

    #61
    Originally posted by murshid7 View Post
    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.
    if u had already function there del that..
    the function i posted paste the part of core.php in core.php and the other part in chat.php and its working fine 4 ponick :-)
    she is beautifull than php.and i love her more than php.
    sigpic

    Comment


      #62
      i did like you said i pasted the part of chat.php with my chat php and i pasted the core.php into my core.php and at last when ponick said you that he got as mate enter the room you asked him to copy the core function to core.php please bro its confusing me can you post it here?

      Comment


        #63
        Originally posted by murshid7 View Post
        i did like you said i pasted the part of chat.php with my chat php and i pasted the core.php into my core.php and at last when ponick said you that he got as mate enter the room you asked him to copy the core function to core.php please bro its confusing me can you post it here?
        i had said him only when he got *mate error as he was nt having the core part in core.php .4 u i m again telling that paste the core part in core and the chat part as instructed if it doesnt work pm ponick..i had no access to pc so cant post.u can take from old post
        she is beautifull than php.and i love her more than php.
        sigpic

        Comment


          #64
          i am also getting the mate error bro i need it as to be displayed user nick name entered the chatroom

          Comment


            #65
            here is my core.php tell me what is wrong with this


            ///////////////////////////////////////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."'");
            }
            }

            Comment


              #66
              here is my chat.php


              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);
              }



              and hey people i am using methos version 3 thos works with it right? cause almost it is showing mate enter room to me! but i want to make it as user nick name enter chat room

              Comment


                #67
                Originally posted by murshid7 View Post
                here is my chat.php


                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);
                }



                and hey people i am using methos version 3 thos works with it right? cause almost it is showing mate enter room to me! but i want to make it as user nick name enter chat room



                use this code in core.php
                PHP Code:
                function isenta($text)
                {
                  
                $sfil[0] = "enttt";

                  
                $text str_replace(" """$text);
                  
                $text strtolower($text);
                  for(
                $i=0;$i<count($sfil);$i++)
                  {

                    
                $nosf substr_count($text,$sfil[$i]);
                    if(
                $nosf>0)
                    {
                      return 
                true;
                    }
                  }
                  
                  return 
                false;

                and use this into chat.php after

                if(isspam($text))
                {
                $chnick = getnick_uid($chat[0]);
                echo "<b>Chat system:&#187;<i>*oi! $chnick, no spamming*</i></b><br/>";
                }


                PHP Code:
                else if(isenta($text))
                                  {
                                    
                $chnick getnick_uid($chat[0]);
                                    echo 
                "<font color=\"red\"><b><i>*$chnick enterd*</font></i></b></font><br/>";
                                  } 

                demo here just click and see
                PHP Code:
                /* I don't know everything hehe */ 
                Find me on facebook

                Comment

                Working...
                X