• Resolved blocklevel

    (@blocklevel)


    Hi there,

    I need to change the link on each thumbnail from the photo’s page on Flickr to just the image itself (medium) so I can wrap a lightbox plugin around it all.

    Can anyone point me in the right direction?

    Thanks! Gareth

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter blocklevel

    (@blocklevel)

    Ok just engaged my brain and solved this.

    The URL seems to be set individually for each case so for each ‘case’ in the function ‘gallery’ (starting line 162 of flickr-gallery.php) swap the href for this <?php echo $phpFlickr->buildPhotoURL($photo, 'medium') ?>

    Medium can be square, thumbnail, small, medium, large and original, it defaults to medium if not added.

    Remember that if you do not link back to your photo’s page on Flickr, you are probably violating the terms of service for using the API. If they notice that your site isn’t following the terms of the API (and I’ve seen discussion of sites that have been noticed), they could shut off your API key.

    That’s the main reason that the plugin is generating the links it is.

    Just a friendly reminder.

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

The topic ‘Modifying the Flickr Gallery link’ is closed to new replies.