The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Limit only users to single email domain.
Is there any way to allow only users with a foo.com email addresse to register?
|
#2
|
|||
|
|||
wow.. that would be quite limiting.
|
#3
|
|||
|
|||
Quote:
BTW, our uni gives away email addresses to all students. |
#4
|
|||
|
|||
but... if all your students have an @school.org email, you'd be limiting registration to 1 student.
|
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
guess I read it wrong sorry.
|
#7
|
|||
|
|||
Heres a simple way to do it, but you'll lose the ability to ban domains (which should'nt matter because you are only allowing certain domains anyway). What I am basicly going to do is take the Banned Email Addresses list and turn it into the Allowed Email Addresses list.
Open functions_register.php in a code editor, and find this block of code: PHP Code:
So our block of code becomes: PHP Code:
This best thing about this approch is that it supports multiple domains, and its easy to add and modify them. |
#8
|
|||
|
|||
Thank you very much.
Is there any way I can let moderators and administers have a non foo.com domain? I'm hoping to expand this... if I did, I won't have access to other schoools email addresses. Where exactly is this file? There is a file in includes/ that has the exact file name you mentioned.... but the code you quoted is nowhere to be found. This is all the file includes: PHP Code:
|
#9
|
|||
|
|||
The code to be changed is in functions_user.php.
|
#10
|
||||
|
||||
Brad - thanks for this suggestion. I needed to restrict our users to a certain set of domains (we're an ISP, providing forums for just our users), and turning the "banned domains" into "allowed domains" was exactly what I needed.
One note for anyone else needing to do this. Enforcing specific domains for the email during registration is half the solution. The other half is preventing them from changing their email once they have signed up. To do this, you can either edit the 'modifypassword' template accordingly, or you can edit profile.php to force $show{edit_email_field} to always be FALSE. -- hugh |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|