here you are:
PHP Code:
// check for sigrules
$checksig = bbcodeparse2($signature, 0, 1, 0, 1);
$lines = countchar($checksig, '<br');
$images = countchar($checksig, "<img");
if ($images > x)
{
standarderror(bbcodeparse2('Your signature violates our signature rules',0,0,1,1));
}
put that in member.php after :
PHP Code:
// check max images
if ($maximages!=0) {
$parsedsig=bbcodeparse($signature,0,$allowsmilies);
if (countchar($parsedsig, "<img")>$maximages) {
eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
exit;
}
}