Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This bug was found by azuledu: "one profile of each type is created when a new user is registered. I think that only the profiles that appear in registration page should be created.".
I will attach a patch for it.
Comment | File | Size | Author |
---|---|---|---|
#1 | auto_profile_creation_during_registration.patch | 1.67 KB | andreiashu |
Comments
Comment #1
andreiashu CreditAttribution: andreiashu commentedHere is the patch.
Edit: this doesn't resolve the issue when you go to the user profile page ('user/uid') all profiles types are displayed.
Comment #2
azuledu CreditAttribution: azuledu commentedYes, it's better to open a new issue.
Your patch works for me. Thanks again.
Comment #3
nadavoid CreditAttribution: nadavoid commentedI had to apply this patch manually. Maybe that's because I had already applied two other patches:
- 0001-Fix-autoassign-module-n-First-argument-is-expected.patch
- dont_show_group_fields.patch
In any case, this patch didn't work for me. I've detailed what's happening for me here: #339180: Nodes for all profile types are created at registration, regardless of settings. Here's probably the important part:
Is there another patch I need to apply?
Or maybe a better question: What patches to I need to apply, and in what order, to get the current status?
Comment #4
nadavoid CreditAttribution: nadavoid commentedupdate: I applied these patches in order, on a fresh Drupal 6 install, and this problem was solved. Now when a user registers, only relevant nodes are created.
I applied these patches:
1. 0001-Fix-autoassign-module-n-First-argument-is-expected.patch (from http://drupal.org/node/321110#comment-1118194)
2. the update mentioned here: http://drupal.org/node/321110#comment-1129688
3. dont_show_group_fields.patch (from http://drupal.org/node/337199)
4. auto_profile_creation_during_registration.patch (from this page: http://drupal.org/node/337423#comment-1119820)
THEN I installed the autoassignrole. I suspect that the reason these patches weren't working for me earlier has do do with the weight of the autoassignrole module, which is set in the .install file.
It's working nicely! Thank you!
Comment #5
upupax CreditAttribution: upupax commentedSorry, do you plane to release a new -dev version with all this patches?
Comment #6
liquidcms CreditAttribution: liquidcms commentedtried all the patches, i guess i was hoping this solved the issue with AAR and CP combining to replace the old role_signup.module.. but i guess it still doesn't do that..
Comment #7
MrVee CreditAttribution: MrVee commentedPatch 4 mentioned in nadavoid's post at #4 doesn't work for me, it says "malformed patch at line 39".
I have AutoAssignRole and Content Profile installed. When I add a field to Content profile which is intended for "Role 1" it also displays in "Role 2" registration page. How can I resolve this issue?
I've tried Nadavoid's suggestions to apply the patches he mentions but the fourth patch doesn't want to be applied.
Any help will be appreciated. Please.
Comment #8
IckZ CreditAttribution: IckZ commentedIs any of these patches mentioned in #4 already in the current dev version of auto assign role?
Comment #9
gmclelland CreditAttribution: gmclelland commentedCan someone please update us on the status of this issue?
The Auto Assign Role module is creating a node for all the content profile roles, I want it to ONLY create roles for the content profiles that the user selected on the registration page. If no profiles are selected, then it should only create the Content Profile's profile node.
What's your thoughts about this?
Do these patches still work?
I tried patching, but it didn't work. I even tried manually applying the code.
Comment #10
gmclelland CreditAttribution: gmclelland commentedCan anyone give an update? I have tried tracking this down, but can't seem to find it.
This problem is really annoying because it shows each role's box on the user's "my account" page even if the user didn't select the role when he/she registered.
Comment #11
fagoAlso have a look at #477910: fix / simplify content profile integration, this should fix that issue too.
Comment #12
gmclelland CreditAttribution: gmclelland commented@fago - It does fix this issue.
Comment #13
cyberswat CreditAttribution: cyberswat commented#477910: fix / simplify content profile integration was committed today so tentatively marking this issue fixed
Comment #15
fromtheindia CreditAttribution: fromtheindia commentedHi,
I am using drupal-6.22 and Auto Assign Role 6.x-1.2. I am not able to register different roles, even i am not able to apply the patches available.
Thanks,