WP Subscribers + Aweber: problem with "Stay on current page" Tank-you pages

Best Wordpress plugin to engage your users and collect their email. You can use header alerts, popups, or exit pages, and it works with any popular emailing service such as Mailchimp or AWeber
nico_pn
Posts: 71
Joined: Tue Feb 28, 2012 10:37 am

WP Subscribers + Aweber: problem with "Stay on current page" Tank-you pages

Post by nico_pn »

Hi,

If you're using Aweber and want to be redirected to the Current page as a thank-you page, You will encounter some troubles.

Instead of being redirected, your subscribers will discover an error page like this one :
"An Error Occurred
The form you used to subscribe is not set up properly.

Please push the "Back" button and notify the website owner."
The problem is due to some javascript code on the aweber forms.

To solve it, you have to change 2 things on WP Subscribers :

First: in the hidden field on "Setup Opt-in Code", replace :
<input type="hidden" name="redirect" value="" />
By this line from your Aweber form code :
<input type="hidden" name="redirect" value="" id="redirect_1082xxxxxx" />

Then: add this code to your Opt-in Popup (in the field "Custom jQuery"):
jQuery('input[name="redirect"]').val(document.location);

Thanks to JC who find this nice solution ;-)
User avatar
Fabrice
ObviousIdea
Posts: 531
Joined: Wed Dec 29, 2010 6:42 pm
Location: Toulouse, France
Contact:

Post by Fabrice »

Is is possible to post similar solution for MailChimp ?

is it possible to use Mailchimp without to be redirected to their page for confirmation ?
nico_pn
Posts: 71
Joined: Tue Feb 28, 2012 10:37 am

Post by nico_pn »

There is no problem with mailchimp because the redirection is made by Mailchimp itself and not in the form.
[CENTER]« Mais les grands hommes ne naissent pas dans la grandeur : Ils grandissent. »
Mario Puzo (Le Parrain)

Nicolas Pène
Développement Personnel
Charisme
popup Wordpress plugin
[/CENTER]
Post Reply