Posted by Jaza on July 27, 2009 at 5:59am
3 followers
| Project: | Mailing List |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Jaza |
| Status: | closed (fixed) |
Issue Summary
I've added quite a lot of code to this module, in order to get it to do everything I need. The two main features I've added to it are:
- Backend UI for each mailing list, allowing individual name / email pairs to be listed and edited.
- Ability to import emails into a mailing list from a CSV file
I've also moved the admin area from 'admin/settings/mailing-list' to 'admin/build/mailing-list'.
Hope others find this patch useful - and if it's worth it, might even be good to get it committed back.
Note: this patch depends on these two other patches in the queue:
#302953: Mailing List
#298791: Exporting
| Attachment | Size |
|---|---|
| mailing_list_admin_ui.patch | 21.49 KB |
Comments
#1
Hello Jaza,
Are you using this on production site ?
If you would give the two other issues you've mentioned a thorough review and set them to RTBC i would be willing to commit them soon.
Thanks, let me know.
#2
Hi litwol,
I'm currently using this module on a site that's in beta, and that's scheduled to go live next week. I've reviewed the patches in the other two issues, and they both work and look reasonably well-written to me. I've set both of them to RTBC.
#3
Please reroll this patch. It failed to apply after i commited the other two mentioned patches.
localhost:mailing_list litwol$ patch -p0 < mailing_list_admin_ui.patchpatching file mailing_list.install
patching file mailing_list.module
Hunk #1 FAILED at 6.
Hunk #2 FAILED at 106.
Hunk #5 FAILED at 198.
Hunk #6 succeeded at 307 (offset -2 lines).
Hunk #7 FAILED at 331.
4 out of 7 hunks FAILED -- saving rejects to file mailing_list.module.rej
#4
New patch, which has quite a few improvements over the old one:
mailing_list.admin.inc.#5
Thank you!
I really enjoyed the new functionality adition, good job. I've commited it.
Let me know if there is something more you wish to add. I think soon would be a very good time to make an official release.
#6
Thanks for committing my big patch, litwol.
Mostly looking good... except, I discovered that I made one big mistake with the DB schema changes. I made a unique key index for the 'mail' field in the 'mailing_list_emails' table. However, the unique key should be for the combination of 'mlid' and 'mail', because an e-mail should only be unique in the context of the mailing list that it's in.
I've patched the same update function, rather than writing a new update function, as I doubt that anyone has upgraded in the 6 hours since this change was committed (plus this module currently has no stable releases).
Also, a few other minor fixes:
'#required' => TRUE, so it's validated automatically)'#required' => TRUEto the 'mail' field in subscription block formI agree, an official release should be made soon.
#7
@Jaza
I dont think @name field should be required. My point about disagreement is to point out that some one else may also have similar opinion. therefore i think it is a good idea to make name field optional. Each mailing list could have a checkbox that says 'require name'.
What do you think of that ?
In the meanwhile i'm commiting your patch :)
#8
@litwol
The 'name' field is not required. I agree that it's best to allow site admins to choose whether or not to have this field for each of their mailing lists. That's why my main patch in this thread added a checkbox to the configuration form for each mailing list's subscription block, called 'Show name field in subscription form'.
When this checkbox is ticked, the 'name' field is shown and is required in the subscription block form. When this checkbox is un-ticked, the 'name' field is hidden (and is obviously not required). I hope that fits with how you want it to work too. Or... are you saying that this checkbox should be in the mailing list add/edit form, rather than in the config form for a mailing list's subscription block? That sounds fine to me as well.
Anyway, thanks for committing the patch so fast!
#9
Automatically closed -- issue fixed for 2 weeks with no activity.