1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

E-mail Address Restrictions v1.0.0

Whitelist / Blacklist e-mail hosts.

  1. alexD

    alexD Well-Known Member

    alexD submitted a new resource:

    E-mail Address Restrictions - Whitelist / Blacklist e-mail hosts.

    Read more about this resource...
     
    ŽivaAkcija likes this.
  2. ŽivaAkcija

    ŽivaAkcija Well-Known Member

    does required any other add on preinstalled?
     
  3. alexD

    alexD Well-Known Member

    Nope :)
     
  4. ŽivaAkcija

    ŽivaAkcija Well-Known Member

    works thanks!!
     
    alexD likes this.
  5. Codeless

    Codeless Active Member

    thanks
     
  6. JordanH

    JordanH Well-Known Member

    Can already do this by going to /admin.php?banning/emails
    Well, blacklist emails that is.
     
  7. alexD

    alexD Well-Known Member

    Last edited: Mar 23, 2016
    JordanH likes this.
  8. boeing747

    boeing747 Member

    Hi,

    I have a problem with this add-on, when Im putting some domains name in Whitelisting, nothing happens, and everyone can register. I want to give access just to users who are using yahoo as their email address.

    I cleaned the whole of the list and filed the yahoo.com in host field (Whitelisting), but when I tried to register with a gmail email address nothing happened and I registered without any error!

    could you please guide me?

    Thanks
     
  9. teletubbi

    teletubbi Well-Known Member

    Maybe wrong.
    Because now you don't have a blacklist.
     
  10. boeing747

    boeing747 Member

    You know, its none scene, cause when i'm saying this address is in white list, it means any other addresses automatically are in black list.

    P.S: I checked it again, same addresses are in both blacklist and whitelist by default.
     
  11. teletubbi

    teletubbi Well-Known Member

    Not sure if it works like this.
    Maybe need blacklist.

    But this can answer only the developer.
     
    boeing747 likes this.
  12. James

    James Well-Known Member

    You can only have one or they other, look at the screenshot you have the choice between "white list" and "black list" so opting to choose the former would mean only those on that list can register.
     
    alexD likes this.
  13. ŽivaAkcija

    ŽivaAkcija Well-Known Member

    it is works with 1.5.8?
     
  14. James

    James Well-Known Member

    It states compatible with 1.5 and no bugs have been reported so most likely yes.
     
    alexD likes this.
  15. Nirjonadda

    Nirjonadda Active Member

    @alexD, Please can you add some Details under Email box filed that show what type email address are allowed for Registration?

    ScreenShot00250.png
     
  16. alexD

    alexD Well-Known Member

    There is a phrase you can already use and modify to your liking @Nirjonadda

    Considering you have already whitelisted the yahoo, gmail and hotmail domains above, you can always edit the 'email_address_not_in_whitelist' phrase.

    If a user tries to submit their registration form using a not whitelisted email host, they're going to get an error alike the Duplicate Username error we see in your screenshot (but near the email input now and with the error text you have set instead).
     
    Nirjonadda likes this.
  17. Nirjonadda

    Nirjonadda Active Member

    Not this phrase, This phrase are used for AJAX email address check. If a user tries to submit their registration form using a not whitelisted email host, they're going to get an error alike the Duplicate Username error.

    I am asked for adding some Details under Email box filed that show what type email address are allowed for Registration?

    [​IMG]
     
    Last edited: Jan 21, 2017
  18. alexD

    alexD Well-Known Member

    That is probably out of the scope of this add-on.

    To add something like what you're asking, you should:
    1) Start editing the 'register_form' template.
    2) Find
    Code:
    	<dl class="ctrlUnit">
    	<dt><label for="ctrl_{$fieldMap.email}">{xen:phrase email}:</label></dt>
    	<dd>
    		<input type="email" name="{$fieldMap.email}" value="{$fields.email}" dir="ltr" class="textCtrl" id="ctrl_{$fieldMap.email}" />
    	</dd>
    	</dl>
    And replace with
    Code:
    	<dl class="ctrlUnit">
    	<dt><label for="ctrl_{$fieldMap.email}">{xen:phrase email}:</label></dt>
    	<dd>
    		<input type="email" name="{$fieldMap.email}" value="{$fields.email}" dir="ltr" class="textCtrl" id="ctrl_{$fieldMap.email}" />
    		<p class="explain">You can only register from the following email domains: @yahoo.com @gmail.com @hotmail.com</p>
    	</dd>
    	</dl>
     
    Nirjonadda likes this.
  19. Nirjonadda

    Nirjonadda Active Member

    @alexD, I have added some Best email service in my Whitelisting, Do this adding are correct and I am missed adding more email in my Whitelisting? Do we need adding more email service in my Whitelisting?

    Code:
    yahoo.com
    gmail.com
    icloud.com
    outlook.com
    hotmail.com
    aol.com
    aim.com
    zoho.com
    mail.com
    protonmail.com
    gmx.com
    [​IMG]
     
  20. alexD

    alexD Well-Known Member

Share This Page