WordPress.org

Forums

/?p=xxxx&preview=true (4 posts)

  1. PetLvr
    Member
    Posted 8 years ago #

    Hi .. I upgraded from 1.5.2 to 2.0.4.

    Now, when I write a post and save it as a draft, or edit an existing post .. the URL suddenly switches to this:
    http://www.petlvr.com/blog/?p=xxxx&preview=true
    (where xxxx is the post number) .. and then it's like preview mode that you normally see on the bottom half of posts on the WP2+ versions. There is no top half anymore, and I can't edit or post anything. It's quite frustrating because, if I'm fast enough .. the only thing I can do is quickly hit the "X" bottom before the URL converts to this preview.

    Does anybody know how to eliminate this preview? Or, what could trigger it? I had about 45 plugins on my conversion that are installed and were upgraded for the current version.

    HART

  2. Remove the frame breaking Javascript from your theme, or have it exclude your own domain.

    I suggest just using this plugin if you want to stop people from viewing your site in a frame.

  3. PetLvr
    Member
    Posted 8 years ago #

    Thanks Viper007Bond .. that was it .. In my header section, I had the framebusting script on my Pet blog, because too many people were just searching google and taking the images from there directly.

    <script language="JavaScript1.1" type="text/JavaScript">if (parent.frames.length
    > 0) top.location.replace(document.location);</script>

    I first removed the above script, and installed the wp-framebuster script. The script works - on the BLOG side. I can edit/save and do things normally and the "preview=true" way is gone and fixed.

    Before, if you google an image (for instance, try Labrador Retriever and search for a site on PetLvr.com) .. it showed my picture and people could download it.

    Secondly, I used both codes in my header (keeping the plugin coded added to my header and the above code). Now, the google image search works the way I intended - if people search for Labrador Retriever, the picture is in the top frame and my blog is in the bottom frame.

    And, now the framebuster plugin does NOT work - and I'm back to where I started - the "preview=true" comes back and limits me from doing any editing or pre-saving posts again.

    Can you think a way to get the best of both worlds and have my cake and ice cream too? Naturally, if I can't - I guess I would have to remove the google image stopping code for less stress for me, but I'd have to obtain some royalty free images or from wikipedia images .. I promised the source of the ones currently being used that if I could prevent google from stealing it - I would try.

  4. PetLvr
    Member
    Posted 8 years ago #

    Do you know how to tweak that javascript to exclude my own domain?

Topic Closed

This topic has been closed to new replies.

About this Topic