- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- December 1969
- Status:
- offline
- last visit:
- 15.03.06
- Posts:
- 6
MODERATORS: Feel free to move this Thread if it doen't belong here, I'm not 100% sure it does...
For a while now, I've been thinking about implementing E-Mail alerts.
I would like for users of my site to get an Email the moment an article about Topic X goes online. As far as I can see nobody has come up with somthing like that yet (please correct me if I'm wrong).
The thing is, I'm not sure what the best way to implement this functionality is. A hack would be the easiest for me as a programmer but I don't like to hack around core files. It's more difficult to use for anybody else out there and could fail at the next best opportunity b/c of changes to the core.
A hook? I'm not familiar with the implementation of hooks in PN and not sure where I'd hook the functionality in.
A Module? The functionality should be started (as far as I have conceptualised it) the moment a new article goes online. Can I tell PN to start a module when putting something online? Wouldn't a hook be better for that?
So you see, I have an idea, a concept of how I should implement the E-Mail alerts, but I'm not sure what the best way would be to do it.
Any ideas? Any pointers?
Thanks in advance
thewub
P.S.: SUre, I could with for such an implementation from the core Members an leave it at that, but the guys and gals are doing enough work already, some of us "others" should take a little bit of the workload... -
- rank:
-
Helper
- registered:
- July 2004
- Status:
- offline
- last visit:
- 12.06.05
- Posts:
- 114
You'll want to write a module that checks the topic of a new article when it's posted and then sends the e-mail off to those who have subscribed to get notices about new articles in that topic. It can probably be triggered with a hook, but I'm still trying to get the hang of hooks, so I can't get terribly specific on that. -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 09.11.08
- Posts:
- 13413
Quote
Wasn't there a Notifications hook wandering around in .764 days?
pnNotify, was at the NOC, never completed IIRC. May now be at code.zikula.org
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
- rank:
-
Helper
- registered:
- February 2005
- Status:
- offline
- last visit:
- 14.11.08
- Posts:
- 284
