![]() |
Limiting registration to users of one email domain.
I am getting ready to setup a forum and want to know if it is possible to allow users to register only if their email address is from a certain domain.
In other words I would like to exclude all domains, but the ones I specify. This would be the exact opposite of the way it is now. I am just unsure of how to accomplish it. Any help or guidance would be greatly appreciated. |
I am looking into this for you.
|
Thanks Hurricane. :) I appreciate your help.
|
I looked into doing this as a full blown hack, however, I do not think it will be worth going through the trouble. I do not think many people have the need for this. So I will come up with something for you that is quick and dirty. ;)
|
Quote:
OK, here it is quick and dirty: In your Admin Panel Options there is an area for email banning. (Which is the opposite of what you want as stated above.) What I have done is to allow you to reverse that function to only allow those who are listed. Here you go: Code:
Open includes/functions_user.php Code:
What this has done is to switch the "return 0" and "return 1" BTW: I did fully test this and it worked on my test BB. |
Wow! Thanks-A-Million Hurricane I will test this out ASAP and let you know how it goes. :)
|
Just wanted to get back to you and let you know that this seems to be working perfectly. Thanks again for helping me out. :)
|
All times are GMT. The time now is 09:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|