Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aklapwijk

    (@aklapwijk)

    Hi again,

    Yesterday someone had tried to subscribe at 16:37 (UTC+1), but the subscription wasn’t successful. When I tried to subscribe myself this morning it still didn’t work. In the admin area I encountered the same issues as described in my first post as well.

    When I look into our MailChimp account at the API keys page, the last API call with the user agent ‘WordPress/4.6.1; https://weare’ was yesterday at 2016-11-08 14:45:09 GMT.

    Unfortunately the increased timeout didn’t solve our issue.
    Do you have any other ideas?

    Thanks,
    Anne

    Thread Starter aklapwijk

    (@aklapwijk)

    Hi Kevin,

    Thanks for your help. I totally agree with you, it’s best to not edit the plugins code. I will use the PHP-/WordPress based action hooks as much as possible, however in some cases I would use JavaScript. For example when using AJAX, to change styling of some elements after a user successfully subscribes, without a page refresh. I would do this in a separate area from the plugin though.

    Thanks,
    Anne

    Thread Starter aklapwijk

    (@aklapwijk)

    Hi Jeremy,

    Thanks a lot for your help! I’ve installed your plugin and everything works great so far.
    It does seem that the production sever needs a bit more time for requests compared to our test and dev servers. I will keep a close eye on wearesure.io today to see if it keeps working. Hopefully it does.

    Thanks,
    Anne

    Thread Starter aklapwijk

    (@aklapwijk)

    Hi Kevin,

    Thanks for your reply.

    Sounds about right; I’m looking for a way to add some JavaScript code that will file when a user successfully subscribes. Not via the form editor in the admin view however, but rather in my IDE.

    For now I guess I will just use .ajaxSuccess() and use the responseText to detect if the submission was successful.

    Thanks,

    Anne

    • This reply was modified 9 years, 6 months ago by aklapwijk.
Viewing 4 replies - 1 through 4 (of 4 total)