for vb 3.6
Replace everything in the plugin PHP code with:
PHP Code:
$maxsigwidth = 200;
$maxsigheight = 200;
function check_sig_size($sig)
{
global $maxsigwidth, $maxsigheight, $errors, $vbulletin;
$sig = str_replace(array(' ', '\\"'), array('', '"'), $sig);
// check valid signature image size
if ($imginfo = getimagesize($sig))
{
if ($imginfo[0] > $maxsigwidth or $imginfo[1] > $maxsigheight)
{
$vbulletin->GPC['preview'] = 'true';
$errors[] = fetch_error('signaturetoobig', $maxsigwidth, $maxsigheight);
}
}
}
$url = preg_replace('#\[img\]\s*(https?://([^<>*"' . iif(!$vbulletin->options['allowdynimg'], '?&') . ']+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "check_sig_size('\\1')", $signature);