Viewing 2 replies - 16 through 17 (of 17 total)
  • if you want to leave preview on but wish to retain your framebreaker add this to your header.php

    <!– frame buster –>
    <?
    $preview = $_REQUEST[‘preview’];
    if ($preview == “”) {
    $preview = “false”;
    }
    ?>
    <script type=”text/javascript”>
    var preview = <?php echo $preview; ?>;
    if (preview != true && self != top)
    {
    top.location.href = document.location.href;
    }
    </script>
    <!– end frame buster –>

    That didn’t work. It wasn’t breaking frames anymore. Do I need to add something to those lines of code in your post to get it to work lencrockett?

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘How to turn off preview mode’ is closed to new replies.