Antispam Off Smileys

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

    Antispam Off Smileys

    hello friends sorry, as you turn off the function of anti spamm smileys?
    Code:
    else if($nos>2){
                        $chnick = getnick_uid($chat[0]);
                        echo "[b]Chat System:»[i]*Hey! $chnick, U Can Only Use 2 Smilies Per Msg!*[/i][/b]
    ";
                      }else{

    #2
    change ($nos>2)
    to how many smileys u want allowed
    eg ($nos>500)

    or just delete the whole section or blank it out using /* */
    eg:
    Code:
    /*else if($nos>2){
                        $chnick = getnick_uid($chat[0]);
                        echo "[b]Chat System:»[i]*Hey! $chnick, U Can Only Use 2 Smilies Per Msg!*[/i][/b]
    ";
                      }*/else{

    Comment


      #3
      Use this will not give error ;)


      Code:
      else if($nos>1000000){
                          $chnick = getnick_uid($chat[0]);
                          echo "[b]Chat System:»[i]*Hey! $chnick, U Can Only Use 2 Smilies Per Msg!*[/i][/b]
      ";
                        }else{
      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...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        thanks! I can give an additional help? messages disappear from the chat, instead must stay:p
        Code:
        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<&#39;".$timeout."&#39;");
        
          $res = mysql_query("INSERT INTO ibwf_chonline SET lton=&#39;".time()."&#39;, uid=&#39;".$uid."&#39;, rid=&#39;".$rid."&#39;");
        
          if(!$res)
        
          {
            
            mysql_query("UPDATE ibwf_chonline SET lton=&#39;".time()."&#39;, rid=&#39;".$rid."&#39; WHERE uid=&#39;".$uid."&#39;");
        
          }
        
        }

        Comment


          #5
          change to
          Code:
          function addtochat($uid, $rid)
          
          {
            $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid=&#39;".$uid."&#39; AND rid=&#39;".$rid."&#39;"));
          if($bago[0]==0){
          $msg = "*mat Enter the Room";
          mysql_query("INSERT INTO ibwf_chat SET timesent=&#39;".time()."&#39;, chatter=&#39;".$uid."&#39;, text=&#39;".$msg."&#39;");
          }
          
            $timeto = 86400;
          
            $timenw = time();
          
            $timeout = $timenw - $timeto;
          
            //$exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<&#39;".$timeout."&#39;");
          
            $res = mysql_query("INSERT INTO ibwf_chonline SET lton=&#39;".time()."&#39;, uid=&#39;".$uid."&#39;, rid=&#39;".$rid."&#39;");
          
            if(!$res)
          
            {
              
              mysql_query("UPDATE ibwf_chonline SET lton=&#39;".time()."&#39;, rid=&#39;".$rid."&#39; WHERE uid=&#39;".$uid."&#39;");
          
            }
          
          }
          but you will need to sort out your numbers of posts per page :P

          Comment


            #6
            it changed, but it does not work

            Comment


              #7
              change
              if($counter<10)

              to how many posts u want

              if($counter<100000000000000000000000)

              Comment


                #8
                thank you :P

                Comment


                  #9
                  nooo disappeared again messages in chat :&#39

                  Comment

                  Working...
                  X