Blocking Short Posts For Lava Script

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

    Blocking Short Posts For Lava Script

    Hello coder friends,
    I need a code help. I want to block short forum posts and PM text that is not more than 5 characters. When a user will post or reply PM with only a smiley or 1-5 characters the post/PM should be blocked by the message "Your Message Is Too Short To Send/Post." So I want this code. I think it will be placed in genproc.php.
    Thanks.
    Waiting for code help....
    Wait...
    sigpic

    #2
    Too much taking in here

    http://www.w3schools.com/PHP/DEfaULT.asP

    there is your code help.

    Comment


      #3
      $postinfo = ........
      $number = strlen($postinfo);
      if($number<4)
      {
      ///something
      }else{
      the res :D
      }

      //////////////////////////// :D easy :D
      Hate romains that take codes from here and tell to all that they had made that

      Comment


        #4
        <div class='quotetop'>QUOTE (youngson @ Jan 24 2009, 11:25 PM) <{POST_SNAPBACK}></div>
        Too much taking in here

        http://www.w3schools.com/PHP/DEfaULT.asP

        there is your code help.[/b]
        Thanks. That is PHP tutorial. But I want direct code for lavascript. if anyone can make that post here.
        Wait...
        sigpic

        Comment


          #5
          <div class='quotetop'>QUOTE (ionutxp @ Jan 25 2009, 03:07 AM) <{POST_SNAPBACK}></div>
          $postinfo = ........
          $number = strlen($postinfo);
          if($number<4)
          {
          ///something
          }else{
          the res :D
          }

          //////////////////////////// :D easy :D[/b]
          you can try this one.. as he sugested
          Services

          Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

          Below is a list of services I offer:

          Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

          Rates

          General consulting – My current hourly rate is $100 / hour.
          Custom Wapsite Community - My current rate is $500 / Wap Community Development.

          Comment


            #6
            $postinfo = $reptxt;
            $number = strlen($postinfo);
            if($number<4)
            {
            echo "Error! You can&#39;t post short posts!";
            }else{

            hre u put the rest of ur script under the $reptxt

            }
            Hate romains that take codes from here and tell to all that they had made that

            Comment


              #7
              <div class='quotetop'>QUOTE (ionutxp @ Jan 25 2009, 03:00 PM) <{POST_SNAPBACK}></div>
              $postinfo = $reptxt;
              $number = strlen($postinfo);
              if($number<4)
              {
              echo "Error! You can&#39;t post short posts!";
              }else{

              hre u put the rest of ur script under the $reptxt

              }[/b]
              Thanks iontxp.

              I thint this is final code.
              Wait...
              sigpic

              Comment

              Working...
              X