Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author miro.mannino

    (@miromannino)

    Yes it does that, just disable the lightbox.

    Thread Starter saurabhgarg

    (@saurabhgarg)

    Yes but I like lightbox. Also, I wanted to add caption to the title when someone hovers over an image. I ended up modifying the plugin itself to add the link. You can see it here: http://saurabhg.com/photos/flickr/

    -Saurabh

    Plugin Author miro.mannino

    (@miromannino)

    That’s good, ok. I just say to you that probably you could have problems using anchors inside anchors, but seems to works good.

    Hi saurabhgarg, hi miro, i think this is important for legal topics. I am linking images from users but flick say that need to add a link of the user image. I like using the swipe box but the link its not visible. Its there any way to add a link to the image source in the title of the image? Thats will be great.

    Regards

    or in a mini button, or hipertext flickr.com

    Thread Starter saurabhgarg

    (@saurabhgarg)

    Hi I did it by inserting an anchor in the anchor.

    Version: 3.1.6
    File: flickr-photostream.php

    Replace lines 328 to 330 with the following code:

    // Saurabh: revised this to show link to flickr.
    		$ris .= '<img title="' . htmlspecialchars($photo['title'], ENT_QUOTES, 'UTF-8')
    				 .	'" alt="' . htmlspecialchars($photo['title'], ENT_QUOTES, 'UTF-8') . ' • <a class="view-on-flickr" href="http://www.flickr.com/photos/' . $photo['owner'] . '/' . $photo['id'] . '" target="_blank">View on Flickr</a>'
                 .	'" src="' . $f->buildPhotoURL($photo, $imgSize)
    				 .	'" data-safe-src="' . $f->buildPhotoURL($photo, $imgSize) . '" /></a>';

    If this doesn’t work let me know. I can update entire file somewhere.

    Regards,
    Saurabh

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add link to Flickr image’ is closed to new replies.