Email Validation Rule

Email Validation Rule 1.0.0

No permission to download

semprot

Active member
#1
semprot submitted a new resource:

Email Validation Rule - Use custom email validation rule such as regular expression.

Do you need regular expression to validate user's email?
Now you can do it, using a file edit :)

  • Please backup the file before modifying

You must edit this file :
Code:
/library/XenForo/Helper/Email.php
Find these lines :
PHP:
    public static function isEmailValid($email)
    {
        $validator = new Zend_Validate_EmailAddress();
        $validator->getHostnameValidator()
            ->setValidateTld(false)
            ->setValidateIdn(false);
        return...
Read more about this resource...
 
#5
(this pattern is just a sample. Do not use it without knowing what it means)
What the noobs like me should add? Can you suggest what we should add please
 

semprot

Active member
#6
(this pattern is just a sample. Do not use it without knowing what it means)
What the noobs like me should add? Can you suggest what we should add please
If you don't have spammers in your forum that use similar email pattern, then you don't need this add on.

So it really depends on how spammers in your forum :)
 
Top