• Resolved derekbeck

    (@derekbeck)


    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

    checked

    to achieve my desired result.

    Might want to fix that in your next update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author infogurke

    (@infogurke)

    Hi,

    $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.

    Greetings
    Martin

    Thread Starter derekbeck

    (@derekbeck)

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Gurken Subscribe to Comments] no setting to change default of checkbox’ is closed to new replies.