5

I'm trying to implement a membership site and am considering using a Profile2 profile form as an application for membership.

So I'd make a profile type for Membership A. The user would apply for Membership A, get admin approval, then be given an account with Membership A.

Later, they might want to upgrade their membership to B. Can they just switch their Profile type to a different one? Or submit a request for this and an admin changes their profile type?

Note that Membership A has fields 1,2,3,4 and Membership B has 1,2,3,4,5,6,7,8,9. So maybe just add a second profile type (B, with fields 5,6,7,8,9) rather than switch?

1

It's up to you whether it is better to duplicate fields 1 - 4 or not. That depends on your specific requirements, what the fields are, etc.

In my experience I generally go with A (1, 2, 3, 4), B (5, 6, 7, 8, 9) and the fields are usually logically grouped into each profile. For example there might be 2 profiles like "Personal information" and "Employment information" or something like that, which obviously will have their own different grouping of fields, but I can see there may be cases where you might want to go the other way.

One annoyance that you might have to deal with if replicating fields is that when a user switches types they have to enter information into fields they already filled out in the other profile. That would annoy me as a user. You could work around that though and auto fill the fields.

Either way, you can control access to different profile types based on user role.

So the easiest solution would be to configure a role for each of the profiles and then have an administrator add/remove the roles from users as required.

If your use case allows for it there are also modules that allow users to change their own roles (you can limit it to specific roles so they can't make themselves an admin), for example role delegation. This might be appropriate for some websites. Just make sure they can't give themselves any dangerous permissions.

  • So, instead of switching memberships and having to fill out fields again (I really want to avoid this), could the user be assigned A initially (and fill out 1,2,3,4) and later choose to ADD membership B (and fill out 5,6,7,8,9, but still have the other profile in effect and therefore not need to re-fill out 1,2,3,4). In other words, can a user have more than one profile at a time? – Christopher Dunning Nov 18 '14 at 0:34
  • Yes, users can have multiple profiles. When you go to the edit user page each profile will have it's own separate edit tab (there may be a way to merge them into a single form but I've never looked into it). – rooby Nov 18 '14 at 0:48
  • Thank you. So, to be sure I understand, you CAN switch a user from one Profile to another? In other words, the user submits their initial registration (using Profile2 Registration Path) as Membership A, but later upgrades to Membership B. Can the user be switched from A TO B? I'm distinguishing this from switching roles (which I will also want to happen). – Christopher Dunning Nov 18 '14 at 1:22
  • Not exactly "switching profiles" but there are permissions for editing & viewing each profile type so you can toggle on/off the ability to view/edit each profile type based on user roles, which has pretty much the same effect. – rooby Nov 18 '14 at 1:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.