Home Forums Newsletter Plugin Support Extern registration of subscribers

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6547
    Daschmi
    Participant

    Hi,

    We added subscribers from en external shop plugin.

    to Version 1.5.9 of Satollo Newsletter we use:

    newsletter_subscribe($email, $vname, $name)

    and from the Version 2.5.0:

    $_REQUEST[‘na’] = ‘s’;
    $_REQUEST[‘nn’] = ‘vname’;
    $_REQUEST[‘ns’] = ‘name’;
    $_REQUEST[‘ne’] = ’email’;

    $newsletter->hook_init();

    But in the new Version this code did not work.

    It breaks up with: “No User” and it is not catchable.

    Is there a bug oder is the request wrong?

    Regards

    Klaus

    #6549
    Stefano
    Keymaster

    Use this:

    global $newsletter;

    $user = array();

    $user[’email’] = …;

    $user[‘name’] = …;

    $user[‘surname’] = …;

    $user[‘status’] = ‘C’;

    $newsletter->save_user($user);

    It should work. Do not use the request parameter injection it not the right way to do it. The code above with newsletter 3.0, stay with that I’ll send a refund for the pro version, just let me know.

    Stefano.

    #6551
    Daschmi
    Participant

    Hi,

    Thank you!
    Klaus

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.