Hi, now that I've managed to make it work alltogheter I was wondering if there is some way to force a user to write down not only his username and password but also his name, surname and email like a regular user in CMS?? Is there any kind of solution for this problem or I need to change a little bit of Frontend module code?
Thnx
Is it possible to have ask more information for a new FrontEnd User???
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Is it possible to have ask more information for a new FrontEnd User???
Yes.... You need to create new properties.
i.e: First Name - Type = Text - 50 characters, 80 max (or whatever you like)
Sirname - Type = Text - 50 characters, 80 max
Email - Type = Email - 50 characters, 80 max
Address 1...
Address 2
City
State
Country
PostCode
Phone Number
Social Insurance number
D/L number
Credit card name, number, and expiry...
it's all possible. once you create the properties, you must then assign them to one or more groups, and specify their sort order, and wether they are required or optional fields for members of that group.
Then, when a user attempts to login, or register themselves with the self registration module, they'll be asked to fill in whatever properties you have defined for that group.
i.e: First Name - Type = Text - 50 characters, 80 max (or whatever you like)
Sirname - Type = Text - 50 characters, 80 max
Email - Type = Email - 50 characters, 80 max
Address 1...
Address 2
City
State
Country
PostCode
Phone Number
Social Insurance number
D/L number
Credit card name, number, and expiry...
it's all possible. once you create the properties, you must then assign them to one or more groups, and specify their sort order, and wether they are required or optional fields for members of that group.
Then, when a user attempts to login, or register themselves with the self registration module, they'll be asked to fill in whatever properties you have defined for that group.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Is it possible to have ask more information for a new FrontEnd User???
Well that's what I was asking for but if I try to register someone on the first screen I can't see those new fields only after that on the second screen there are added fields is this the right way? And how can I later take out from DB from the username his surname for example?
I have one more question: after creating few groups how can I check inside a web page that the person logged take part of a particular group so I can change or add content looking at ther group?
Thanx a lot
I have one more question: after creating few groups how can I check inside a web page that the person logged take part of a particular group so I can change or add content looking at ther group?
Thanx a lot
Last edited by noidea on Mon Jun 26, 2006 10:13 am, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Is it possible to have ask more information for a new FrontEnd User???
First, in the frontend users module, you must a) create the properties, then b) associate those properties with certain groups, and specify a display order.
Secondly, when manually adding a user, the first screen that appears allows you to specify a username and a password, and allows you to specify which groups the user belongs to. It is the member groups that determine what properties are available for a user.
Then, when you click "Next" you'll get the form with the appropriate fields (first name, last name, email address...).
Retreiving some user details is easy in the module, as most of the properties have been exported to smarty. Use the get_template_vars user defined tag (a search will find it easily enough). to tell you what variables are exported for a logged in user. Extracting this information from the database is simple enough, there's a table called _module_feusers_properties, that holds all of the propertiy values. theres another for the user list->username matching, more for property definitions, group definitions, and group membership lists. It's not recommended though, as the smarty way is probably easier.
Thirdly, customizing the content based on group membership, etc, is really the pervue of the customcontent module. that's where customcontent shines.
Secondly, when manually adding a user, the first screen that appears allows you to specify a username and a password, and allows you to specify which groups the user belongs to. It is the member groups that determine what properties are available for a user.
Then, when you click "Next" you'll get the form with the appropriate fields (first name, last name, email address...).
Retreiving some user details is easy in the module, as most of the properties have been exported to smarty. Use the get_template_vars user defined tag (a search will find it easily enough). to tell you what variables are exported for a logged in user. Extracting this information from the database is simple enough, there's a table called _module_feusers_properties, that holds all of the propertiy values. theres another for the user list->username matching, more for property definitions, group definitions, and group membership lists. It's not recommended though, as the smarty way is probably easier.
Thirdly, customizing the content based on group membership, etc, is really the pervue of the customcontent module. that's where customcontent shines.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.