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.

Unsubscribe all guests from comment notification?

June 27, 2007 8:34am

Subscribe [1]
  • #1 / Jun 27, 2007 8:34am

    georgec

    17 posts

    Hi:
    Is there a way to mass unsubscribe all guests from comment notification, and even disable this feature for them? I’m getting more and more bounced emails from EE trying to send “Someone just responded to your entry…” emails to guests who have entered incorrect email addresses.

    Thanks,

  • #2 / Jun 27, 2007 10:03am

    silenz

    1651 posts

    Goto
    CP Home ›  Admin ›  Utilities > SQL Manager > Database Query Form
    and run the following query:

    UPDATE exp_comments SET notify='n' WHERE author_id='0';

    This will disable comment notification for all comments posted by non-members (guests).


    Then just make sure the notification-checkbox in your comments-template is only visible for logged-in members.
    Looks similar to this:

    {if logged_in}
    <input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?
    {/if}
  • #3 / Jun 27, 2007 10:18am

    Robin Sowell

    13255 posts

    Nice one, silenz.  You always need to be careful with direct manipulation of the db- but this is spot on!

  • #4 / Jun 27, 2007 4:21pm

    georgec

    17 posts

    Awesome. Thanks slienz.

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

ExpressionEngine News!

#eecms, #events, #releases