I've done a few mods to the notify module. Through the help of various patches, I've rigged my version to:
1) allow the admin to select what content types are included in the notifications (so you can limit which node types are included) and also
2) include nodes that are edited to be included in the email
3) give the admin a button to apply the settings to all existing users.
I've attached it here. From what I've gathered on the support board, the owner didn't want to go this route with this module (fair enough).
So what I use my module is to restrict the notifications to only include event nodes. I still need it to do two more things:
1) include the start time of the event in the email
2) only include future events.
My plan is to set the interval to a week and users will get an email once a week with all new and edited UPCOMING events.
Can anyone help getting my modified version to do this? It'd be greatly appreciated.
PS - why don't I use the subscriptions module to do this (which was one of the questions of the notify module's creater)? I use the subscriptions module for DAILY updated of other types of content. I wanted a separate email to highlight events only.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | event_notify.zip | 49.58 KB | mdowsett |
| notify.zip | 55.01 KB | mdowsett |
Comments
Comment #1
mdowsett commentedI should have noted that the ability to look for only new and edited content needs to be stripped out.
And I've attached a new copy of it....I've changed the 'notify' to 'event_notify' as I can see this spinning off to a new module....but I don't know how to start that...nor if it's appropriate to do so as all the code is currently the same as the (modified) notify module.
It almost seems like plagiarism ...
Comment #2
matt2000 commentedWill notify_by_views allow you to do what you want? It should play well with event module.
Comment #3
mdowsett commentedrats....I switched to the notifications module when notify got discontinued. I only see now that has been re-adopted.
By chance, would you know if the mods I did to notify (listed above) finally get implemented into the newer version of Notify? Cuz now that I've butchered my version of Notify, I doubt I could jump in and use the new version (and it's sub-modules)...that's why I hate modifying modules but had to since the old owner didn't want to implement these changes.
So to ask about notify_by_views....are you saying that it can take a view like http://www.goflyxc.com/events/future and notify users of all that data? Cool - I'd have to disable some of my other modules to give notify another stab...not easy on a live site!
Comment #4
matt2000 commentedYes, you can do that, and you can also take a view like /events/future/{uid} and uses Views argument handling code to notify the user of only events that are in their own city, for example.
New features aren't likely to be added to the D5 branch, but if you create a patch against the 5.x-2.x branch, I will review and apply.