I can see all fields of all profiles on user registration page.

But i want profile role wise. I have migrated rolesignup module for that into drupal6.

So in first step user needs to select their role. Student and teacher are two roles then if one selects student then they see only student profile fields not fields of teacher fields.

In drupal6 content-profile module doesnt provide settings like "Roles allowed to see this node profile during user registration:" in node-profile drupal 5.

Please advice.

Comments

no longer active 7’s picture

I have used autoassignrole module for this. http://drupal.org/project/autoassignrole

fago’s picture

Does this play well together with the content profile registration now, so that one can have different profiles on registration time?

no longer active 7’s picture

It is working fine with content profile registration after applying lot many patches :(

But I still found some issues because may be some patches are missing to apply still ... I have already posted it there.

So its better if one releases proper module with all bug fixes ASAP....

IckZ’s picture

does anyone have a new status for this issue?

no longer active 7’s picture

You can use new committed version of content_profile with dev version of autoassignrole. It shows fields at registration time based upon path.

Thanks,
Anjan.

IckZ’s picture

Hi,
i choose this way, but it doesn't work.. I see all fields :-(

on a fresh drupal installation i'm still not able to get it work. I'm using autoassignrole-6.x-1.x-dev and content_profile-6.x-1.0-beta3

Anyone a solution?

no longer active 7’s picture

step 1 : create two different roles like role1 and role2

step 2 : Go to admin/user/autoassignrole :
there is one setting - Assign from Path, select pages with no navigation and set diff paths for diff roles as below.
user/register/role1
user/register/role2

step 3 : Go to admin/content/types. Into that go to edit of content-types and go to Content Profile settings at bottom.
select there path on which this content-type you want to show.

step 4 : Same for another content-type. Select diff path for this content-type.

step 5 : Goto content-profile tab which comes after edit tab and set there settings of User Registration based on requirement.

Thanks,
Anjan.

IckZ’s picture

hi, thanks for this great answer, but I'm sorry to say that this are exactly the steps who i followed.

It still doesn't work. Maybe it is the new Version of CCK? Which Version are you using?

Thanks for helping me.

no longer active 7’s picture

Hi I forget to tell that you need to also apply some patches - http://drupal.org/node/321110#comment-1118194 and
http://drupal.org/node/337423#comment-1131270

If module AAR is already installed then apply the patch and weight of the autoassignrole module shoud be something bigger than that of cck's weight resolves this issue.

Thanks,
Anjan.

liquidcms’s picture

hey...just trying to poll the various people who are hoping to get this functionality working (i.e. old rolesignup function) and find out where thigns are at.

i'd likely spend some time working on this if my client ends up going this way, but trying to get current status of this, i am repeating my post from here: http://drupal.org/node/301464#comment-1233198 since this post seems to be the matching one for content_profile for this issue:

=================

perhaps i spoke too soon suggesting this all works.. it mostly works, but these are the bits i see busted.

would be good to hear from others what they they think the current "closest" solution is, mine is this:

- latest dev versions of all modules concerned
- patches from here applied: http://drupal.org/node/337423#comment-1131270

this is what i have working:

- 2 roles: parent, child
- 2 node types: parent_profile, child_profile
- 2 links for registration: register/parent, register/child

- link shows only the profile node type for that role
- when user registers they do get their profile node attached to their profile and they are automatically assigned to that role

bits that don't work:

- user has both node types assigned to their profile (i think patches listed above were meant to fix this??)
- if i go to std user/register i see both node types on the reg form (node settings for autoassign suggest it controls this; but dont think it is doing anything)

Can anyone confirm that this is where this solution is at?

leevh’s picture

Is this still working for everyone with the release of 6.10? I can't seem to get it working anymore, keep getting a database table error:

user warning: Table 'database.autoassignrole_page' doesn't exist query: SELECT rid, path, display, title, weight FROM autoassignrole_page in /home/iccareca/public_html/sites/all/modules/autoassignrole/autoassignrole.module on line 31.

Anyone else get this?

no longer active 7’s picture

Yes this error is coming when you are upgrading dev version of autoassignrole over any previous version. Try this after uninstall the previous version of autoassignrole and then install new version.

Thanks,
Anjan.