There is no
Quote:
<hookname>postdata_presave</hookname> and <hookname>threadfpdata_presave</hookname>
|
in amy's plugin.... Here is the entire code below.where do I add the code to includ EMAILS ?
Quote:
or stristr($pagetext,'[email')
or stristr($pagetext,'[EMAIL')
or stristr($pagetext,'[ url')
or stristr($pagetext,'mailto:')
or stristr($pagetext,'@')
|
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="amykhar_09082005" title="No Links or Images Allowed for People with Fewer t" description="Throws an error message for spammers." version="1.1" active="1">
<codes>
</codes>
<templates>
</templates>
<plugins>
<plugin active="1">
<title>No Links for People with fewer than 15 posts.</title>
<hookname>newthread_post_start</hookname>
<phpcode><![CDATA[$pagetext = $vbulletin->GPC['message'];
if (($vbulletin->userinfo[posts] < 15) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://'))) {
eval(standard_error(fetch_error('error_nourlallowed')));
}]]></phpcode>
</plugin>
<plugin active="1">
<title>No Links for People with fewer than 15 posts.</title>
<hookname>newreply_post_start</hookname>
<phpcode><![CDATA[$pagetext = $vbulletin->GPC['message'];
if (($vbulletin->userinfo[posts] < 15) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://'))) {
eval(standard_error(fetch_error('error_nourlallowed')));
}]]></phpcode>
</plugin>
<plugin active="1">
<title>No Links for People with fewer than 15 posts.</title>
<hookname>editpost_update_start</hookname>
<phpcode><![CDATA[$pagetext = $vbulletin->GPC['message'];
if (($vbulletin->userinfo[posts] < 15) and (stristr($pagetext,'[url') or stristr($pagetext,'[URL') or stristr($pagetext,'www.') or stristr($pagetext,'http://'))) {
eval(standard_error(fetch_error('error_nourlallowed')));
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="Front-End Error Messages" fieldname="error">
<phrase name="error_nourlallowed"><![CDATA[You are only allowed to post URLs to other sites after you have made 15 posts or more. Sorry but this includes Smiley faces as well
]]></phrase>
</phrasetype>
</phrases>
<options>
</options>
</product>