We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Unsubscribing from follow up comments

Development and Programming

arvinsim's avatar
arvinsim
23 posts
11 years ago
arvinsim's avatar arvinsim

In the .(JavaScript must be enabled to view this email address), I can have a checkbox that allows me to tell EE to notify me of follow up comments.

{exp:comment:form channel="news" preview="channel/preview"}
    ...
    <textarea name="comment" cols="70" rows="10">{comment}</textarea>
    ...
    <label><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</label>

    ...
{/exp:comment:form}

I want the users to be able to toggle this feature since some of them want this feature disabled.

So I tried a solution. I unchecked the checkbox and submit with a blank comment textarea field.

However, when doing that I am shown an EE error that tells me that the comment field should not be blank.

My question is, how do I unsubscribe?

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
11 years ago
Pascal Kriete's avatar Pascal Kriete

I think the comment notification links tag is what you’re looking for.

       
arvinsim's avatar
arvinsim
23 posts
11 years ago
arvinsim's avatar arvinsim

Ok, got it.

For some reason, I thought it wasn’t working. Turned out you need to pass an entry_id parameter for it to work.

It wasn’t in the example in the documentation. Hope you could update that so that future developers would not be confused.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.