WordPress.org

Forums

AWeber Web Form Plugin
[resolved] I want to add auto comment signup checkbox. (5 posts)

  1. kulwantnagi2003
    Member
    Posted 2 years ago #

    I want to implement auto comment signup checkbox that when any user drop any comment on my blog they should be subscribed into my list.

    Is there any way to make that auto check?

    http://wordpress.org/extend/plugins/aweber-web-form-widget/

  2. MrFent37
    Member
    Posted 2 years ago #

    edit aweber_webform_plugin.php and look for

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button, not the blockquote. ]

    function add_checkbox()
        {
            $options = get_option($this->widgetOptionsName);
            ?>
            <p>
            <input value="1" id="aweber_checkbox" type="checkbox" style="width:inherit;" name="aweber_signup_checkbox"  />
                <label for="aweber_checkbox">
                <?php echo $options['create_subscriber_signup_text'];?>
                </label>
            </p>
            </br>
            <?php
        }

    add the following inside

    <input />
    
    checked="checked"

    so it looks like

    function add_checkbox()
        {
            $options = get_option($this->widgetOptionsName);
            ?>
            <p>
            <input value="1" id="aweber_checkbox" type="checkbox" style="width:inherit;" name="aweber_signup_checkbox" checked="checked" />
                <label for="aweber_checkbox">
                <?php echo $options['create_subscriber_signup_text'];?>
                </label>
            </p>
            </br>
            <?php
        }
  3. kulwantnagi2003
    Member
    Posted 2 years ago #

    please check the screenshot.

    http://www.diigo.com/item/image/3hup3/pnd6

    I have implemented the code but still not working.

  4. MrFent37
    Member
    Posted 2 years ago #

    paste the entire plugin code so i can see if you did it right

  5. kulwantnagi2003
    Member
    Posted 2 years ago #

    MrFent37, Thanks a lot for your help.

    My Issue got resolved as I bought premium plugin (Subscribers Magnet) for this task.

    PS: Your code was also working fine later. I am using CDN on my blog so changes were not reflected at that time.

    You help was much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic