First and foremost, thanks for the module.

I'd like to set different users default subscription per role, which i believe the module support, but I lack to find the right configuration.

Have two roles set up: class_a_user and class_b_user, respectively i set up two forums: forum_class_a and forum_class_b. Now, i'd like user of class_a_user to get notification of forum_class_a posts, and class_b_user to get notification of forum_class_b posts. In order to accomplish, I navigated into admin/settings/subscriptions/userdefaults/taxa and tried to set different subscription based on user's role, in other words, i've selected and load appropriate role from the Admin Information->Roles submenu and set appropriate subscription - the issue i encountered is that it doen't destibguahe between diffrent roles, and the last subscription setting applies to all roles.

Thanks in advance,

Comments

salvis’s picture

Category: support » bug
Status: Active » Fixed

Yes, the form was not working correctly.

I've committed fixes to both -dev versions (give them up to 12 hours to be repackaged).

Thanks for reporting!

esadot’s picture

Thanks for fixing it in such a short notice, however i'm afraid it's not completely done. The form is fixed, i.e. admin-user can set up different subscription per role, however the subscription is not being populated into a new user - subscription at user's subscription page are cleared (zero) although they were set up by the admin-user. To complete the picture, everything is dandy if the user (not the admin) manually set its subscription (at user/user-id/subscriptions) and afterwords post a node, meaning email is indeed sent out.

A minor (additional) note, for clarity, i'd day that it'd be nice if the role name would appear somewhere in the form after the admin-user hit the load button.

Regards,

p.s. - have used this version, hope it's the right one, http://drupal.org/node/247506

salvis’s picture

Yes, you have the right version. It's strange, getting the role name selected works fine for Categories but not for Content Types. I'll have to take another look.

Did you assign the role at user creation time? What type of subscription?

esadot’s picture

Role name loading and setting (admin/settings/subscriptions/userdefaults/taxa) works fine for categories and content-type, it's, however not populated to user at creation time.

I've set up different categories per different roles, and created new users. User's subscription, category sub-subscription, is empty. If I log in as the user and enable subscription per category, everything is dandy.

The issue is only at creation time of new user - category subscription, as set by the admin, is not reflected in the (new) user subscription profile.

salvis’s picture

Fixed another bug and a half. Committed to the -dev snapshots (give them up to 12 hours to get repackaged).

esadot’s picture

Persistent this little one. The good news, on the other hand, is that I believe I've discover what going on, which I hope will assist in driving the issue to closure.

So, as i said, the bug is still with us :(

My configuration contains three roles:
- auth. user
- class a user
- class b user

Setting different user default subscriptions per content-type per role and per category per role works fine in subscription admin page, however the user always gets the subscription profile of authenticated user even though it belongs to different user role (say class b user).

For an example: if the page content type is NOT set (admin/settings/subscriptions/userdefaults/type) per auth. user role, but does set for class a user role, then a new class a user won't be subscribed by default to page content type. Same goes for category: if category forum class a is NOT set (admin/settings/subscriptions/userdefaults/taxa) per auth. user role, but does set for class a user role, then a new class a user won't be subscribed by default to forum class a.

Regards,

salvis’s picture

I cannot reproduce what you describe. I did the following test:

Cleared all subscriptions from admin/settings/subscriptions/userdefaults/type and admin/settings/subscriptions/userdefaults/taxa.
Added a content type subscription for Image to role Member on admin/settings/subscriptions/userdefaults/type/5.
Went to admin/user/user/create, entered the data, selected the 'Member' role and clicked on [Create new account].
The new user received the Image content type subscription automatically.

This is working as designed for me. Please perform this test on your site.

esadot’s picture

Did Image type was set under the authenticated user role? I found that authenticated user get precedence, in other words, if authenticated user role was set per the Image type, then the logic disregard the Member role subscription.

salvis’s picture

No, the authenticated user role didn't have any default subscriptions.

Are you trying to assign the same subscription (e.g. to the Image type) to both the authenticated user role and another role, with different settings (e.g. different Send Intervals)?

If you have the same subscription twice, how would you know (and why would you care) whether it comes from authenticated user or from Member?

Status: Fixed » Closed (fixed)

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

salvis’s picture

Where are we with this? If it's still an issue then please reopen it and help me more in order to reproduce it...

kenorb’s picture

Title: Users deafults per role » Users defaults per role