WordPress.org

Ready to get started?Download WordPress

Forums

Add Linked Images To Gallery
Only getting thumbnail. Doesn't work with HTTPS (2 posts)

  1. anielsen
    Member
    Posted 1 year ago #

    This is a great plugin, and with a little tweaking I was able to get it to work with Pages as well as Posts, but I am now running into two issues:

    1) The IMG tag in my case is linking to a thumbnail copy of the image and the outer a href is pointing to the full sized image. This plugin only grabs a copy of the thumbnail.

    2) It doesn't work with images that are linked using HTTPS.

    http://wordpress.org/extend/plugins/add-linked-images-to-gallery-v01/

  2. anielsen
    Member
    Posted 1 year ago #

    I may have partially solved my own issue. Line 305 of import-external-images.php has the following code:
    preg_match( '/^http:\/\//' , $uri )

    I changed it to:
    `preg_match( '/^http/' , $uri )'

    Now it includes HTTPS links, which as it turns out were what my full image hrefs started with.

    However I am running into a few more issues:
    1) This isn't finding files that end with all caps (i.e. JPG)
    2) It doesn't seem to gracefully handle image URL's with %20's in them.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic