smile limit in shoutbox lavalair

Started on the old forum in April 2010 · view the original in the archive · old links redirect here

#smile-limit-lavalair

2 replies · 557 views · started 16 years ago · 1 min read

2 participants
LadyEnigma Developer · 71 posts #1

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

....silence please....

ewanz Developer · 187 posts #2

Try this my friend..

    $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

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
LadyEnigma Developer · 71 posts #3

yes it work!! thank you ewanz 😉

....silence please....

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close