smile limit in shoutbox lavalair

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

    smile limit in shoutbox lavalair

    Hi friends, I would put a smile limit that you can post in my chat lavalair shoutbox (example for each message written in the shoutbox can add up to 3 smile) thanks to anyone who helps me

    #2
    Try this my friend..
    Code:
        $text = parsepm($shtxt, $sid);
    
        $nos = substr_count($text,"<img src=");
    
        if($nos>2)
    
        {
    
        echo "<img src=\"../images/notok.gif\" alt=\"X\"/><br/>error..Only 2 smilies you can shouts!!<br/><br/>";
        echo "</p>";
        echo "</body>";
        echo "</html>";
    
        exit();
    
        }
    our lfe is simple words....
    http://mygenkz.net
    ewanz06@yahoo.com
    PHP Code:
    $output="i am NOoob....";
    $newfile="ewanz.txt";
    $file fopen ($newfile"w");
    fwrite($file$output);
    fclose ($file); 

    Comment


      #3
      yes it work!! thank you ewanz ;)

      Comment

      Working...
      X