Forums / General / Need to register users into different groups

Need to register users into different groups

Author Message

Felix Laate

Sunday 08 January 2006 1:40:30 pm

Hi all!

I need to register users ( with user/register ). And I need to register them into different groups.

Is there any way, by e.g. modifying the form, to specify what group the user shuld be put into? So that when I call /user/register/(group)/a the user is registered in group A and when I call /user/register/(group)/b they get into group B.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Tore Skobba

Monday 09 January 2006 6:54:38 am

Hi

I had similar requirments 2 years ago. Then I made an customized workflow event which placed the users main node within an specific usergroup depending upon an selection attribute for the user. As such all user where still using the same user/register template. Do you eventual need different user/register forms?

Felix Laate

Monday 09 January 2006 8:34:57 am

Hi Tore!

Thank you for your advice. I do indeed need a single user/register so your plan seems good. Only problem is that I never made made a custom workflow event. Have to do some research.

Do you have any advice on where to start?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

J-A Eberhard

Monday 09 January 2006 8:37:32 am

Another way to do it is to have 2 different forms on 2 different site access like
.../groupA/form/ and ../groupB/form/
This allow you to customize the group the user become a member at the settings level (siteaccess)
JAE

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Felix Laate

Monday 09 January 2006 9:05:51 am

Thank U as well!

Yes that would certainly be an option. Only problem is that I would need plenty of sections and siteaccesses.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Tore Skobba

Tuesday 10 January 2006 12:52:07 am

Hi

Drop me an email at torskoATbredbandDOTno and I will send you my source code for my project, it might be an start for you.

Cheers