How would you handle multiple roles for a user?
I'm just picking the last one at this point.

Comments

pelicani’s picture

Thinking about setting a priority weighting for each role.
But where would it make more sense, in the node or in the admin settings for signup pay.
We could do both.

kbahey’s picture

This one is not as easy I initially thought it would be.

Having weights for each role in admin, and then assigning a price for each role in the node should work. We pick the lightest one (least weight) and lookup the price for that.

We can also have checkboxes as well in admin, saying which roles should have prices attached, and what is the default price if someone is not in any of those roles. So, for a site that has "admins", "moderators", "staff", "editors", "member", "anonymous", we may want only pricing attached to member and anonymous, and not the rest.

Perhaps it could be just an "Ignore" weight instead of the checkboxes.

pelicani’s picture

StatusFileSize
new1005 bytes
new9.67 KB

I'd like to think about this a bit more and create another issue for a fancy admin for role admin in the settings. Will that work?
See attached for the custom price code I've got so far.
NOTE: I had to tweak the db to allow multiple rids per node, install patch included
Let me know if you have any issues.

kbahey’s picture

Version: » 5.x-1.x-dev
Status: Postponed (maintainer needs more info) » Fixed

I committed this code, and created a -dev release, so we can get people to test the module too.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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