Forums / Developer / custom user class problem

custom user class problem

Author Message

Alain Mangana

Friday 02 October 2009 3:40:41 am


I created the user in a location other than mysite_admin / Users, I have created in mysite_admin / Content / mygroup_user but I can not connect with these accounts in F-O.

Here is my setup:


[UserSettings]
DefaultUserPlacement=2457
UserClassID=47
VerifyUserEmail=enabled
AuthenticateMatch=login;email

is there something I forgot?

http://tikdem.com
/

Mark Simon

Friday 02 October 2009 6:29:39 am

You have to place the user class in a class-group
and You'll need to mention that group in the site.ini with your user class

[UserSettings]
UserClassID=47
UserClassGroupID=xy

www.all2e.com

Hassan CHAKROUN

Monday 06 June 2011 1:20:41 am

Hi

for me I'm trying to customize user class  twice.

first for customer, second for provider.

with different form for every one.

Customers and providers  have to create there account in front office.

How can I put up this ?

 

Thank you so much.

Gaetano Giunta

Monday 06 June 2011 2:21:19 pm

@Hassan: if you want the users to go through user/register, I'm afraid you should set up two separate siteaccesses, and change the UserClassId parameter.

Or you can create a custom module/view that uses a different class for the user objects based on some other conditions...

Principal Consultant International Business
Member of the Community Project Board

Hassan CHAKROUN

Thursday 09 June 2011 8:24:27 am

thanks Giunta

I think the second solution is better (module/view).

my worry now is that I have to allow visitors to create two different account 'employee' and 'employer' with different attributs for each one.

and when the employee or employer  click a link  register (user/register), I have to disolay two different forms according to who try to create account.

and where the emplyee account is created, he can select some employers in a list  that I have to add theme to the user object by  related objects.

if you have any idea keep me in touch

thank you so much.