Support Forums » Wordpress Flickr Manager

pop-up size problem with 2.0.4

(3 posts)
  1. There seems to be a problem with the JS pop-ups in 2.0.4.

    If I insert a thumbnail sized image, then you get a large pop-up as expected.

    However if I insert a medium sized image into the post, then you get just a medium image in the pop-up.

    The image viewer is set on by default, and to show a "Large" image, both Lightbox and Highslide exhibit the same problem.

    The HTML inserted into the page seems correct as you can reproduce the problem just by removing the "_t" from the filename in the thumbnail code to get the medium image/medium pop-up problem.

    Demonstration http://www.lifeinthebuslane.com/demonstration-of-flickr-manager-204-problem/

    There also seems to be an issue with it sometimes not inserting an image into the post once you've changed the size of image to insert. Sometimes it works, sometimes it doesn't, however I've not been able to work out why, it's seemingly random.

    Posted 2 years ago #
  2. An update.

    The problematic images all have an "original" version on flickr of 1600x1200. If I upload one of them with a larger 2048x1436 size, then flickr-manager works as expected for both the thumbnail and medium versions.

    Posted 2 years ago #
  3. I think I've worked out what is going on, it's nothing to do with the file size on flickr, and all down to the last character of the filename. Those that I can't view in the popup as a large image all end with the character b, the same character used by flickr to denote a "large" image.

    Looks like the following diff might fix it by matching on "_b" etc instead of "b".

    rich@jalfrezi:~/wfm$ diff wfm-lightbox.php.original wfm-lightbox.php
    39c39
    < if(image_link.match(/[s,t,m]\.jpg/)) {
    ---
    > if(image_link.match(/_[s,t,m]\.jpg/)) {
    44c44
    < } else if(!image_link.match(/b\.jpg/)) {
    ---
    > } else if(!image_link.match(/_b\.jpg/)) {

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.