Forums

[Plugin: Flickr Gallery] 'View this photo on flickr' link broken. (4 posts)

  1. design-is
    Member
    Posted 6 months ago #

    Hi there.

    When the photo is open in the lightbox, the 'View this photo on flickr' link works on all except for those under 'photo sets'. This takes me to my site's root /photonumber which is incorrect.

    Just wondered if anyone could point me in the direction of where I can fix this?

    Cheers

    /Doug

  2. animoller
    Member
    Posted 4 months ago #

    I am also having this problem!

  3. vi_jedi
    Member
    Posted 4 months ago #

    I have this problem and was able to fix it by editing 'flightbox/jquery.flightbox.js'.

    Around line 43, you'll see something that looks like:
    $("#flightbox-flickr-link a").attr("href", link);

    you need to replace it with:

    var link = $calling.parent("a").attr("href");
    if(!link.match(/http:\/\//)) {
           link = 'http://www.flickr.com/photos/YOUR_USER_NAME/' + link;
    }
    $("#flightbox-flickr-link a").attr("href", link);

    This is just a hack, but it works.

  4. DanCoulter
    Member
    Posted 4 months ago #

    Thanks for posting the hack. Between family stuff and buying a house I haven't had enough time to do even simple fixes like these. I just now tagged and released an update that should resolve this problem.

Reply

You must log in to post.

About this Topic