WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. derekbeck
    Member
    Posted 3 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

    checked

    to achieve my desired result.

    Might want to fix that in your next update.

  2. infogurke
    Member
    Plugin Author

    Posted 3 years ago #

    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

  3. derekbeck
    Member
    Posted 3 years ago #

    thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic