Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Donald St. Martin 83 posts 128 karma points
    Nov 10, 2010 @ 16:52
    Donald St. Martin
    0

    Photo URL instead of @FlickrPageURL

    Currently, I have:

    <a href="{@FlickrPageURL}" alt="{@Title} by {@OwnerName} on {@DateTaken}" rel="shadowbox" target="_blank">
    <img src="{@Thumbnail}" title="{@Title} by {@OwnerName} on {@DateTaken}" />
    </a>


    Since flickr doesn't let you embed it in an iFrame, I am having some minor problems.  Instead of using {@FlickrPageURL} for the href attribute, is there something else I can use to get the location of the photo (/something.jpg) based on the size assigned to flickrSizeMSTB?

    Thanks,
    Donald

  • Jason Prothero 422 posts 1243 karma points c-trib
    Nov 11, 2010 @ 00:53
    Jason Prothero
    0

    I'm not totally sure what you're trying to do.  Are you trying to have a thumbnail expand into a lightboxed full size image?

    Assuming that's the case,

    I'm thinking you will want to use the "imagefile" attribute instead of "FlickrPageURL"

    The FlickrPageURL is the link to the photo page on Flickr.

    <photo title="Fascinating Nature - First Double Rainbow 2010" imagefile="http://farm3.static.flickr.com/2710/4466953793_cd0430ba59.jpg" thumbnail="http://farm3.static.flickr.com/2710/4466953793_cd0430ba59_t.jpg" flickrpageurl="http://www.flickr.com/photos/21207178@N07/4466953793" ownername="Batikart" latitude="48.798242" longitude="9.280571" datetaken="2010/03/27" tags="" views="-1"></photo>

    Of course, I could be totally missing what you're trying to do.

  • Donald St. Martin 83 posts 128 karma points
    Nov 11, 2010 @ 16:10
    Donald St. Martin
    0

    That is exactly what I am trying to do.  I replaced @FlickrPageURL with @imagefile after referencing the result XML but it isn't coming back with any data - I have a blank href.  Here is my current code:

    <xsl:variable name="setPhotos" select="ProWorks.FlickrXSLTSearch:BySet($setID, 20, 1, 'b', 's')"/>

      <xsl:for-each select="$setPhotos/Photo">
        <xsl:sort select="ds:Random($maxItems)" order="descending" />
        <xsl:if test="position() &lt;= $maxItems">
          <a href="{@imagefile}" alt="{@Title} by {@OwnerName} on {@DateTaken}" rel="shadowbox" target="_blank">
            <img src="{@Thumbnail}" title="{@Title} by {@OwnerName} on {@DateTaken}" />
          </a>
        </xsl:if>
      </xsl:for-each>

    $setID is just getting data passed into the Macro via a parameter and I have some brief code to take 9 random images out of the 20 it gets and display them.

    Thanks,
    Donald

  • Jason Prothero 422 posts 1243 karma points c-trib
    Nov 11, 2010 @ 17:27
    Jason Prothero
    0

    I'll test it and check it out.  I may not get back to you until Friday.

  • Donald St. Martin 83 posts 128 karma points
    Nov 12, 2010 @ 20:45
    Donald St. Martin
    0

    I found out what the problem was.  Instead of using @imagefile, you have to use @ImageFile (case-sensitive).

    --
    Donald

  • Donald St. Martin 83 posts 128 karma points
    Nov 12, 2010 @ 20:50
    Donald St. Martin
    0

    I found out what the problem was.  Instead of using @imagefile, you have to use @ImageFile (case-sensitive).

    --
    Donald

  • Jason Prothero 422 posts 1243 karma points c-trib
    Nov 12, 2010 @ 22:19
    Jason Prothero
    0

    Ah yes.  I've stopped using case sensitive attributes in new projects because of this.

    Sorry about that.

Please Sign in or register to post replies

Write your reply to:

Draft