[Plugin: WP Responder Email Newsletter and Autoresponder Plugin] Success message on page after subsc
-
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 ?> <script> window.location='<?php echo $return_url."?news=1"; ?>'; </script> <?php exit; } else { # 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 { ?> <form...</form> <?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!
- The topic ‘[Plugin: WP Responder Email Newsletter and Autoresponder Plugin] Success message on page after subsc’ is closed to new replies.