• Hi there!

    At first I must say I really enjoy the plugin, but unfortunatelly found a strange bug. In the website we use different groups which a visitor can subscribe to. If you subscribe to one group everything works fine, but when you subscribe to a second group you get two subscription emails, a third one gives you three subscription emails and so on.

    Every time you subscribe your subscription in added once (that’s good), but you get an email corresponding to the groups you already subscribed to (not so good).

    I think it has to do with the function that sends the email and does not query the group.

    Looking forward to any advise because we will need to go live very soon.

Viewing 1 replies (of 1 total)
  • Thread Starter michielvergunst

    (@michielvergunst)

    We found the issue, elp_view_subscriber_one in register.php should receive the variable $inputdata. Then this functions has to be altered in dbquery1.php like this…

    public static function elp_view_subscriber_one($data = “”)
    {
    global $wpdb;
    $prefix = $wpdb->prefix;
    $arrRes = array();
    $sSql = “SELECT * FROM ".$prefix."elp_emaillist WHERE”;
    $sSql = $sSql . ” elp_email_mail = %s and elp_email_group = %s”;
    $sSql = $sSql . ” Limit 1″;
    $sSql = $wpdb->prepare($sSql, array($data[1], $data[3]));
    $arrRes = $wpdb->get_results($sSql, ARRAY_A);
    return $arrRes;
    }

    Hopefully this can be implemented in a futute update of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple subscription emails’ is closed to new replies.