<?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: How to add a Flickr-based photo gallery to your website: phpFlickr + Lightbox.</title>
	<atom:link href="http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/</link>
	<description>Online Business Enthusiast</description>
	<lastBuildDate>Thu, 17 May 2012 03:53:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Haider</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17742</link>
		<dc:creator>Haider</dc:creator>
		<pubDate>Thu, 17 May 2012 03:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17742</guid>
		<description>@Tabatha,

Two things... one, as Adam said, you have a syntax error somewhere.  And two, you need to include a line which prints the final download url: &quot;echo $download_url;&quot;</description>
		<content:encoded><![CDATA[<p>@Tabatha,</p>
<p>Two things&#8230; one, as Adam said, you have a syntax error somewhere.  And two, you need to include a line which prints the final download url: &#8220;echo $download_url;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17731</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Tue, 15 May 2012 15:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17731</guid>
		<description>Hey John - great to hear you got it working and that the other comments were able to help you out. Sorry I was late to reply.

@Tabatha sorry to hear you&#039;re having issues - parse error sounds like it could be a misplaced semi-colon, etc. Can you paste the line of code (and the one before it) that is throwing this error?

@Alex if you want to ping me an email from my contact form or &lt;a href=&quot;http://twitter.com/adambate/&quot; rel=&quot;nofollow&quot;&gt;get in touch on twitter&lt;/a&gt; I&#039;ll be able to better help you with the WordPress shortcode. Cheers.

@Bhutan glad you liked it.</description>
		<content:encoded><![CDATA[<p>Hey John &#8211; great to hear you got it working and that the other comments were able to help you out. Sorry I was late to reply.</p>
<p>@Tabatha sorry to hear you&#8217;re having issues &#8211; parse error sounds like it could be a misplaced semi-colon, etc. Can you paste the line of code (and the one before it) that is throwing this error?</p>
<p>@Alex if you want to ping me an email from my contact form or <a href="http://twitter.com/adambate/" rel="nofollow">get in touch on twitter</a> I&#8217;ll be able to better help you with the WordPress shortcode. Cheers.</p>
<p>@Bhutan glad you liked it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Hilton</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17720</link>
		<dc:creator>John Hilton</dc:creator>
		<pubDate>Mon, 14 May 2012 08:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17720</guid>
		<description>No probs re above post now Adam thanks. &#039;Stole&#039; mark&#039;s code from a post above and modified it (commented out the borders
ie
.photos {
position: relative;
float: left;
display: block;
padding: 2px;
margin: 8px;
background: #fff;
/*border-right: 2px solid #999;
border-bottom: 2px solid #999;*/
}</description>
		<content:encoded><![CDATA[<p>No probs re above post now Adam thanks. &#8216;Stole&#8217; mark&#8217;s code from a post above and modified it (commented out the borders<br />
ie<br />
.photos {<br />
position: relative;<br />
float: left;<br />
display: block;<br />
padding: 2px;<br />
margin: 8px;<br />
background: #fff;<br />
/*border-right: 2px solid #999;<br />
border-bottom: 2px solid #999;*/<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Hilton</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17716</link>
		<dc:creator>John Hilton</dc:creator>
		<pubDate>Sun, 13 May 2012 19:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17716</guid>
		<description>Excellent tutorial! I&#039;m so pleased I found this! One question though please. In the example site designbyroeland.com, the thumbnails come back with a nice white space between them. I would like this on my page but am getting all the thumbnails next to each other. How do I achieve this? Have looked within the .css but don&#039;t want to break it!

best regards
John</description>
		<content:encoded><![CDATA[<p>Excellent tutorial! I&#8217;m so pleased I found this! One question though please. In the example site designbyroeland.com, the thumbnails come back with a nice white space between them. I would like this on my page but am getting all the thumbnails next to each other. How do I achieve this? Have looked within the .css but don&#8217;t want to break it!</p>
<p>best regards<br />
John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrbrz</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17691</link>
		<dc:creator>mrbrz</dc:creator>
		<pubDate>Wed, 02 May 2012 15:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17691</guid>
		<description>Adam, I&#039;ve spend hours trying to figure this out. 

The foreach statement is causing it to load/display all the thumbnails in my set on the main page. I just want it to show a thumbnail for the first image in the set or an icon that a user clicks then it shows them all one-by-one as you toggle left/right in lightbox mode. Help!

Thank you!</description>
		<content:encoded><![CDATA[<p>Adam, I&#8217;ve spend hours trying to figure this out. </p>
<p>The foreach statement is causing it to load/display all the thumbnails in my set on the main page. I just want it to show a thumbnail for the first image in the set or an icon that a user clicks then it shows them all one-by-one as you toggle left/right in lightbox mode. Help!</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17622</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 14 Mar 2012 03:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17622</guid>
		<description>Moreover... what if I&#039;d like to display a private set? entering the secret seems not to help. :(</description>
		<content:encoded><![CDATA[<p>Moreover&#8230; what if I&#8217;d like to display a private set? entering the secret seems not to help. <img src='http://www.adambate.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17621</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 14 Mar 2012 03:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17621</guid>
		<description>Hi Adam.
I&#039;m not a PHP expert, I just play...

I&#039;d like to insert this as a shortcode in Wordpress.
Like just write this in your posts and set opens: [flickr set=&quot;xxxxxxx&quot;]
Anyway my formula doesn&#039;t work. It throws an error like

&quot;Fatal error: Call to a member function photosets_getPhotos() on a non-object in... MYFILENAME&quot;

&lt;code&gt;
function my_flickr( $atts ) {
	extract( shortcode_atts( array(
	  &#039;set&#039; =&gt; &#039;&#039;), $atts ) );
	
	$photos = $f-&gt;photosets_getPhotos($set);
	foreach ($photos[&#039;photoset&#039;][&#039;photo&#039;] as $photo):
	echo &quot;buildPhotoURL($photo, &#039;large&#039;) . &quot;alt=&quot; . $photo[&#039;title&#039;] . &quot; title=&quot; . $photo[&#039;title&#039;] .&quot; /&gt;&quot;;
	endforeach;
}

add_shortcode( &#039;flickr&#039;, &#039;my_flickr&#039; );
&lt;/code&gt;

I guest something is wrong with my &quot;matrioska&quot; functions ^_^
Can you help me?

thank you!!</description>
		<content:encoded><![CDATA[<p>Hi Adam.<br />
I&#8217;m not a PHP expert, I just play&#8230;</p>
<p>I&#8217;d like to insert this as a shortcode in WordPress.<br />
Like just write this in your posts and set opens: [flickr set="xxxxxxx"]<br />
Anyway my formula doesn&#8217;t work. It throws an error like</p>
<p>&#8220;Fatal error: Call to a member function photosets_getPhotos() on a non-object in&#8230; MYFILENAME&#8221;</p>
<p><code><br />
function my_flickr( $atts ) {<br />
	extract( shortcode_atts( array(<br />
	  'set' =&gt; ''), $atts ) );</p>
<p>	$photos = $f-&gt;photosets_getPhotos($set);<br />
	foreach ($photos['photoset']['photo'] as $photo):<br />
	echo "buildPhotoURL($photo, 'large') . "alt=" . $photo['title'] . " title=" . $photo['title'] ." /&gt;";<br />
	endforeach;<br />
}</p>
<p>add_shortcode( 'flickr', 'my_flickr' );<br />
</code></p>
<p>I guest something is wrong with my &#8220;matrioska&#8221; functions ^_^<br />
Can you help me?</p>
<p>thank you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bhutan Tours</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17583</link>
		<dc:creator>Bhutan Tours</dc:creator>
		<pubDate>Sun, 11 Mar 2012 16:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17583</guid>
		<description>Great tutorial and it has helped me so much .... thanks a lot</description>
		<content:encoded><![CDATA[<p>Great tutorial and it has helped me so much &#8230;. thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tabatha</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17497</link>
		<dc:creator>Tabatha</dc:creator>
		<pubDate>Mon, 05 Mar 2012 18:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17497</guid>
		<description>@Haider &amp; @Adam I replaced &lt;a href=&quot;buildPhotoURL($photo, &#039;original&#039;) ?&gt;&quot;&gt;Download&lt;/a&gt; with your code like this &lt;a href=&quot;photos_getSizes($photo[&#039;id&#039;]);
foreach($sizes as $size) {
if($size[&#039;label&#039;] == &#039;Original&#039;) {
$url = $size[&#039;source&#039;];
$download_url = str_replace(&#039;.jpg&#039;, &#039;_d.jpg&#039;, $url);
} ?&gt;&quot;&gt;Download&lt;/a&gt; 

And I am now getting an error (it works fine before I change it except it doesn&#039;t pull original images) Parse error: syntax error, unexpected T_ENDFOREACH</description>
		<content:encoded><![CDATA[<p>@Haider &amp; @Adam I replaced &lt;a href=&quot;buildPhotoURL($photo, &#8216;original&#8217;) ?&gt;&#8221;&gt;Download with your code like this &lt;a href=&quot;photos_getSizes($photo['id']);<br />
foreach($sizes as $size) {<br />
if($size['label'] == &#8216;Original&#8217;) {<br />
$url = $size['source'];<br />
$download_url = str_replace(&#8216;.jpg&#8217;, &#8216;_d.jpg&#8217;, $url);<br />
} ?&gt;&#8221;&gt;Download </p>
<p>And I am now getting an error (it works fine before I change it except it doesn&#8217;t pull original images) Parse error: syntax error, unexpected T_ENDFOREACH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel</title>
		<link>http://www.adambate.net/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/#comment-17385</link>
		<dc:creator>Rachel</dc:creator>
		<pubDate>Tue, 28 Feb 2012 11:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.adambate.net/?p=195#comment-17385</guid>
		<description>Great post - thank you.   I had similar problems to Dee, but once I had found the correct id and moved from my localhost to my hosting provider it worked.

The id is quite confusing since Flickr merged with Yahoo what you need is this xxxxxxxx@Nxx which can be found in the URL on your account.  I found mine by clicking on a photo within your account and you will see a long URL which will have this id within it.  

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Great post &#8211; thank you.   I had similar problems to Dee, but once I had found the correct id and moved from my localhost to my hosting provider it worked.</p>
<p>The id is quite confusing since Flickr merged with Yahoo what you need is this xxxxxxxx@Nxx which can be found in the URL on your account.  I found mine by clicking on a photo within your account and you will see a long URL which will have this id within it.  </p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

