Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

Coming Soon: Flickr Photos

Last post 10-03-2006, 12:29 PM by carlcamera. 0 replies.
Sort Posts: Previous Next
  •  10-03-2006, 12:29 PM 23081

    Coming Soon: Flickr Photos

    I'm just about done with a simplified Vine Type interface to show Flickr photos on your Vine Type website.  The Flickr API is huge but in Vine Type tradition of keeping things simple, I've implemented just a couple of the most important knobs to turn.  You'll have to get your own Flickr API key so that Flickr can keep track of who is requesting photos from which application.

    Then in the configuration file, you'll be able to specify

    • what size photo you want displayed
    • (optionally) which flickr tags you are requesting and
    • if you want the photos to be linked from your website to the actual flickr page or not

    Vine Type will gather the most recent 100 photos matching your criteria, and you can place them in your template file with keywords $flickr_photo001, $flickr_photo002, etc up to 100 if you have that many photos matching your criteria.

    I've combined the random feature with the soon-to-be-released flickr feature on my blog iamacamera.org

    I created a random variable in my vinetype.config file:

         $random_f:15

    Defined my flickr settings and then in my template file I put

        $flickr_photo$random_f001
        $flickr_photo$random_f002
        $flickr_photo$random_f003
        $flickr_photo$random_f004
        $flickr_photo$random_f005

    The random numbers convert to random values between 001 and 015 creating five random photos (not repeated of course) with each page refresh.

     


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under: ,
View as RSS news feed in XML