I'm trying out a newsletter script and when users confirm their email subscription they are taken to a plain screen. I'd like to wrap my plugin output with the theme. Has anyone done something like this before? Any hints or tips?
hi, u need to edit newsletter.php in plugin folder and create a page for messages in ur wordpress. Example : for displaying "Thank you. You are subscribed now!" message with ur theme. step1: open newsletter.php in a text editor and replace the code (line no 286) echo("Thank you. You are subscribed now!"); Code (markup): with header( 'Location: http://www.ursite.com/thank_you/' ) ; Code (markup): save and upload it. step2: now login to ur blog and create a page with title "Thank you" description "You are subscribed now!" publish it. Done! now people redirect to http://www.ursite.com/thank_you/ instead of showing the message note: u can hide these pages from displaying in navigation bar using plugins.
That's a great idea, thanks. I've changed my 404 page to include <?php if (isset($_GET['msg'])) $msg = $_GET['msg']; else $msg = "Sorry, but the page you requested could not be found. Perhaps searching will help."; ?> <h2 class="center"><?php echo $msg; ?></h2> PHP: so I won't need to have a hidden page, I just need to ensure that my newsletter script never calls a real page.