Show role specific profile at registration

iant - January 26, 2009 - 21:27
Project:Auto Assign Role
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

himtuna - February 1, 2009 - 07:26

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

#2

uasport - February 4, 2009 - 16:37

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?

#3

himtuna - February 7, 2009 - 06:23

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.

#4

boombatower - February 8, 2009 - 05:02
Status:active» postponed (maintainer needs more info)

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

#5

himtuna - February 8, 2009 - 06:56

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

#6

boombatower - February 8, 2009 - 21:29

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

#7

iant - February 11, 2009 - 10:47

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 ?

#8

boombatower - February 11, 2009 - 19:06

@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.

#9

uasport - February 11, 2009 - 19:29

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.

#10

iant - February 12, 2009 - 14:31
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

#11

iant - April 2, 2009 - 23:41
Status:postponed (maintainer needs more info)» active

#12

riverfr0zen - April 10, 2009 - 13:58

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

AttachmentSize
riverfr0zen_20090409_autoassignrole_issue_337059_6.x-1.x-dev.patch 8.44 KB

#13

riverfr0zen - April 10, 2009 - 13:58
Status:active» needs review

#14

riverfr0zen - April 10, 2009 - 13:58
Version:6.x-1.0-beta3» 6.x-1.x-dev

#15

cyberswat - August 20, 2009 - 20:44
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.

#16

cyberswat - August 24, 2009 - 17:44
Status:postponed (maintainer needs more info)» closed

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

#17

iant - August 24, 2009 - 20:11

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

#18

a.luiz.n - November 3, 2009 - 20:00

subscribing

#19

BleuBiRTH - November 9, 2009 - 14:03

subscribing

#20

trupal218 - November 9, 2009 - 14:29

subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.