Javelin Email Marketing
[Plugin: WP Responder Email Newsletter and Autoresponder Plugin] Success message on page after subsc (1 post)

  1. emmvie
    Posted 5 years ago #

    Quick hack to have a success message displayed where the form was, once the confirmation email for the newsletter has been sent:

    Line 537 optin.php in plugin folder:

    # begin - get variable added to prepare confirm message
    window.location='<?php echo $return_url."?news=1"; ?>';
    # end - get variable added to prepare confirm message

    Then in your html template an if/else construct:

    <?php if ($_GET['news'] == '1') { ?>
        <h2>Success message</h2>
    <?php } else { ?>
    <?php } ?>

    I hope it's not bad form to do this, and it's obviously important to be careful when upgrading the plugin. Probably more elegant some other way, so apologies to the plugin author!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by emmvie
  • This topic is not a support question
  • WordPress version: 3.0