Subscription by Role

richard.e.morton - January 17, 2009 - 13:35
Project:Subscriptions
Version:5.x-2.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi There,

We have setup a large drupal site for Plus!. The site has all the members of Plus added to it by our membership secreataries and the administration is distributed, and therefore must be simple.

Currently the users are auto-subscribed to the og's that are relevant to the user based on teh roles selected for that user. We would also like that to happen to the forums in Drupal.

So we'd like subscription to Categories (and sub-categories) based on role...

Does subscriptions module support this?

Thanks

Richard

#1

salvis - January 17, 2009 - 13:47
Status:active» fixed

Yes, look at admin/settings/subscriptions/userdefaults/taxa

The category subscriptions will be assigned when new users are created with the respective roles.

Adding/removing roles later doesn't make any difference, and there's no way to bulk-create subscriptions for existing users — you'd have to do that manually through SQL.

#2

richard.e.morton - January 17, 2009 - 14:16

Wow, that was a fast response.

That is a big shame that later changes dont update the subscriptions as that is how og multi-mandatory groups per role works for OG.

Could this be a feature request and what are the chances of this being folded into drupal 5 version (we are a long way away from upgrading to drupal 6 due to modules not being ported.

thanks

R

#3

richard.e.morton - January 17, 2009 - 14:20
Status:fixed» active

#4

salvis - January 17, 2009 - 15:45

#5

richard.e.morton - January 17, 2009 - 15:49
Status:duplicate» active

Hi There,

Sorry to be a pain, but the way it has been implemented to date is not usable for many many sites where roles change due to elections and so on. This would be painful to administer and just will not work. I understand that the propoer implementation where the subscriptions update as roles change is more difficult to implement, but that doesn't mean it should be flagged as fixed or a duplicate, when it is not either.

I hope you can re-review this request.

Thanks

Richard

#6

salvis - January 17, 2009 - 16:25

Have you read http://drupal.org/node/171853#comment-678913 ?

I don't see how your request significantly differs from the other one. The part that can reasonably be implemented has been implemented, and that's why it was marked fixed.

If you want to discuss this further, then start by answering each of the questions in http://drupal.org/node/171853#comment-678913; providing a patch, ideally an add-on module, might help, too...

Oh, and there'll be more questions...

#7

richard.e.morton - January 18, 2009 - 15:46

Hi There,

As requested, your list of questions and the preferred solution

What happens if you add/remove roles to users?
- the subscriptions would update based on the new roles.

What happens if you remove roles from the site?
- the subscriptions for those roles would get tidied up and removed for the roles that are removed.

Is it legitimate to add subscriptions to a user (because you've added them to a role that the user has), even though that user has opted out of all originally assigned subscriptions (they don't want to receive email)?
- OGs are updated with the "multiple mandatory groups per role" module would reset the roles to based on the newly adjusted roles, this is explained in our forums and users, although a tiny bit annoyed live with this. They can always re-unsubscribe.

- it would be fantastic if the two modules can stay in step with regard to how this works so that it is consistent across the site, I can understand if this is difficult/impractical to coordinate.

What happens if a user has opted out of a subscription and you give them a new role that has that same subscription and adds it again?
- as above, users subscriptions are overridden - this would only ever happen on election and renewal of their account (we also use account expiry as membership to the club is for 1year and the website login is disabled if they fail to renew).

Thanks

Richard

#8

salvis - January 18, 2009 - 16:25
Category:support request» feature request

What is the URL of the "multiple mandatory groups per role" module? Apparently, you have a very specific behavior in mind, which is that of that module. That is certainly a good start, but probably not universal.

Your model implies that your users buy access to groups and forums (along with the corresponding subscriptions), and they lose access and subscription at the same time. IOW, you may not even want to let them subscribe and unsubscribe by themselves, because you're selling a package.

If your users pay a yearly fee for your services, then they'll be much more tolerant (about receiving unwanted notifications) than with a free website. This is outside the mainstream, and while I can see your use case, this needs to go into a separate add-on module.

Who wants to develop and maintain it?

BTW, there's a technical problem: Drupal does not provide any hook for the creation or removal of roles.

#9

richard.e.morton - January 18, 2009 - 17:04

Hi There,

ok, I think we are talking at cross purposes and getting ourselves confused.

The website is not charged for, members join an in real life club, the club has a website for which they get access.
The club is run by the members for the members, we are all volunteers.

Members join their local group. Their local group is a member of their local area, areas are members of National.

Each part of the organisation has forums for certain topics, such as event announcements, political discussions, and "other".

Members may also choose to volunteer their time to assist in certain areas (such as committees), these members get additional rights to access certain extra forums.

What I am looking for is a way to notify users of posts to only the forums they have access to / have interest in. They can of course turn off the notifications, but at the moment there are no notifications and that means the forums are not really getting used.

If a member gets elected to a committee, or changes group then the administrator changes the drupal roles configured for the members position / group. MMGBR* updates the OGs the member is subscribed to so that they are updated to new posts to the river of news for their group. We are looking for the forum notifications to be updated as well, so they get emails of new posting in only the forums that are relevant to them

I hope that is clearer, is it?

* = http://drupal.org/project/og_multiple_mandatory_groups_by_role

Richard
Plus! - Multi Activity and Social Clubs across the UK.

#10

salvis - January 18, 2009 - 17:34

Yes, some aspects are a little clearer, but your use case is not mainstream.

Just like og_multiple_mandatory_groups_by_role is an add-on to og_mandatory_group (which is an add-on to og), subscriptions_mandatory_by_role could be an add-on to subscriptions. I'm not convinced that it should be part of the Subscriptions core package, and I don't have time or motivation to work on implementing and supporting it myself.

If someone wants to do it, I'll give support, but that's it.

#11

richard.e.morton - January 18, 2009 - 17:45

Hi There,

Thanks for your honest reply regarding your motivation to build this extension. I would have though that this was a natural extension, basically updating the subscriptions based on current roles that a user has. Everything else would stay the same.

OG Mandatory Group by Role and Multiple Mandatory Groups by Role are two separate modules without dependencies between them, but your module is closer to multiple mandatory groups as your module can subscribe a role to multiple subscriptions.

anyway, thanks for taking the time.

Rich

#12

cozzi - March 23, 2009 - 15:05

There is a thread of need here though for the content admin. I see where subscriptions can be set up to default subscribe users by role, that's great for new users. But, planning not always be 100% perfect it would be nice if an admin had a way to bulk subscribe many users.

Currently I'm looking at massaging the DB to do this but I really hate to do stuff like that as it normally results in trouble. (Keeping in mind that I must first attempt to learn the structure first - and at best I can only assume I figured it out, yes.)

Any thoughts?

 
 

Drupal is a registered trademark of Dries Buytaert.