Log in

View Full Version : Auto Usergroup Add On Registration


joyceleong
04-07-2008, 02:14 AM
Hi,

I would like to know whether this could be done?

In which, during the registration, upon a user signs up through the use of a certain domain email, e.g. (whatever)@hotmail.com. After the success of the registration, the user will be put into the usergroup called "Hotmail Group".

The whole process is on automation, as long as the user uses a free based email, regardless of whatever email address, as long as it is determined to be @hotmail.com, he/she will be automatically put under the Hotmail Group.

Please advise. Thanks.

Dismounted
04-07-2008, 05:11 AM
This can be done, but it needs a modification. I don't think there is one available at the moment.

joyceleong
04-07-2008, 09:58 AM
This can be done, but it needs a modification. I don't think there is one available at the moment.

Would you be able to provide me advice as to where or which php should i go into and make amendments?

Thanks.

Dismounted
04-07-2008, 11:10 AM
You can add a plugin in the newmember_process hook and change the usergroup.

joyceleong
04-07-2008, 12:03 PM
You can add a plugin in the newmember_process hook and change the usergroup.

There wasn't any newmember_process, I suppose that is register_addmember_process?

Dismounted
04-07-2008, 12:09 PM
Yes, that would be it, I'm not good at remembering hook names :D.

joyceleong
04-07-2008, 12:19 PM
Yes, that would be it, I'm not good at remembering hook names :D.

Can I check with you, how can I retrieve those vb variables such as those $vbulletin->options, etc?

Dismounted
04-07-2008, 12:30 PM
You'll need to include vBulletin's global.php.