<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TheMeyers.org Geek &#187; Phanfare</title>
	<atom:link href="http://themeyers.org/geek/category/phanfare/feed/" rel="self" type="application/rss+xml" />
	<link>http://themeyers.org/geek</link>
	<description>Tracking my thoughts</description>
	<lastBuildDate>Wed, 01 Feb 2012 22:54:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Phanfare Badge</title>
		<link>http://themeyers.org/geek/2009/08/phanfare-badge/</link>
		<comments>http://themeyers.org/geek/2009/08/phanfare-badge/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 15:32:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Phanfare]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://themeyers.org/geek/?p=146</guid>
		<description><![CDATA[Sorry, I haven&#8217;t yet released the Phanfare-Widget&#8230;. I want to rework the code to use a single compound context variable, rather than many single value context variables.  I have started the transition, but I still need to debug and test the new version.  I realized that using the RSS feed interface, is limited compared to [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry, I haven&#8217;t yet released the Phanfare-Widget&#8230;. I want to rework the code to use a single compound context variable, rather than many single value context variables.  I have started the transition, but I still need to debug and test the new version.  I realized that using the RSS feed interface, is limited compared to what can be accomplished using the Phanfare API interface.</p>
<p>I have been learning the Phanfare API by implementing a clone of Flickr&#8217;s Badge javascript code <strong>badge_code_v2.gne</strong>. This is a PHP module which you install on a server, which mimics the behavior of the Flickr badge function.  In fact you can use the <a href="http://www.flickr.com/badge.gne" target="_blank">Flickr Badge generator </a>and then replace the Flickr badge call &#8220;<code><strong>http://www.flickr.com/badge_code_v2.gne?count=10&amp;display=latest&amp;size=t&amp;layout=x&amp;source=user&amp;user=18867172%40N00" </strong></code>in the generated code, with a call to your Phanfare version, and it will just work!</p>
<p>There are some differences:</p>
<ol>
<li>For security the username and password for login into Phanfare is stored inside the PHP code.  Rather than being passed in the URL.</li>
<li>You can specify the <strong>album_id</strong> or <strong>year</strong> which the random images are pulled from.</li>
<li>I haven&#8217;t implemented the <strong>display</strong>, <strong>source,user</strong> arguments as it is always choosing from the specified Phanfare user</li>
</ol>
<p>Example <a href="http://themeyers.org/badge/testbadge.html">here</a></p>
<p>I have implemented a <strong>PhanfareAPI</strong> PHP class to encapsulate all the interaction with their site.  At first I was using <strong>SimpleXMLElement</strong> but didn&#8217;t like the organization of the returned  XML structure.  I wrote <strong>XMLParser</strong> which uses the PHP internal <strong>xml_parser_create, </strong>with<strong> startElement, endElement </strong>callbacks.  This returns a pure PHP nested array structure, which is much easier to handle when iterating over repeating structures with foreach.  The performance is slightly faster than <strong>SimpleXMLElement</strong>, and there is little (if any) special case code needed when walking the returned XML structures.</p>
<p>I am working on a Caching class to improve the performance using a sqlite DB.  The performance is excellent, but the programmer interface is not yet smooth.  The assumption is that the photo site meta information doesn&#8217;t change that often, and so can be cached for a longer period of time.</p>
<p>Example: The same badge test, using Caching <a href="http://themeyers.org/badge/fastbadge.html">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://themeyers.org/geek/2009/08/phanfare-badge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phanfare-Widget</title>
		<link>http://themeyers.org/geek/2009/07/phanfare-widget/</link>
		<comments>http://themeyers.org/geek/2009/07/phanfare-widget/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 02:53:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Phanfare]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://themeyers.org/geek/?p=143</guid>
		<description><![CDATA[I am very close to releasing the new Phanfare Widget for WordPress.  My request for subversion space has been submitted to WordPress. This is based on the Photo Sidebar widget, with various improvements. Uses SimplePie for parsing, rather than Magpie (allows for faster, easier parsing, with caching of feeds) Improved the random selection algorithm to [...]]]></description>
			<content:encoded><![CDATA[<p>I am very close to releasing the new Phanfare Widget for WordPress.  My request for subversion space has been submitted to WordPress. This is based on the Photo Sidebar widget, with various improvements.</p>
<ul>
<li>Uses SimplePie for parsing, rather than Magpie (allows for faster, easier parsing, with caching of feeds)</li>
<li>Improved the random selection algorithm to speed up display. Should be faster with larger RSS feeds</li>
<li>The feeds are verified during the widget configuration.</li>
<li>Clicking on thumbnail will: (do nothing, show larger image, bring up a lightbox slideshow)</li>
<li>The size of the thumbnail image can be specified</li>
<li>When multiple resolutions are available in the feed, the closest size is used to avoid excessive browser scaling.</li>
<li>Currently works with Phanfare, PicasaWeb, SmugMug, and Flickr</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://themeyers.org/geek/2009/07/phanfare-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trying out a new Phanfare RSS plugin</title>
		<link>http://themeyers.org/geek/2009/07/trying-out-a-new-phanfare-rss-plugin/</link>
		<comments>http://themeyers.org/geek/2009/07/trying-out-a-new-phanfare-rss-plugin/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 18:39:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Phanfare]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://themeyers.org/geek/?p=55</guid>
		<description><![CDATA[I used the code from WP-SmugMug. and modified it to use the RSS feeds from Phanfare (both public and private feeds work!) Here are the first 4 images from a public feed of mine: If people are interested I will continue to port the remaining bits over into a true wp-Phanfare wordpress plugin. Testing using Phanfare [...]]]></description>
			<content:encoded><![CDATA[<p>I used the code from <a href="http://www.tow.com/projects/wordpress/wp-smugmug/">WP-SmugMug</a>.</p>
<p>and modified it to use the RSS feeds from Phanfare<br />
(both public and private feeds work!)</p>
<p>Here are the first 4 images from a public feed of mine:<br />


<!-- WP-Phanfare Plugin: http://TheMeyers.org/Projects/wordpress/ -->

<div class='wp-phanfare'>

<ul class="thumbwrap"><li><div><a href="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150729_Web_2/0_0_3026128d1879728d1ec6120645c7ce55_1" ><span class="wrimg"><span></span><img src="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150729_Thumbnail_2/0_0_343c42da70a1d3fb1d278b2dac1b3057_1"    /></span></a></div></li><li><div><a href="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150738_Web_3/0_0_68dfb2b251577729a1174841565dd9bb_1" title="Hard to see against the trees"><span class="wrimg"><span></span><img src="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150738_Thumbnail_3/0_0_8aec1fc960bd4d8ba6fe20790387b273_1"   alt="Hard to see against the trees" /></span><span class="caption">Hard to see against the trees</span></a></div></li><li><div><a href="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150756_Web_2/0_0_9b8fd28ea290427cd95c1af65640df74_1" ><span class="wrimg"><span></span><img src="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150756_Thumbnail_2/0_0_fa977ec3a644a4901fd6dbbffbbaedc0_1"    /></span></a></div></li><li><div><a href="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150764_Web_2/0_0_d6f1a44e934cf40cdf0204e39c5535cf_1" ><span class="wrimg"><span></span><img src="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150764_Thumbnail_2/0_0_37e0920017669cc152186119bb9ebf9f_1"    /></span></a></div></li></ul><div style="clear: both;"></div></div><div style="clear: both;"></div></p>
<p>If people are interested I will continue to port the remaining bits over into a true wp-Phanfare wordpress plugin.</p>
<p>Testing using Phanfare Slide show</p>


<!-- WP-Phanfare Plugin: http://TheMeyers.org/Projects/wordpress/ -->

<div class='wp-phanfare'>

<ul class="thumbwrap"><li><div><a href="http://albums.phanfare.com/slideshow.aspx?s=1&u=1083311&a_id=4134321" ><span class="wrimg"><span></span><img src="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150773_Thumbnail_2/0_0_d8afde80b81a89a2bf4b650febe9ff7d_1"    /></span></a></div></li><li><div><a href="http://albums.phanfare.com/slideshow.aspx?s=1&u=1083311&a_id=4134321" ><span class="wrimg"><span></span><img src="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150782_Thumbnail_2/0_0_cf6e0be285c773b863a74c0109e76c6f_1"    /></span></a></div></li><li><div><a href="http://albums.phanfare.com/slideshow.aspx?s=1&u=1083311&a_id=4134321" ><span class="wrimg"><span></span><img src="http://cdn-2-service.phanfare.com/images/external/1083311_4134321_73150792_Thumbnail_2/0_0_ee275a1411d2b47856008b25bcec6aaa_1"    /></span></a></div></li></ul><div style="clear: both;"></div></div><div style="clear: both;"></div>
]]></content:encoded>
			<wfw:commentRss>http://themeyers.org/geek/2009/07/trying-out-a-new-phanfare-rss-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

