WordPress.org

Ready to get started?Download WordPress

Forums

Working around page hangs with blocked content (2 posts)

  1. escdotdot
    Member
    Posted 4 years ago #

    Hi,

    I run a self-hosted WordPress installation and live in China. Some of my posts include flickr content, but the pictures are blocked if you view them from within China, this leads to the page stalling as it tries to load the image. I would like to find a way to avoid this page load stall which doesn't include moving all my images to another service – I am OK with the pictures not loading as long as the rest of the page loads for viewers in an area which filters content.

    I am thinking of something like the php code which checks to see if a plugin function exists before trying to execute it – would something similar be possible while loading content? Can I make any connection to flickr > if YES, then continue to load this image > if NO, skip this part and continue to load the page. I guess this would have to happen at the client end?

    Many thanks for any guidance on this one.

  2. alism
    Member
    Posted 4 years ago #

    I expect there's a cunning way to do that through .htaccess, ie checking the users IP address and doing a rewriterule on images, so it might be worth doing a bit of Googling to find some code you can adapt.

    Alternatively, perhaps these plugins might be worth looking at:
    http://wordpress.org/extend/plugins/content-by-country/
    http://wordpress.org/extend/plugins/country-filter/
    (if they work with the latest version of WordPress)

Topic Closed

This topic has been closed to new replies.

About this Topic