Viewing 11 replies - 1 through 11 (of 11 total)
  • There’s a problem with that image, which is clear by looking at the above URL, you can also check the other image sizes of that image that work just fine, it’s just that particular one that is problematic.

    celebridiot.com/wp-content/uploads/2010/02/

    Re-upload the image … there was clearly an issue during the initial upload of that image.

    Thread Starter john_nyc

    (@john_nyc)

    sorry about that — that link was just an example.
    http://www.celebridiot.com/wp-content/uploads/2010/02/Alicia-Keys_Beyonce-Knowles_samba_65489EX_KEYS_B-GR_03.jpg

    Is there a way to force a direct link to not show on a blank page?

    or

    Have the images hosted on a subdoman – say images.site.com
    Create a file that pulls in the images – like what egotastic . com does — site is NSFW (celebrity gossip site, but it gets a bit racy)

    You’ll need to elaborate on what you mean please..

    When a file does not exist, the server treats that as a 404 error.. by all means you can conditionalise the 404 page to detect if the error is for a missing image, but beyond that i’m unsure what exactly it is you’re asking..

    Thread Starter john_nyc

    (@john_nyc)

    forget the first link

    look at the link in the second post….if you go to the site any direct image reference goes to a blank page with the image. No theme around it. Is there a way in wordpress to force a direct link image into a theme page?

    When inserting the image in the post, you’re given 3 options of where to link to..

    None
    File URL
    Post URL (aka the attachment URL)

    Option 3, the post url is what you should use if you wish to render it within the page, and not as a single image..

    If you’re looking to update posts where you’ve already chosen “File URL”, then the only easy’ish solution would be a search and replace plugin like the following….

    http://wordpress.org/extend/plugins/search-and-replace/

    ..to update the necessary lines in the existing posts content..

    I’ve not done the procedure myself, so i can’t comment on what you’d need to do precisely, but i very much doubt you’ll find an easier solution, short of going into each post, and re-doing the insert, or updating the line by hand directly in each post.

    Thread Starter john_nyc

    (@john_nyc)

    the initial thumb loads fine
    http://www.celebridiot.com/2010/02/12/kim-kardashian-heart-truth-arrival/kim-kardashian-55/

    but if you click that full size image you get the direct image url in a blank page.

    I am trying to avoid that or if someone links directly to the image to have it display in a theme or custom window

    That’s how browsers read single images… you can’t change how the browser treats the visibility of a single image file, that’s beyond the scope of what a website can control…

    Thread Starter john_nyc

    (@john_nyc)

    ok cool beans — had some site link to a couple of direct images that is was trying to stop

    You can stop hotlinking (term for external image linking), i can provide information on doing that if it’s of interest to you… though it’s nothing you couldn’t find via google..

    If you’d like some help finding and/or applying the information into a workable solution, just post back…

    Thread Starter john_nyc

    (@john_nyc)

    i block hotlinking…the actually linked a see a photo here to the image and not the post

    I’m not quite sure what you mean, are you saying someone is simply linking to images, not hotlinking, but linking to the image’s location..

    If a few sites in particular are doing this, you could check the referer and send them to a forbidden page(or whatever) if it matches a certain domain.. or one of several..

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Direct image link appear in theme – NSFW’ is closed to new replies.