I've made it so that there is a limit of smilies a person can post in the shoutbox. This is to prevent smilie spamming.
In shoutbox.php, find:
PHP Code:
$sql = "SELECT id FROM shoutbox WHERE date LIKE '".substr($date,0,10)."%' AND name='".$bbuserinfo['username']."' AND comment='".addslashes($message)."'";
Underneath, add:
PHP Code:
$parsey = bbcodeparse($message, 0, 1, 1);
if (countchar($parsey,"<img")>5) {
eval("dooutput(\"".gettemplate('shoutbox_error')."\");");
exit;
}
Then, add a new template called:
shoutbox_error
with these contents:
Code:
{htmldoctype}
<html>
<head>
$headinclude
</head>
<body bgcolor="$fondshoutbox">
<center><br><br><b><smallfont>NOTE: You are only allowed a maximum of 5 smilies. Please try again.</smallfont></b></center>
</body>
</html>
Done!

You can change this line in shoutbox.php to increase or decrease the smilie limit, and edit the shoutbox_error template accordingly:
if (countchar($parsey,"<img")>5) {