When I create a new forum, I often would like to subscribe a number of users to that forum. Doing this one user at a time is quite tedious.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | bulk_operations.1249502.1.patch | 19.54 KB | salvis |
When I create a new forum, I often would like to subscribe a number of users to that forum. Doing this one user at a time is quite tedious.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | bulk_operations.1249502.1.patch | 19.54 KB | salvis |
Comments
Comment #1
salvisThe attached patch lets you select any number of users from the user list (or advanced user list 2.x) and create or remove any number of subscriptions to all of them in one go.
Please try this out and let us know how it works. Also, check for interference with default subscriptions, if you're using that feature.
You need to clear the menu cache, e.g. by going to the modules list page, after applying this patch to make it work.
Comment #2
teejaydub commentedComment #3
salvisComment #4
teejaydub commentedComment #5
salvis#2 to #5 were an unrelated discussion, thanks for clearing the comments, teejaydub.
Comment #6
Anonymous (not verified) commentedThanks for all your work on this Salvis.
Will this functionality be integrated into the version 7 module?
Comment #7
salvisI was planning to do that, but interest seems to be non-existing.
Comment #8
Anonymous (not verified) commentedI see. Well, I'm certainly interested, but I completely understand. We all need to feel that our work is needed and appreciated, otherwise, why bother. So, thanks again for your work on this very useful module and all the others you maintain. If you ever do decide to implement it, that would be great. Take care.
Comment #9
salvisThank you for your kind reply.
Would you be willing to test a D7 version of the patch?
Comment #10
Anonymous (not verified) commentedYes, of course. However, bear in mind that I am a newbie. No training in LAMP; figuring out Drupal; I know HTML. I don't know how to apply a patch, so I will need a bit of instruction. That said, I can open the various code files in BBEdit and make changes which I am assuming I would have to do in order to apply a patch. Thanks.
Comment #11
salvisApplying a patch is described in http://drupal.org/patch/apply, but it requires having Git installed. This is explained in the surrounding chapter.
This is a bit steep, but it's something that you'll want to learn sooner or later anyway, if you want to go beyond the pre-cooked meal. :-)
Comment #12
salvis@MadEye4 and All:
Sorry for taking so long on this. I've implemented and pushed it to the D6 and D7 -dev versions (give them up to 12h to be repackaged).
Please try this out and let us know what you find.
Comment #13
Anonymous (not verified) commentedThanks Salivs. I installed the new update, but I can't find the interface for making the bulk changes. Perhaps I am missing something.
My installed version is listed as: Subscriptions 7.x-1.0-beta3+2-dev (2012-Mar-15)
I cleared caches and ran the update scripts.
I noticed that the changelog in the package says:
subscriptions 7.x-1.x-dev:
- #1482720: PostgreSQL does not have IF(), use CASE instead.
- #1430446 by DamienMcKenna: Add more hook_alter calls.
Whereas the changelog on the Drupal site says:
bscriptions 7.x-1.x-dev:
6 - #1249502: Implement bulk subscribe and unsubscribe.
7 - #1482720: PostgreSQL does not have IF(), use CASE instead.
8 - #1430446 by DamienMcKenna: Add more hook_alter calls.
Not sure if that is significant or not.
Thanks again for all your work on this.
Comment #14
salvisThanks for listing the changelogs, that removes all uncertainty. The key is
The packaging script hadn't run yet and you got yesterday's package. Now I'm seeing...
Last packaged version: 7.x-1.0-beta3+4-dev
Last updated: March 16, 2012 - 13:47 (my local time)
... so if download again you should get the latest.
Comment #15
Anonymous (not verified) commentedOK, thanks. Got it installed. It sort of works, but does seem to have an issue with default subscriptions.
I have a category that is set to be a default subscription.
The bulk operation can unsubscribe users, but NOT subscribe them to that category.
I tried unsubscribing first, then subscribing and no luck that way either.
A workaround seems to be to turn off the default subscription for that category before doing the bulk subscribe.
This is just the first report. Haven't tested it more extensively with multiple users yet.
Another issue is that I can only call up 50 users on a page at a time, so it's awkward.
Comment #16
seattlehimay commentedIt took me a while to find and figure out this feature. Might I suggest that you also add a link and note from the main subscription config screen (/admin/config/system/subscriptions) similar to what you have in permissions? It could say something like "Bulk subscription - Add subscriptions to or remove subscriptions from multiple users at once from the user list." and link to the user page.
For what it is worth, the 7.x version worked great for me. I didn't have any difficulties with category defaults as MadEye4 had, but then I also had an empty slate--no users had any subscriptions when I started.
I'm using a test site, and hadn't yet granted "Subscribe to taxonomy terms" or "Subscribe to content types" to users. So one oddity is that I was unable to view user's subscriptions tabs. Not really a bug, but is there any way to view subscription info then?
Thank you so much for adding this! It will save me a lot of time, no doubt!
Comment #17
salvisI have to look into this interference...
The 50-user-limit is outside of Subscriptions' domain. Maybe there's a module that lifts that limit?
Comment #18
salvisGood idea. I try to keep these ultra-short though, so I just added a link. Done.
The idea is that the admin sees what the user sees. This is not really about bulk operations, is it? Please stick tightly to the subject and open new issues for new stuff.
I am indeed seeing some interference: the default subscriptions are pre-selected for bulk subscribing/unsubscribing. This is wrong, of course. I've pushed a fix to the -dev version (give it up to 12h to be repackaged). Please let us know if this fixes the issue.
(Keep in mind that the checkboxes are reversed during bulk unsubscribing: you need to check what you want to unsubscribe.)
Comment #20
roball commentedThank you for implementing this feature! This is the reason I do not need the Notifications module any more for D7, as I did for D6.