Hello,
I'm trying to move a D5.x site to D6.x (mainly because I can't get views1 to do what I want so through I should move forward to views2). On my D5.x (http://grampianlocums.org.uk) site I use a technique similar to that described in http://drupal.org/node/194747 to have new users specific role and then collect profile content specific to that role at registration. For D6.x site (curretly under development at http://tayside.grampianlocums.org.uk) as described in http://drupal.org/node/333260 I have set up autoassign_role to allow users to select the "type of account" or role they will have; I've installed profile_role and profile_content and set it so that some of the mandatory profile content I have created is only for one user role. (e.g. student - matriculation number) however I can't work out how to get this only to show up if the role type selected is student as unlike in my D5 set up where role signup puts a page with the role selection first in D6 it is all on one page. Any suggestions ?

Thanks

Ian

Comments

himtuna’s picture

I am also waiting for someone to come up with a solution to give present role specific profile fields at the time of registration. Can we ask auto assign role module maintainer to give port such facility within its module.

The only option that I have to disable showing all the profile fields at the time of registration and wait for the user to update it manually. We can even trigger the message displaying "Please update your profile"

But we do need a robust solution.
Regards
Himtuna

uasport’s picture

Drupal 6, auto assign role, profile role, rules modules
I'm looking for this functionality also. This is the process I'm trying to implement.

-user register's with username and email, selects a role (auto assign role) and hits submit.

-after email verification mail and login, rules redirects user based on role to role-specific profile edit page and display's an "update your account info" message.

-a condition in rules would allow this redirect to occur until required profile fields are completed.

I've got the role-specific profiles setup and registration w/auto assign, but the rule to make this happen is kicking my butt. And my tokens in the rules redirect to url aren't working at all.

I'm cool with this process if I could get it to work.

Any ideas?

himtuna’s picture

Instead can we have ajax things , when user clicks the specified roles the corresponding fields are presented to him via ajax( on the same page).
The fields which are marked to be presented to users on the time of registration are only shown.

The functionality that you are mentioning can be achieved more sophisticatedly via
http://drupal.org/project/pcp module. Please have a look at it.

boombatower’s picture

Status: Active » Postponed (maintainer needs more info)

How does the module know what role the user is at registration?

himtuna’s picture

man dont ask me I am not a programmer. but idea for this module uasport gave already exists to some extent with pcp module.
Virus 2k9 MSIT Techfest

boombatower’s picture

I was asking...what would the user do that would allow this module to know what role they were going to be.

iant’s picture

I'm sorry but I don't see how PCP helps. If I use content_profile as has been suggested then there is no user data in the Profile, but it is all in a node created by content profile thus there are no fields for PCP to mark as complete.

What I am looking for is that user type A (e.g. student) the MUST put in a matriculation number as part of the registration process but for user Type B (e.g. Teacher) they are NOT required to put this detail and must add some other detail. If I put either of these fields in the profile and make them mandatory then it becomes impossible for either user type to register. So I looked at content profile and CCK to store the details, the issue is how to get the right bits displayed on registration depending on their role.

This worked really well in D5 using role-signup [see http://mybesinformatik.com/content/custom-role-dependent-user-profiles] however this is depreciated and we only have auto-assign role which unlike role-signup does not put an extra page into the sign up process

AJAX may well be fine but that means I need to learn how to use it and programme. I'm not a programmer I'm a drupal "USER" who knows a little bit of programming - enough to patch stuff, plug modules together and occasionally/rarely change the bits I need.

From the requests above there is clearly a need for this functionality ? should I be reassigning this issue to auto-assign role ?

boombatower’s picture

@iant: Probably makes more sense to move it. This module can't do anything on registration till some module provides the role the user will be registering as...that is out of the scope of this module.

uasport’s picture

The PCP module looks promising. I have to figure out how to add the latest patch which would allow me to use the rules module with PCP. The patch allow me to create a rule that will redirect a registered user at login to their specific profile edit page if it isn't completed. Since I have the auto assign role and profile role modules installed this maybe be a viable work-around for role specific registration forms. It creates an extra step, but it the only way to accomplish this that I've found.

I'll let you know what happens.

iant, check out the profile role module. It lets you create role specific profile fields. Content_profile doesn't work with PCP at this time.

iant’s picture

Project: Profile role » Auto Assign Role
Version: 6.x-1.2 » 6.x-1.0-beta3

Thanks bombatower. Looking at your module I agree it needs to have the role passed to it from auto assign role - so I'm changing the project on this issue to correctly reflect this.

NB. for those looking at my sites mentioned in the initial post I have moved the D6 development site http://development.grampianlocums.org.uk/

uasport - Just checked I already had Profile_role installed. happy to test anything you come up with. It is a shame that auto assign role is missing the functionality of the role-signup it superseded.

Ian

iant’s picture

Status: Postponed (maintainer needs more info) » Active
riverfr0zen’s picture

Been some time since patches for this have been presented, and there have been various related issues submitted here and there. I've tried to roll-up a solution for this that utilizes autoassignrole in conjunction with the content_profile module. Patches applicable to the latest dev version of these modules are available. You can see a more complete description of these patches (and instructions on getting this to work) here at the link below, but I'm also attaching the autoassignrole patch here for the maintainer. Please note this patch will probably work best with the corresponding content_profile patch.

See complete details here: http://drupal.org/node/313341#comment-1460184

riverfr0zen’s picture

Status: Active » Needs review
riverfr0zen’s picture

Version: 6.x-1.0-beta3 » 6.x-1.x-dev
cyberswat’s picture

Status: Needs review » Postponed (maintainer needs more info)

does the work done on #477910: fix / simplify content profile integration resolve this issue? This is the last item I need to clean up before moving on to the d7 port.

cyberswat’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Assuming this is no longer an issue due to lack of response

iant’s picture

Hi,

Sorry I've not had time to test the latest patches. My day job has been prevented me from trying them. I will advise if I have problems with then once I have the chance to try them; but I doubt it will be this week as I'm overloaded as it is. Can I pass on my thanks to all who have worked on this so far.

Ian

andrenoronha’s picture

subscribing

BleuBiRTH’s picture

subscribing

Bilmar’s picture

subscribing

doublejosh’s picture

I'm hoping the correct Content Profile node-type could be displayed while allowing a specific Auto Assign Role during registration via the "Assign from Path" method.

Meaning a URL of mysite.com/join/artist can create a user with role "artist" and a content profile of "artist_profile", while an URL of mysite.com/join/seller can create a user with role "seller" and content profile "seller_profile".

That's my goal. Any help / suggestions?

It's also important to have just one registration form, rather than a initial form with a role selection and then a secondary form on a new page.

mrgoltra’s picture

subscribing

baxang’s picture

subscribing

guntherdevisch’s picture

also subscribing, thx

ilw’s picture

subscribing

krisahil’s picture

@DoubeJosh (#21) :: I'm looking for this same solution (trying to do it via Content Profile, Role Profile, and AutoAssignRole). Did you make any progress on this?

Thanks for any help!

projekt14’s picture

So, there is really no solution for this?

cyberswat’s picture

The solution is for a motivated user to take the time to submit a working patch that will be gladly accepted

iant’s picture

I think it *IS* possible, and I thought I had it nearly working at one stage. However I've had other priorities recently so haven't had time to work on drupal (my day job is not a web based or computer one so things like this can't be done in "spare" moments at work - I have to deal with "sick (as in unwell) people"). I will try and have another look at my install as I thought I did have something that was working, but is is so many months ago and I know there have been a few upgrades since; and I've not tested the use cases since then.

IanT

iant’s picture

It appears to work on my development site http://development.grampianlocums.org.uk/

Looking back at what I did I have ARR and CP enabled and have made a new node called role selection which is then referenced in the ARR assign from path bit where you can pick a new node to replace user/register.

it appears relatively straight forward now.

IanT

projekt14’s picture

That looks perfect!
So this can be down with the 2 modules installed and without any code-changes? Than it would be great if you could explain the solution a bit more.
Thanks in advance!

guntherdevisch’s picture

Status: Closed (fixed) » Active

Yes i'm also looking for such a solution. Would be great if you explained it, iant.

Thanks,
Gunther

ilw’s picture

@iant #30: Looks Great!

Waiting for news...

iant’s picture

StatusFileSize
new201.28 KB
new195.06 KB

Sorry, real life has been keeping me busy.

1) in the Roles module create the Roles you want to have in my case
Locum and Practice
[image1]
2) in Auto-assign Role disable automatic assignment and then use "assign by path" to create unique paths for both user types
[image2]
3) create a new node (page) to list both of these types and give links to the sub pages for each user type registration i.e. the paths you set in assign by path.
4) use CP as previously described by others to create profiles for each user type.

projekt14’s picture

Mmmh, unfortunately this isn't working for me. I always get the standard registration page...

Berliner-dupe’s picture

Same problem here.

I set a new path under "Assign from Path" -> "User Register Node" (my Test-Register-Node is node/23146) and save. I got the message "Settings are saved"

When i now click the Register-link - i see only the core-register-page - when i show under "Assign from Path" -> "User Register Node" the field is empty.

I retry it (5 times) but it dont work.

I tested 6.x-1.2 and 6.x-1.x-dev - same problem.

Has anyone an idea?

Matthias

Berliner-dupe’s picture

Status: Active » Fixed

Ohhh - its work now.

But - why i must write the path to "User Register Node" so?

Role Selection [nid:23146] ????

When i set the "User Register Node-Path" -> node/23146 its dont work!

But "Role Selection [nid:23146]" is ok for me

I am happy now ;-)

For other users .... look screenshot http://drupal.org/files/issues/Untitled2.png - this works fine for me.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.