![]() |
Custom Usergroup on Registration (via e-mail address).
This modification is no longer available or supported. This is a little custom hack originally written for Aeroguy. This hack allows you to assign a custom usergroup that any users who match a given list of e-mail addresses (or part addresses) will be put into when they confirm their registration - users who are not matched will be still go into the default group (2). Obviously you must be using e-mail confirmation of registrations for this to work. Unzip the xml file and import it into vbulletin via the product manager. History: v1.01 : First Release. v1.02 : Minor changes, no update necessary. |
thanx for the hack.. i was looking for something like this..
|
Hi...Can i ask what this would actually be used for please?
I mean what was the purpose that prompted the request? |
I believe they ran a site associated with a college, so they wanted anyone with a college e-mail address to go into a special usergroup.
|
Ah....yeah i understand it now, i can see where this would be handy for some forums....
Cheers Paul |
Paul, im gonna make a golden statue in your honour :P
|
Thank you thank you!
|
Also seems like a viable alternative to banning free e-mail addresses, which I never understood.
|
Thank you, actually pretty useful hack
|
Anyone got a good list of free email hosts? Today our forum suddently got hit with a major bogus user assault.
|
Paul
what about Additional, Secondary usergroups? |
Quote:
|
Quote:
|
ok Paul, Thanks
i fount that Code:
$userdata->set('membergroupids', X); what's difference between registration_activate_process and registration_addember_process hook locations? |
Quote:
|
how hard would it be to transform this so instead of email it looks at age?
|
It would be a totally new mod.
|
ohh ok nevermind sorry
|
Installed.
|
I am using this on 4.1.12 and it works which is awesome. The one problem I am having is with case-sensitive issues. When they register, I put them in a different usergroup which works great except when they case-sensitivity of their email address does not match up. For example, if I am "AshenTemper@gmail.com" under the list but I sign up using "ashentemper@gmail.com" (or vice versa), it sees them as two different email addresses and does not put me in the proper group.
Any way of addressing this issue? And yes, I do realize this mod is no longer being supported... just hoping someone who reads this and is familiar with the mod might have some good info/feedback. |
Just came across this thread. It looks like it does exactly what I need... almost. I'm new to vBulletin - does anyone know how to tweak this so that users get added to additional usergroups instead of moved to a different primary one?
I assume this could be changed by editing this part: Code:
$user['usergroupid'] = $vbulletin->options['creggroup']; I'd appreciate any help or input! @AshenTemper / case-sensitive issues... While a vB newbie, I do know PHP, and you could achieve case-insensitivity by editing the code a tiny bit. Open the XML file in a text editor (e.g. Notepad, not Word) and look at like 30 that contains the following: Code:
if (substr($cruser['email'],strlen($cremail)*-1) == $cremail) Code:
if (strtolower(substr($cruser['email'],strlen($cremail)*-1)) == strtolower($cremail)) I realize that you asked this question about a year ago, but maybe this will help others down the road. |
Following up on my own question above about adding users to a secondary usergroup instead of moving them to a different primary one:
I found the solution and modified the code of the plugin - it works perfectly. If anyone is interested, let me know and I can upload the modified XML here. |
All times are GMT. The time now is 08:33 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:
|