The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Allow specific emails domain to register
Coming from http://www.vbulletin.com/forum/showt...threadid=49278
I would like to allow only an email domain to register. In the CP I can only select a list of domain to ban but what I want is banning all BUT @mydomain.com . I don't think it's hard or already requested. Thx in advance ! |
#2
|
||||
|
||||
edit register.php, find:
PHP Code:
PHP Code:
AdminCP/Add New Template, template name: email_notallowed Create your message which will be displayed to users who doesnt have this email according to your wish. |
#3
|
||||
|
||||
Looks simple and efficient.
I have to try now Thx very much, I'll give you feedback |
#4
|
|||
|
|||
Exactly what I've been looking for! However, I have two questions:
1) How would it look if I wanted to have 2 domains accepted instead of just one? EX: say .gov and .mil 2) How would it look if I just want to accept based on the top-level domain? I don't want to have to add the 200+ subdomains that I have to deal with. EX: @blah.yeah.gov I would only want to allow the .gov/ I see that you refered to the @ symbol in the code. How would that work??? Thanks in advance! |
#5
|
||||
|
||||
1-
PHP Code:
|
#6
|
|||
|
|||
I tried that code under the Start Signup, Start Add Member, and the Start Register sections. Which section does that code go in? The code looks simlar in each, but not exactly what you typed. When I tried what you gave me, all I got was a white blank screen at different point depending on where I inserted the code. This is what I have before inserting:
if ($_REQUEST['do'] == 'signup') { globalize($_REQUEST, array('month' => INT, 'year' => INT)); if (!$vboptions['allowregistration']) { eval(print_standard_error('error_noregister')); } if ($bbuserinfo['userid'] != 0 AND !$vboptions['allowmultiregs']) { eval(print_standard_error('error_alreadyregistered ')); } |
#7
|
||||
|
||||
Isn't this VB3? My code is for vb2 and please note that VB3 hacks are disallowed until further notice from VB developers.
|
#8
|
|||
|
|||
I didn't know about that, I'm new to this. Why is it prohibited anyway? Thanks for the help anyway.
|
#9
|
||||
|
||||
Public releases of vB3 hacks are not allowed yet because it is still beta, and the code is still being changed. When it turns RC, we will open the floodgates.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|