Gurken Subscribe to Comments (deprecated)
[resolved] [Plugin: Gurken Subscribe to Comments] no setting to change default of checkbox (3 posts)

  1. derekbeck
    Posted 5 years ago #

    this line

    <?php if ( $checked_status ) echo 'checked="checked" '; ?>

    in your main gurken-subscribe-to-comments.php

    is clearly meant to query if an option was set in the settings as to whether to check the checkbox by default, but it does nothing, as there is no option in the settings page. Thus, I removed the above code and replaced it with


    to achieve my desired result.

    Might want to fix that in your next update.

  2. infogurke
    Plugin Author

    Posted 5 years ago #


    $checked_status isn't meant to query any setting. It's value is based on a cookie:

    $checked_status = ( !empty($_COOKIE['subscribe_checkbox_'.COOKIEHASH]) && 'checked' == $_COOKIE['subscribe_checkbox_'.COOKIEHASH] ) ? true : false;

    The cookie will be set when you write a comment with "notify me"-checked. The cookie expires in now + 30000000 seconds.

    Maybe I should add an option in the settings page. But this isn't something many users to request.

    Currently I'm creating a new release, maybe I will add it in the next release.


  3. derekbeck
    Posted 5 years ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gurken Subscribe to Comments (deprecated)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic