Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders Schmidt 76 posts 207 karma points
    Dec 09, 2013 @ 22:59
    Anders Schmidt
    0

    Post author gets mail regarding comments ?

    I would like to add post author as a subscriber on comments.

    I ahve been modifying my solutions so every member can create a post. Thats why.

    Where is the list with subscribers being created?

    Any Idears to solution?

     

    Thanks in advance

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Dec 16, 2013 @ 18:14
    Anthony Dang
    0

    Meta data about the subscribers is in the comment container under the posts.

    You can add an event hook for comment publish which will crawl up the tree to the post, then grab the author id.

     

  • Anders Schmidt 76 posts 207 karma points
    Dec 16, 2013 @ 19:10
    Anders Schmidt
    0

    Thanks for answering. I am not sure how to do it. How can I add event on btnSubmit (contact.ascx) ?

    Using:

    Umbraco 4.11.x with uBlogsy 2.1.1.2

    The comment container is not created before first comment. Right?

     

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 02, 2014 @ 01:12
    Anthony Dang
    0

    Hi Anders

    The comment container is created as soon as the 1st comment is.

    Events are pretty straightforward...

    http://our.umbraco.org/documentation/Reference/Events/application-startup

    Here's how i do it in ublogsy:

    https://bitbucket.org/anthonydotnet/ublogsy/src/e8dbdcc696fcda28367b708ad145a100240d9a29/uBlogsy/uBlogsy.BusinessLogic/EventHandlers/UmbracoEventHandlers.cs?at=default

    There is a static helper in ublogsy for sending emails:

    https://bitbucket.org/anthonydotnet/ublogsy/src/e8dbdcc696fcda28367b708ad145a100240d9a29/uBlogsy/uBlogsy.Common/Helpers/EmailHelper.cs?at=default

    Just use this method:

    Send(string emailBody, string subject, string senderAddress, string recipientAddresses, Dictionary<string, string> dictionary, bool asych)


  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies