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
| Comment | File | Size | Author |
|---|---|---|---|
| #34 | Untitled.png | 195.06 KB | iant |
| #34 | Untitled2.png | 201.28 KB | iant |
| #12 | riverfr0zen_20090409_autoassignrole_issue_337059_6.x-1.x-dev.patch | 8.44 KB | riverfr0zen |
Comments
Comment #1
himtuna commentedI 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
Comment #2
uasport commentedDrupal 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?
Comment #3
himtuna commentedInstead 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.
Comment #4
boombatower commentedHow does the module know what role the user is at registration?
Comment #5
himtuna commentedman 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
Comment #6
boombatower commentedI was asking...what would the user do that would allow this module to know what role they were going to be.
Comment #7
iant commentedI'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 ?
Comment #8
boombatower commented@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.
Comment #9
uasport commentedThe 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.
Comment #10
iant commentedThanks 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
Comment #11
iant commentedComment #12
riverfr0zen commentedBeen 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
Comment #13
riverfr0zen commentedComment #14
riverfr0zen commentedComment #15
cyberswat commenteddoes 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.
Comment #16
cyberswat commentedAssuming this is no longer an issue due to lack of response
Comment #17
iant commentedHi,
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
Comment #18
andrenoronha commentedsubscribing
Comment #19
BleuBiRTH commentedsubscribing
Comment #20
Bilmar commentedsubscribing
Comment #21
doublejosh commentedI'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.
Comment #22
mrgoltra commentedsubscribing
Comment #23
baxang commentedsubscribing
Comment #24
guntherdevisch commentedalso subscribing, thx
Comment #25
ilw commentedsubscribing
Comment #26
krisahil commented@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!
Comment #27
projekt14 commentedSo, there is really no solution for this?
Comment #28
cyberswat commentedThe solution is for a motivated user to take the time to submit a working patch that will be gladly accepted
Comment #29
iant commentedI 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
Comment #30
iant commentedIt 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
Comment #31
projekt14 commentedThat 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!
Comment #32
guntherdevisch commentedYes i'm also looking for such a solution. Would be great if you explained it, iant.
Thanks,
Gunther
Comment #33
ilw commented@iant #30: Looks Great!
Waiting for news...
Comment #34
iant commentedSorry, 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.
Comment #35
projekt14 commentedMmmh, unfortunately this isn't working for me. I always get the standard registration page...
Comment #36
Berliner-dupe commentedSame 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
Comment #37
Berliner-dupe commentedOhhh - 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.