Forums / Developer / register users in different user groups / Comment50036
Dhaval Patel
Monday 06 October 2008 2:57:42 am
hi Mickael,
I have changed the /kernel/user/register.php .
The steps will be as follows.
User fills the registration fields in the registration form and also selects the group in which he wants to register.
Now open /kernel/user/register.php
find this line
$object = eZContentObject::fetch( $object->attribute( 'id' ) );
Put the below line after the above code...
// move user to specified group eZContentObjectTreeNodeOperations::move( $object->attribute( 'main_node_id' ), $http->variable("membership") );
In this code "membership" is the field name of the group in register form.
so what I am doing is "Move user to specified group after registration."
Is this OK for you ?
With Best Regards, Dhaval Patel Team Leader - iNETProcess(I) Pvt. LTD. dhaval.patel@inetprocess.com Ph No: +91 79 65 12 35 00 http://www.inetprocess.co.in