several very useful features
joehudson - September 20, 2009 - 17:54
| Project: | Simplenews |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi,
Last year I integrated some handy features into Simplenews including:
- full templating for subject, body and footer.
- tokens for subject, body and footer, allowing emails with "hi, !subscribername..."
- custom token callback functions, so you can dynamically generate customized content for particular subscribers. callbacks get the subscriber account object and return the text to be substituted
- customizable anti-spam policy notice for each subscription block (I'm suprised this still isn't a standard feature)
- optional name field in subscription block (enabled in the block config page), so subscribers can be associated with a name, even if they don't have a full user account
- made newsletters have assignable authors (not fully implemented, but currently serves to restrict access appropriately) The idea is you can have multiple users with their own newsletters, that can only author their own newsletters, not any newsletter (which seems to be the current behaviour).
- added the subscriber hash to the session, to enable other modules to pick up on the fact someone has recently subscribed
- altered the presentation of the subscription block so by default people are subscribed (no radio buttons) and the submit button is labled 'subscribe'. seems to make much more sense!
- fully configurable subject, so it doesn't have to always begin with '[newletter name]'
think that's most of it.
I've just finished patching the latest (10th Sept) dev release of Simplenews with these added features and wanted to share. As you will see from the code, I've made quite a lot of changes (including a few to the schema).
It would be great if some of these handy features could be rolled into the standard release! I'd love some feedback on this.
| Attachment | Size |
|---|---|
| simplenews.zip | 200.27 KB |

#1
:) left out something in the simplenews.module..
#2
haha, just remembered, some of the theming of the template callback interface uses a little module I wrote for theming lists in various ways. easy enough to strip out the dependency, but here it is for anyone who wants to use it.
#3
Nice functions, but when I enable show name in block config, there still does not appear any name field any hint?
#4
subscribing