• Resolved dbazhinov

    (@dbazhinov)


    It can’t be recommended, but I need to display the email field and subscribe button on an external webpage outside of wordpress. (Reason being: external page conflicts with wordpress.) So far I have the form but nothing more (see below).

    Could you please advise what else I need to include on my external page in order for the form to work?

    <div class="tnp tnp-subscription">
    <form method="post" action="https://mydomain.com/?na=s" onsubmit="return newsletter_check(this)">
    <input type="hidden" name="nlang" value="">
    <input type="hidden" name="nr" value="page">
    <div class="tnp-field tnp-field-email"><label>Email</label><input class="tnp-email" type="email" name="ne" required=""></div>
    <div class="tnp-field tnp-field-button"><input class="tnp-submit" type="submit" value="Subscribe">
    </div>
    </form>
    </div>
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Only remove the “onsubmit” on the form. Everything else is ok!

    Stefano.

    Thread Starter dbazhinov

    (@dbazhinov)

    Thanks for the reply!

    I get redirected to https://mydomain.com/?na=s but the email is not added to the subscribers list. Should I be including any scripts on the page?

    Thread Starter dbazhinov

    (@dbazhinov)

    I have https://mydomain.com/ redirecting to the external page. What is “?na=s”? Can I change it to a different subdirectory such as /newsletter/?na=s? I need to keep my redirect of the main site directory.

    Thread Starter dbazhinov

    (@dbazhinov)

    To summarize the unresolved issue: I have my main wordpress homepage (“domain.com/”) 301 redirecting to an external page where I’d like to use the subscribe form. Unfortunately, when user clicks on the button they are directed to “domain.com/?na=s” which gets automatically redirected back to my external page before the user is added to the subscription list.

    Plugin Author Stefano Lissa

    (@satollo)

    Hi, point the form to an internal page url, always with the na=s parameter. Should work.

    Stefano.

    Thread Starter dbazhinov

    (@dbazhinov)

    Nope. It goes to the url (tried both domain.com/newsletter/?na=s and domain.com/newsletter?na=s) and then comes back to the external front page. Email does not appear in subscribers list nor was a message ever given to the user that they were subscribed.

    Care to try and see if there’s a solution?

    • This reply was modified 5 years, 11 months ago by dbazhinov.
    Plugin Author Stefano Lissa

    (@satollo)

    Uhm, it comres back to the subscription form page on an external site? It means there are a redirect set on your server. After a subscription, is Newsletter takes control, it redirect to the newsletter dedicated page set on main settings.

    Are you sure you have not a redirect even for the /newsletter path? Try with another path.

    Stefano.

    Thread Starter dbazhinov

    (@dbazhinov)

    Correct, it returns regardless of the page or post permalink. It attempts to open it with the ?na=s for a second or two, and before loading the page it redirects back to the frontpage. I even attempted to use index.php in the url for kicks, same result. Perhaps a part of the script calls for the index.php causing the redirect to trigger?

    • This reply was modified 5 years, 11 months ago by dbazhinov.
    Plugin Author Stefano Lissa

    (@satollo)

    Hi, contact me provately at [email protected] and send me the site address so I can check it.

    Stefano.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Displaying subscribe form on external page’ is closed to new replies.