![]() |
|
Mod Options |
![]() |
|||||||||||
Email Rules - Require that users' email addresses match a regular expression
![]() Developer Last Online: Dec 2007 ![]() ![]() ![]()
This modification simply requires a user's email address to match a regular expression that you specify in the admin control panel options. vBulletin already has an email banning function where you can ban different emails and email providers. This mod lets you do the opposite-- require a certain type of email address. For example you could require that all users have a .edu address.
Requested here. Installation: Unzip the attached file and import the .XML file in the Product Manager in the Admin Control Panel. Then visit the 'Email Rules' options page in vBulletin Options to set up your regular expression. This mod add two plugins, that's it. Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
Comments |
#2
|
||||
|
||||
wow...this is a very good idea. Making it easy for users to register from a certain "realm"
I was trying to think on how to do this with making a military only forum. No members have liked this post.
|
#3
|
||||
|
||||
can you specify more than one rule?
No members have liked this post.
|
#4
|
||||
|
||||
Yes, you specify just one regular expression, but you can have unlimited rules within it. If you need help with a regular expression, just post here explaining what you're trying to accomplish, and I'll try to help.
Also, this website will help get you up to speed on regexes http://www.regular-expressions.info/
__________________
My vBulletin Modifications. No members have liked this post.
|
#5
|
|||
|
|||
ok, so if I want to add a few email addresses into the regex field, how would I do it?
let's say, I only want to allow gmail.com, hotmail.com and yahoo.com as valid emails... how do I write that out? No members have liked this post.
|
#6
|
||||
|
||||
ok, so I put the following in the rules field:
and some users who tried to register with hotmail.com emails still can't get past the script and keep getting error messages... how?! what's wrong here? No members have liked this post.
|
#7
|
|||
|
|||
Awesome, installed on 3.7.0 tested and it works great!
(Tested with single domain restriction) No members have liked this post.
Last edited by MISTER2; 23 May 2008 at 19:43. |
#8
|
|||
|
|||
Alright, so I think I've found a bug.
If you run a board where you want to prevent users from changing their email, either by editing the modifypassword template or by cutting things out of the profile.php file (tried many things, like changing $show['edit_email_field'] to false whether user was on ban list or not, and commenting out whole sections). Anyhow, regardless of how I tried to work it, I couldn't remove the email input fields, because when users tried to change their passwords, they'd be redirected to error pages saying they needed to enter their email (when those spaces didn't exist). And when I disabled Email Rules, everything worked fine. Any ideas? Suggestion would be muchly appreciated! ![]() No members have liked this post.
|
#9
|
|||
|
|||
Ah... and I'm an idiot. If anyone else has this problem, just hack out the fields any way you please, and turn off the plugin at the profile_updatepassword_complete hook... Who needs that when there isn't any way to change it...
Grrr... Well, so long as others can learn from my mistakes! No members have liked this post.
|
#10
|
|||
|
|||
HOW SWEET IS THAT!!!!
![]() Great job and thanks again! IDEASBANK2009 No members have liked this post.
|
#11
|
|||
|
|||
vB 4.x.x compatability?
Hi, has anyone tried this with vB 4?
Or know of anything that does work with such??? Much appreciated, Ian No members have liked this post.
|
#12
|
|||
|
|||
I am also curious - does this work with VB 4?
Thanks No members have liked this post.
|
#13
|
||||
|
||||
It works for me on VB 4.1.7.
![]()
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#14
|
|||
|
|||
Anyone have any insights how one could use this like :
allow any .gov address, but also overseas .gov, like .gov.uk, .gov.ie etc. Basically to ensure that there has to be .gov somewhere in the address ??? No members have liked this post.
|
#15
|
||||
|
||||
this should do it:
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 12:30.