Search found 3 matches

by dumbidiot
Mon Nov 19, 2007 11:54 pm
Forum: Joomla! Coding 101
Topic: how to block registration from personal emails: gmail, hotmail, etc. ?
Replies: 4
Views: 1020

Re: how to block registration from personal emails: gmail, hotmail, etc. ?

i have no clue how to set up a regex

Code: Select all

   }   else if (eregi('^[a-zA-Z0-9._-]+@[gmail]+\.[a-zA-Z.]{2,5}$', $email)){
            alert( "<?php echo addslashes( html_entity_decode(_REGWARN_MAIL) );?>" );


this does not seem to work
by dumbidiot
Mon Nov 19, 2007 2:30 pm
Forum: Joomla! Coding 101
Topic: how to block registration from personal emails: gmail, hotmail, etc. ?
Replies: 4
Views: 1020

Re: how to block registration from personal emails: gmail, hotmail, etc. ?

I think i found the part of the code that validates the form: if (form.name.value == "") { alert( "<?php echo addslashes( html_entity_decode(_REGWARN_NAME) );?>" ); } else if (form.username.value == "") { alert( "<?php echo addslashes( html_entity_decode(_REGWARN_UNAME) );?>" ); } else if (r.exec(fo...
by dumbidiot
Mon Nov 19, 2007 6:25 am
Forum: Joomla! Coding 101
Topic: how to block registration from personal emails: gmail, hotmail, etc. ?
Replies: 4
Views: 1020

how to block registration from personal emails: gmail, hotmail, etc. ?

I need to filter out the regestrations to my site and only allow users to enter their business emails and block anyone trying to use a personal account like hotmail. I've looked through the extensions for joomla and none seem to have any ways of filtering registration email. Is there a way to add th...