For my purposes, I had to tweak the code to allow for the following features:
* List permissions- I have some email lists that can only site moderators should be on, and so I hooked this module into access control on a per-list basis. After applying these two patches, you will now have to set permissions for each list you create at Access Control (admin/user/access).***
* List descriptions- I needed short descriptions of the lists built in to the registration form, so I added that as a field. Each list's fieldset now shows a customizable description of the list.
* Digest optional- I did not want users subscribing in digest mode, so I made that option easily removable. It will be allowed by default (so current users will see no change), but you can go into user_mailman_register settings and turn off digest mode if you wish.
* "yes" is default during registration- To make it easier for the user, I added in one line of code to make the default value "YES" during new-user registration.
And one very minor change: fixed a spelling mistake in "partecipate".
These patches are against 5.x-1.2.
***NOTE: If you have set mailing list subscriptions to be displayed in the new user registration form, then keep in mind you will also have to make each list available for subcription to ANONYMOUS USERS via Access Control (admin/user/access). This is because, when a new user is first registering for the site, the only role they have is anonymous user (obviously). But don't worry-- random people won't be able to see the lists as long as you keep "access user_mailman_register" turned off for anonymous users.
Comment | File | Size | Author |
---|---|---|---|
#6 | new_features_2.patch | 17.89 KB | sbandyopadhyay |
#3 | new_features.patch | 15.24 KB | sbandyopadhyay |
#2 | install.patch | 4.02 KB | samuelet |
#1 | install.patch | 2.43 KB | sbandyopadhyay |
#1 | module.patch | 7.08 KB | sbandyopadhyay |
Comments
Comment #1
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedSo it turned out I need a few other features to be made optional, so while I was at it, I expanded on my above changes. This also adds the "force signup" feature requested by http://drupal.org/node/220664
These patches are ALSO against 5.x.-1.2. IGNORE MY PREVIOUS PATCHES ABOVE!! Use these two.
This new patch has all of the new features above, plus:
* Can turn off the "unsubscribe" option- this will force all users to join the list.
* Can turn off the "temporarily disable delivery" option- if available, this option can conflict with the automatic moderation features of mailman. I have my list set so that all new members are automatically moderated, but this could be bypassed by joining the list, temporarily disabling delivery, and then rejoining the list. And given how quick and user-friendly this module is -- you can entirely bypass all of Mailman's annoying, verbose emails to confirm this and confirm that -- there really isn't a need to temporarily disable delivery anymore, anyway. You might as well unsubscribe and then re-subscribe.
Comment #2
samuelet CreditAttribution: samuelet commentedThanks sbandyopadhyay, it's a great work.
I'm going to test it.
For the moment i've updated the install patch to fix a bug with mysql and to manage drupal updates.
Just a note about default registration: i'd prefer to set it as NO and let the user the task to subscribe himself. Then i suppose that to force subscription, the unsubscribe option should be checked, and, in case it's off, the registration has to be turned into YES. What about it?
Thanks.
Comment #3
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedI had a few more feature requests, so I went ahead and coded them. I've combined these and all changes above into a single patch this time, so yet again, ignore the above patches and just use this one. I've also compiled a list of all changes in this patch (and the above ones) into one list:
This patch is against 5.x-1.2.
Comment #4
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedAh, sorry samuelet-- I just saw your comment after posting my new one. Sorry, my new patch didn't contain your updates to install.patch.
Regarding your comment about default registration... I would actually like to see the default be "yes" with an unsubscribe option available. I think the way to ensure maximum flexibility for admins might be to separate out the default option from which options are available, in a form something like this:
I'll give it a shot, coding that... unless you want the honors. :)
Comment #5
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedActually, wait-- my last post makes no sense. The default setting is a meaningless concept once the user has already signed up. It is only relevant on the new user registration page....
Comment #6
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedWith this new patch to 5.x-1.2, I have:
In these cases, the default will be YES.
Comment #7
samuelet CreditAttribution: samuelet commentedPatch ported in the development release. I've only fixed the blank subscription form that appears when a user has any subscription access and made some cosmetic changes.
If any bugs will be reported, it will go in 5.x-1.3.
Thanks.
Comment #8
sbandyopadhyay CreditAttribution: sbandyopadhyay commentedi haven't tested it yet, because my site is going into production tonight with the patched version from a few days ago... but that version was running just fine!
i looked through your code, it looks great, thanks samuelet! i will let you know if there are any bugs by later this week
Comment #9
samuelet CreditAttribution: samuelet commented