Fork me on GitHub

E-Mail alerts - Best way to implement them?  Bottom

  • MODERATORS: Feel free to move this Thread if it doen't belong here, I'm not 100% sure it does... icon_redface


    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...
  • Hm,

    it seems I'm on my own here.

    Aleks
  • 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.
  • Three years later and I need the same. icon_lol

    Any update on this?
  • Wasn't there a Notifications hook wandering around in .764 days?

  • Can't seem to find it searching through the forums. Please let me know if you remember any more details?
  • 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

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • That's the one...I downloaded it once...never got around to trying it.
  • Thanks! Found it: http://noc.postnuke.…m/scm/?group_id=299

    Will have a look at it.

This list is based on users active over the last 60 minutes.