This is not working any longer for me, not sure why. Plugin is active too.
postdata_presave
Code:
global $vbulletin;
$pagetext =& $this->fetch_field('pagetext', 'post');
if (($vbulletin->userinfo[posts] < 50) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or
stristr($pagetext,'.com') or
stristr($pagetext,'.net') or
stristr($pagetext,'.org') or
stristr($pagetext,'http://')))
{
//eval(standard_error(fetch_error('error_nourlallowed')));
$this->error('error_nourlallowed');
$return_value = false;
}
threadfpdata_presave
Code:
global $vbulletin;
$pagetext =& $this->fetch_field('pagetext', 'post');
if (($vbulletin->userinfo[posts] < 50) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://')))
{
//eval(standard_error(fetch_error('error_nourlallowed')));
$this->error('error_nourlallowed');
$return_value = false;
}
It used to work.