Given the location of that hook, shouldn't you be able to use $signature ?
From profile.php:
PHP Code:
// DO WYSIWYG processing to get to BB code.
if ($vbulletin->GPC['wysiwyg'])
{
require_once(DIR . '/includes/functions_wysiwyg.php');
$signature = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message'], $permissions['signaturepermissions'] & $vbulletin->bf_ugp_signaturepermissions['allowhtml']);
}
else
{
$signature = $vbulletin->GPC['message'];
}
($hook = vBulletinHook::fetch_hook('profile_updatesignature_start')) ? eval($hook) : false;
// handle image uploads
So, couldn't you use something like this:
PHP Code:
$excludedugs = explode(',', $vbulletin->options['usml_siglink_exug']);
if (!is_member_of($vbulletin->userinfo, $excludedugs))
{
if ($vbulletin->options['usml_siglink_enable'] AND $vbulletin->userinfo['posts'] < $vbulletin->options['usml_siglink_minposts'])
{
if (stristr($signature, 'http://') OR stristr($signature, 'www.') OR stristr($signature, '[URL'))
{
$errors[] = fetch_error('usml_siglink_msg', $vbulletin->userinfo['username'], $vbulletin->options['usml_siglink_minposts'], $vbulletin->userinfo['posts']);
}
}
}