hello
i saw hack that limit images in signture but it limit smiles to (smile = image) i wonder . does someone can make hack that allow me to limit just the images and not the smiles in signature :glasses: ?
Xenon
07-29-2003, 09:34 AM
:)
here you are:
// 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 : // check max images
if ($maximages!=0) {
$parsedsig=bbcodeparse($signature,0,$allowsmilies) ;
if (countchar($parsedsig, "<img")>$maximages) {
eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
exit;
}
}
wooooow
thanks :p
works great
Xenon
07-29-2003, 12:23 PM
you're welcome :)
it's jsut the code we use on vb.org, so it was just a copy&paste question for me ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.