<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: Tutorial: Flickr Photo Gallery</title> <atom:link href="http://claude.betancourt.us/flickr-photo-gallery/feed/" rel="self" type="application/rss+xml" /><link>http://claude.betancourt.us/flickr-photo-gallery/</link> <description>Claude Betancourt&#039;s Personal Blog</description> <lastBuildDate>Wed, 20 Apr 2011 19:36:48 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Claude</title><link>http://claude.betancourt.us/flickr-photo-gallery/comment-page-1/#comment-1259</link> <dc:creator>Claude</dc:creator> <pubDate>Thu, 24 Jun 2010 21:01:53 +0000</pubDate> <guid isPermaLink="false">http://localhost/?p=45#comment-1259</guid> <description>The code below is &lt;a href=&quot;http://bit.ly/aW6jOf&quot; rel=&quot;nofollow&quot;&gt;a ternary operation&lt;/a&gt; that checks the radio button selection and loads one of two possible datasets, most popular or your photoset.&lt;code&gt;$photos = ( $_GET[&#039;recent&#039;]===&#039;true&#039; ) ? $f-&gt;photosets_getPhotos($photosetid, null, null, $_perPage) : $f-&gt;interestingness_getList( null, null, $_perPage ) ;&lt;/code&gt;The default selection is most popular/interesting photos. If you&#039;re using the entire code in the example, just click on the radio button that reads &quot;Most Recent&quot; and your photoset will be loaded instead.If your own code doesn&#039;t need to switch between these datasets, just execute the following instead of the code block above.&lt;code&gt;$photos = $f-&gt;photosets_getPhotos($photosetid, null, null, $_perPage);&lt;/code&gt;&lt;b&gt;Note: While this will display the thumbnails correctly, the links will be broken since the &quot;photo&quot; object in the dataset doesn&#039;t contain the &quot;owner&quot; property. Instead it&#039;s found once in the metadata. The result is a broken link.&lt;/b&gt;Because of this issue I have decided to update the sample code. After looking at the Flickr API I realized you can request additional data via the &quot;extras&quot; attribute for each method. I request &quot;path_alias&quot; in order to get around the missing &quot;owner&quot; property and use it in the JSON/HTML parsers.&lt;a href=&quot;http://code.betancourt.us/flickr/&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;Please take a look&lt;/b&gt;&lt;/a&gt;. I hope this helps.</description> <content:encoded><![CDATA[<p>The code below is <a href="http://bit.ly/aW6jOf" rel="nofollow">a ternary operation</a> that checks the radio button selection and loads one of two possible datasets, most popular or your photoset.</p><p><code>$photos = ( $_GET['recent']==='true' )<br /> ? $f->photosets_getPhotos($photosetid, null, null, $_perPage)<br /> : $f->interestingness_getList( null, null, $_perPage )<br /> ;</code></p><p>The default selection is most popular/interesting photos. If you&#8217;re using the entire code in the example, just click on the radio button that reads &#8220;Most Recent&#8221; and your photoset will be loaded instead.</p><p>If your own code doesn&#8217;t need to switch between these datasets, just execute the following instead of the code block above.</p><p><code>$photos = $f->photosets_getPhotos($photosetid, null, null, $_perPage);</code></p><p><b>Note: While this will display the thumbnails correctly, the links will be broken since the &#8220;photo&#8221; object in the dataset doesn&#8217;t contain the &#8220;owner&#8221; property. Instead it&#8217;s found once in the metadata. The result is a broken link.</b></p><p>Because of this issue I have decided to update the sample code. After looking at the Flickr API I realized you can request additional data via the &#8220;extras&#8221; attribute for each method. I request &#8220;path_alias&#8221; in order to get around the missing &#8220;owner&#8221; property and use it in the JSON/HTML parsers.</p><p><a href="http://code.betancourt.us/flickr/" rel="nofollow"><b>Please take a look</b></a>. I hope this helps.</p> ]]></content:encoded> </item> <item><title>By: william</title><link>http://claude.betancourt.us/flickr-photo-gallery/comment-page-1/#comment-1257</link> <dc:creator>william</dc:creator> <pubDate>Wed, 23 Jun 2010 15:44:48 +0000</pubDate> <guid isPermaLink="false">http://localhost/?p=45#comment-1257</guid> <description>Great tutorial, Even though I have come across it a year later I hop you can help. I have the same issue as Vicky. I need to use the photosets_getPhotos() method to grab my set from flickr.I have tried your solution like this -&lt;code&gt;$photoset_id = &quot;72157612712643487&quot;;$photos = ( $_GET[&#039;recent&#039;]===&#039;true&#039; ) ? $f-&gt;photosets_getPhotos($photoset_id, null, null, $_perPage) : $f-&gt;interestingness_getList( null, null, $_perPage ) ;&lt;/code&gt;The result is the same as before where it displays a list of interesting photos for the most recent day. Am I leaving out something really obvious?</description> <content:encoded><![CDATA[<p>Great tutorial,<br /> Even though I have come across it a year later I hop you can help.<br /> I have the same issue as Vicky. I need to use the photosets_getPhotos() method to grab my set from flickr.</p><p>I have tried your solution like this -</p><p><code>$photoset_id = "72157612712643487";</p><p> $photos = ( $_GET['recent']==='true' )<br /> ? $f-&gt;photosets_getPhotos($photoset_id, null, null, $_perPage)<br /> : $f-&gt;interestingness_getList( null, null, $_perPage )<br /> ;</code></p><p>The result is the same as before where it displays a list of interesting photos for the most recent day.<br /> Am I leaving out something really obvious?</p> ]]></content:encoded> </item> <item><title>By: claude</title><link>http://claude.betancourt.us/flickr-photo-gallery/comment-page-1/#comment-559</link> <dc:creator>claude</dc:creator> <pubDate>Wed, 21 Jan 2009 17:45:47 +0000</pubDate> <guid isPermaLink="false">http://localhost/?p=45#comment-559</guid> <description>Vicki, I am glad you found this tutorial helpful.The short answer is that you can use the &lt;abbr&gt;photosets_getPhotos()&lt;/abbr&gt; method, which will accept a &lt;abbr&gt;photosetid&lt;/abbr&gt;.In proxy.php, replace the line:&lt;code&gt;$f-&gt;photos_getRecent( null, $_perPage, 1 )&lt;/code&gt;with:&lt;code&gt;$f-&gt;photosets_getPhotos(photosetid, null, null, $_perPage);&lt;/code&gt;and make sure to pass in a valid &lt;abbr&gt;photosetid&lt;/abbr&gt;. You can look it up by visiting a public photoset &lt;a href=&quot;http://www.flickr.com/photos/thebetancourts/sets/72157612712643487/&quot; rel=&quot;nofollow&quot;&gt;like this one of mine&lt;/a&gt;, and extracting the ID from the URL. In this case &lt;abbr&gt;72157612712643487&lt;/abbr&gt;.I hope this helps.</description> <content:encoded><![CDATA[<p>Vicki, I am glad you found this tutorial helpful.</p><p>The short answer is that you can use the <abbr>photosets_getPhotos()</abbr> method, which will accept a <abbr>photosetid</abbr>.</p><p>In proxy.php, replace the line:</p><p><code>$f->photos_getRecent( null, $_perPage, 1 )</code></p><p>with:</p><p><code>$f->photosets_getPhotos(photosetid, null, null, $_perPage);</code></p><p>and make sure to pass in a valid <abbr>photosetid</abbr>. You can look it up by visiting a public photoset <a href="http://www.flickr.com/photos/thebetancourts/sets/72157612712643487/" rel="nofollow">like this one of mine</a>, and extracting the ID from the URL. In this case <abbr>72157612712643487</abbr>.</p><p>I hope this helps.</p> ]]></content:encoded> </item> <item><title>By: Vicky</title><link>http://claude.betancourt.us/flickr-photo-gallery/comment-page-1/#comment-558</link> <dc:creator>Vicky</dc:creator> <pubDate>Wed, 21 Jan 2009 13:30:55 +0000</pubDate> <guid isPermaLink="false">http://localhost/?p=45#comment-558</guid> <description>Hi, this looks fantastic.  Thank you for going into so much detail with it.  I was actually looking for code which would pull in photos from a particular gallery which I uploaded to Flickr.  Is there a way to adapt this script to do that?</description> <content:encoded><![CDATA[<p>Hi, this looks fantastic.  Thank you for going into so much detail with it.  I was actually looking for code which would pull in photos from a particular gallery which I uploaded to Flickr.  Is there a way to adapt this script to do that?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: claude.betancourt.us @ 2012-02-07 15:27:17 by W3 Total Cache -->
