ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Comment Notification

November 15, 2012 12:02pm

Subscribe [2]
  • #1 / Nov 15, 2012 12:02pm

    Evolve Websites

    110 posts

    Hi there,

    One of my clients has asked if we can allow users commenting on a blog post to be notified when other users comment on that post.

    Here’s a link to the page as it currently stands: http://dev.srtoomer.com/blog/post/test-blog-post-inc.-video

    I understand we’ll need to store that users email address somewhere in the database in order to notify them, which I presume will mean adding them as a member. If this is the case, is it possible to automatically register a member when they submit a comment rather than the user having to fill out a registration form and then a comment form?

    Thanks in advance,

  • #2 / Nov 19, 2012 12:48pm

    Dan Decker

    7338 posts

    Hi Tom,

    Sure thing!

    The feature is built into the Comment Form already:

    ...
    <label for="comment">Comment:</label>
    
            <textarea name="comment" cols="70" rows="10">{comment}</textarea>
            <label><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</label>
    
            <label><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</label>
    
    ...

    That’s what the notify_me checkbox is used for. It will prevent users from having to register and allows them to opt-in to being notified.

    Cheers,

  • #3 / Nov 20, 2012 4:05am

    Evolve Websites

    110 posts

    Hi Dan,

    That’s perfect, thanks for your message!

  • #4 / Nov 21, 2012 4:05pm

    Dan Decker

    7338 posts

    Hi Tom,

    Excellent! My pleasure.

    If you need anything else, please let me know!

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases