Show in room

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

  • Ponick
    replied
    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

    Leave a comment:


  • murshid7
    replied
    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

    Leave a comment:


  • murshid7
    replied
    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."'");
    }
    }

    Leave a comment:


  • murshid7
    replied
    i am also getting the mate error bro i need it as to be displayed user nick name entered the chatroom

    Leave a comment:


  • ranzit2
    replied
    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

    Leave a comment:


  • murshid7
    replied
    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?

    Leave a comment:


  • ranzit2
    replied
    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 :-)

    Leave a comment:


  • murshid7
    replied
    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.

    Leave a comment:


  • NoObCodeR
    replied
    repost the procedure here

    Leave a comment:


  • Ponick
    replied
    Thanx every buddy :D
    now its working properly

    you can see it now here

    is there any system to show user leaving msg ?

    Leave a comment:


  • Ponick
    replied
    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

    Leave a comment:


  • ranzit2
    replied
    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

    Leave a comment:


  • Ponick
    replied
    Every booody eid mubarak . .Happy eid day . Ops am i flooding here ?

    Leave a comment:


  • Ponick
    replied
    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 ??

    Leave a comment:


  • kiLLeR-eyEd_14
    replied
    yuhjiwap.co.cc or undergroundwap.co.cc

    Leave a comment:

Working...
X