WordPress.org

Support

Support » Plugins and Hacks » [Resolved] ?wpr-optin=1 ???

[Resolved] ?wpr-optin=1 ???

Viewing 7 replies - 1 through 7 (of 7 total)
  • cavey85

    @cavey85

    Hi,

    Could you help me or somebody else?

    cavey85

    @cavey85

    It is very important for me!

    cavey85

    @cavey85

    I try show this problem:
    like this: http://www.dabas-motel.hu/?wpr-optin=1

    cavey85

    @cavey85

    Why does not the error message appear inner the website?

    cavey85

    @cavey85

    Ok, I have solved this problem! 🙂

    Hi Cavey

    Would you mind sharing your solution?
    This would be interesting for me and maybe others, too.

    Mike

    Hi Mike,

    I am sorry for replying so late.
    In optin.php file there is this sourcecode:

    function error($error)
    {
    	?>
    <div style="font-family: Arial">
      <h2 align="center">An Error Has Occured</h2>
      <div align="center">
        <div style="width: 400px; padding: 10px; text-align: left; background-color: #336699; color: #fff; font-weight:bold; font-family: Arial; border: 1px solid #ccc;"> <?php echo $error ?> </div>
        <a href="javascript:window.history.go(-1);">Click Here To Go Back</a> </div>
    </div>
    <?php
    	wp_credits();
    	exit;
    }

    This is the body in new tab.
    I change the body between <div> elements:

    function error($error)
    {
    	?>
    <?php
    
      echo $htmlHeader;
      while($stuff){
        echo $stuff;
      }
      echo "<script>window.location = 'http://www.yoursite.com/newsletter'</script>";
    ?>
    
    <?php
    	wp_credits();
    	exit;
    }

    The error message will be not in a new page, just inner your site.
    I hope my solution is understandable. 🙂

    bye,
    cavey85

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] ?wpr-optin=1 ???’ is closed to new replies.