Topic: Allowing Certain E-mail Addresses Only

I am running a forum that is college-related and would like to make it so only people with .edu e-mail addresses can register. Is there an easy way to do this or can anyone provide recommendations? Thanks.

Re: Allowing Certain E-mail Addresses Only

In include/email.php change

if (strlen($email) > 50)

to

if (strlen($email) > 50 OR strpos($email, '.edu', 1) != strlen($email) - 4)

It's a bit kludgy, but it ought to work.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Allowing Certain E-mail Addresses Only

That worked... thanks!