User Profile / Registration form issue

maozet - September 23, 2009 - 13:49

I would like to create a complex registration page which depands on a user type.

So, I have installed User types and Profile (Core)...

This lets me create a user type and to attach them fields i wish to display in registration form for a specific user type.
For example:

Artist:
-field nick
-field website
-field musical instrument

Normal User:
-field nick

Every thing is fine up to here.

My issues:

1) Is it possible to add a cck content type as those listed in (admin/user/profile) ? i do not wish to user content_profile, unless it is possible to integret those with a module like User Types.

2) Is it possible to make the registration as a multi step page? I know how to do that in a custom module but don't know how to approach it when using User Types module.

3) When an artist register, what is the best way to create another content type (cck) which has a user_refernce field and attach those together?

Regards,

Edited by WorldFallz - moved to appropriate forum.

_

WorldFallz - September 23, 2009 - 13:59

The best way to do this is with the http://drupal.org/project/content_profile and http://drupal.org/project/autoassignrole modules rather than core profile + user_types. you can then use http://drupal.org/project/pageroute to create multistep forms. You might also want to try the http://drupal.org/project/multistep module.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

The way I'm handling it our

Shawn_Smiley - September 23, 2009 - 15:42

The way I'm handling it our site is to do a custom template for the registration form and then use JQuery to simulate a multi-step form (i.e. hiding/displaying sections as needed). That way I didn't need any extra modules such as content profile.

I then put a bit of logic in my module code to assign the user account to the correct roles based on the options the user selected during registration.

Here is how you can create a custom template for your registration form(I'm using a zen subtheme here):

In your theme template.php file, add the following code to theme_theme():
$hooks['user_register'] = array(
'arguments' => array('form' => NULL),
'template' => 'user-register', // this is the name of the template
);

Next create a new template file named "user-register.tpl.php" in your theme folder.

Layout your registration form anyway you want to in this template file. I also created a user-register.js file that contained the jquery for hiding/showing form sections as the user goes through the registration process.

How do you control the fields?

maozet - September 23, 2009 - 17:12

So, if i understand you right i should add fields using Profile (Core) module and then just manipulate those based on user selection using a custom template.

What about if i want to add a cck field like Location? Is it possible to add a cck field?

_

WorldFallz - September 23, 2009 - 17:21

Is it possible to add a cck field?

Not to core profiles-- that's exactly why the content_profile module was created. If core profile fields provide what you need then you can use the core profile module. If you want cck profiles then you need to use content_profile.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

multi content_profile

maozet - September 23, 2009 - 17:18

How do i dispaly different content_profile for different user?
Lets say my first registration page is

select registration method:
1) Normal user
2) Business user
3) Contribute user

then i need the display different fields for each type.
How do i do it with the above modules?

i have same problem maozet

esmailzadeh - November 28, 2009 - 10:22

i have same problem maozet

 
 

Drupal is a registered trademark of Dries Buytaert.