Newsletter integration
-
Hi,
would it be possible to integrate registration form with mailing softwares like MailChimp, GetResponse, Infusionsoft etc.?
So when users register that they also get opt-ined into campaings to these softwares.
Tnx
-
Hi kabarovsky,
Unfortunately, there’s no built-in easy way of doing this. You’d have to modify the core plugin code directly and integrate the MailChimp (or whatever other) API to run when a user is created in our plugin. This isn’t something we’ve tested or tried to do before, so we wouldn’t have any specific pointers beyond this.
Hi,
can you please help to manage this. I’ve purchased pro version a few days ago and this is the only feature I’m missing.
So, GetResponse opt-in form looks like this:
<form action=”https://app.getresponse.com/add_subscriber.html” accept-charset=”utf-8″ method=”post”>
<input type=”text” name=”name”/><br/><input type=”text” name=”email”/><br/>
<input type=”hidden” name=”campaign_token” value=”nSzfe” />
<input type=”hidden” name=”thankyou_url” value=”https://www.genuinepropertyinvestments.co.uk/v2″/>
<input type=”submit” value=”Subscribe”/>
</form>These are the key parts that should be embedded into F-F registration form:
1. action=”https://app.getresponse.com/add_subscriber.html” – It triggers GetResponse action (sends data to GetResponse). F-F form consists only # character for action.
2. <input type=”hidden” name=”campaign_token” value=”nSzfe” /> – It also triggers some data for GetResponse
3. <input type=”hidden” name=”thankyou_url” value=”https://www.redirectURL.com”/> – It redirects after the form is submitted (the URL is the same as setup in F-F form redirection)*Input field names are the same for both forms (GetResponse and F-F)
Any way for adding these parts inside F-F registration form?
Where can I access HTML of built registration form that is displayed on “Register” WordPress page?
Thanks
-
This reply was modified 8 years ago by
kabarovsky.
Hi kabarovsky,
Unfortunately, we’re unable to provide specific code or direction to get this functionality working for you. Firstly, we haven’t tested this kind of integration before and there would be the risk of breaking other functionality. Secondly, this falls more into the realm of specific plugin/site customization, something that isn’t included as part of our support. That being said, the two files that control the registration process are “Insert_Register_Form.php” in the “Shortcodes” folder (which displays the registration form) and “Prepare_Data_For_Insertion.php” in the “Functions” folder (which writes the information that is submitted).
Ok thank you for answering.
My solution is creating HTML form that will submit details to F-F plugin database and then to newsletter software.
One more question:
How can I configure login form to redirect to the same page where is was on the start of login? Something like JavaScript history or similar?
I will add login form to each single post template, and after logging in they should be redirected to the same post.
Hi,
By default, the login form will not redirect to another page, which means, as long as you don’t use the redirect_page attribute (or set a redirect URL if you’re using the widget), then it will remain on the same page after someone logs in. It’s important to note, though, that, in this case, the page would not fully reload, which would likely mean that any restricted content would not show unless the page was refreshed.
Using JavaScript to send someone back to a previous page would probably work. The only thing is that it would be like hitting the back button in your browser, which could mean that it might submit the form again, or not display restricted content (unless you hit refresh), or do something even worse, depending on your site and what the user was doing before login.
You’d be better off using some PHP to store the current URL and then sending the user back to that URL after the successful form submission. You could add a hidden input to the login form. Something like:
$ReturnString .= "<input type='hidden' name='ewd-feup-destination' value='" . $_SERVER['REQUEST_URL'] . "'/>";
And then send the user to that value when the form is submitted. Something like:
if($feup_success){ if( isset($_REQUEST["ewd-feup-destination"]) ){ header("Location: {$_REQUEST["ewd-feup-destination"]}"); } else{ header("Location: index.php"); // You should have a fallback. Replace 'index.php' with whatever you want. } }
I haven’t tested this, so you may have to play around with it to get it to work how you want.
-
This reply was modified 8 years ago by
- The topic ‘Newsletter integration’ is closed to new replies.