News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Validate registration email add against list

Started by lelkins, October 20, 2008, 09:49:18 AM

Previous topic - Next topic

lelkins

Hey guys and gals, this is my first post here so please be gentle with me. Sorry if this is in the wrong place.

I have installed SMF 1.1.6 on my site but I am hoping to make a few tweaks to it to get exactly what I want, only thing is that I am a bit stumped with where to start.

My key problem is ensuring that only the people that I want to register on the forum do, so I decided that I have a list of all email adds so I would like to be able to cross-check the email provided at registration against the emails in my list. Any pointers on where I should start please?

I hope that makes sense.

Thanks

Have a good 1 all.

Marcus Forsberg

Welcome to SimpleMachines, lelkins! I'm glad to here that you've installed this software.


A option would be to go to
Admin > Registration > Settings.
There's a selectbox, called "Method of registration employed for new members"
Choose "Member approval".

The admin, you, will now have to approve all registrations.
That way you can reject those you don't want in your forum, and approve the ones you allow.


Nas

lelkins

Wow, thanks for the quick reply and the warm welcome.

I have seen that option and considered it, but it isn't really feasible with the numbers being anticipated. Thanks for your help, but any other options?

lelkins

Hey fellas.

I still need some help with this if possible. And just to save any confusion I will reconfirm what I am after.

Lets say that I am given a list of 5000 people that are of the right category to be able to access my site, I would like to have their details, such as name and DOB in a database, then when they try to sign up it will check against these details, and if it doesn't match, or the details provided at registration are not found then registration will not complete.

I really hope that this makes sense and that someone can help. If you need any more clarification on what I am after then please just ask.

Cheers, have a good 1 all.

[SiNaN]

Would this help?

../Sources/Register.php

Find:

// Include the additional options that might have been filled in.

Replace:

$allow_emails = array('[email protected]', '[email protected]');

if (!in_array($_POST['email'], $allow_emails))
fatal_error('Sorry, your e-mail is not valid', false);

// Include the additional options that might have been filled in.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: