Email Validation Rule

Email Validation Rule 1.0.0

No permission to download

HappyWorld

Well-known member
HappyWorld 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...
 
Last edited:
(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
 
(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 Bottom