<?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"
	>

<channel>
	<title>Yet Another Photoblog</title>
	<atom:link href="http://www.yet-another-photoblog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yet-another-photoblog.com</link>
	<description>Convert your WordPress Installation  into a full featured PhotoBlog</description>
	<pubDate>Mon, 01 Sep 2008 13:25:13 +0000</pubDate>
	
	<language>en</language>
			<item>
		<title>YAPB Plugins and Hooks</title>
		<link>http://www.yet-another-photoblog.com/2008/09/yapb-plugins-and-hooks/</link>
		<comments>http://www.yet-another-photoblog.com/2008/09/yapb-plugins-and-hooks/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 13:24:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.yet-another-photoblog.com/?p=47</guid>
		<description><![CDATA[The way of the master: Install WordPress, convert it to a photoblog via YAPB and finally pimp it up with some plugins.

Already Available Plugins
XP Uploader
Historically the first available third-party extension to YAPB: Developed by Joost, it allows you to upload images directly over the Windows XP File Explorer.
Download the plugin from
the WordPress Plugin repository
YAPB Sidebar [...]]]></description>
			<content:encoded><![CDATA[<p>The way of the master: Install WordPress, convert it to a photoblog via YAPB and finally pimp it up with some plugins.</p>
<p><span id="more-47"></span></p>
<h2>Already Available Plugins</h2>
<h3>XP Uploader</h3>
<p>Historically the first available third-party extension to YAPB: Developed by <a href="http://joost.reuzel.nl/" target="_blank">Joost</a>, it allows you to upload images directly over the Windows XP File Explorer.</p>
<p><a href="http://wordpress.org/extend/plugins/xp-uploader" target="_blank">Download the plugin from<br />
the WordPress Plugin repository</a></p>
<h3>YAPB Sidebar Widget</h3>
<p>Previously included in the default YAPB installation, the YAPB sidebar widget was outsourced since version 1.9 and has become a plugin of it&#8217;s own. Of course, it evolved a little bit and now offers you the following functionality: Either show a list of your prevously posted images or just output some random images. Additionally you now may display a link to your mosiac page below the widget.</p>
<p><a href="http://wordpress.org/extend/plugins/yapb-sidebar-widget" target="_blank">Download the plugin from<br />
the WordPress Plugin repository</a></p>
<h3>YAPB XMLRPC Server</h3>
<p>Originally provided by Mac, the YAPB XMLRPC Server Plugin allows remote access to your photoblog. You define an API key and voila: Your images are accessible via XML RPC. If you don&#8217;t know how to do that: Just have a look at the YAPB XMLRPC Sidebar Widget <img src='http://www.yet-another-photoblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://wordpress.org/extend/plugins/yapb-xmlrpc-server" target="_blank">Download the plugin from<br />
the WordPress Plugin repository</a></p>
<h2>Developing your own YAPB Plugin</h2>
<p>Ah, finally - The interesting part for us developers <img src='http://www.yet-another-photoblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> Read this little introduction and have a look at the code of the yapb-sidebar-widget for example, and you should know how to develop YAPB plugins. It&#8217;s no rocket science.</p>
<h3>Why YAPB Plugins?</h3>
<p>First of all: Why splitting YAPB into a main part + plugins? Imho, separating blocks of functionality helps YAPB stay clean, &#8220;small&#8221; (whatever that means) and helps YAPB keeping focused on its primary target: Extend WordPress to become a cool photoblog platform.</p>
<p>Secondly, separate plugins may be developed and evolved separately without any coupling to the main YAPB release cycle. Developers may now create additional features without &#8220;asking me for permission&#8221; or whatever - just go and do it <img src='http://www.yet-another-photoblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h3>It&#8217;s simple</h3>
<p>Writing a YAPB-Plugin is basically the same thing as writing a WordPress Plugin - It&#8217;s just a matter of view: We develop additional functionality built onto the YAPB foundation:</p>
<p>YAPB basicly offers you the &#8220;yapb_register_plugin&#8221; action-hook, which gets called right after YAPB initialization. Additionally, your function gets called with the current YAPB Class Instance as parameter: It&#8217;s a simple as that:</p>
<pre>
<pre name="code" class="php">

function my_cool_plugin_initialization($yapb) {
  // hook into WordPress,
  // add some options to YAPB and
  // finally do what you want
}

add_action(&#039;yapb_register_plugin&#039;, &#039;my_cool_plugin_initialization&#039;);
</pre>
</pre>
<p>Have a look at the <a href="http://www.wordpress.org/extend/plugins/yapb-sidebar-widget" target="_blank">YAPB Sidebar Widget Plugin</a> for more handy sample code.</p>
<h2>The ultimate YAPB Hook Reference</h2>
<p>YAPB offers some hooks out of the box. If you&#8217;re interested in developing your own YAPB Extension you should have a look at this list:</p>
<h3>yapb_register_plugin</h3>
<p><strong>Source:</strong> Yapb.class.php<br />
<strong>Since:</strong> 1.9</p>
<p>yapb_register_thumbnail gets fired from YAPB after all plugins were loaded. That means you can execute code right after YAPB was initialized - And you get the YAPB Instance as Parameter. This hook is an <a href="http://codex.wordpress.org/Plugin_API#Actions" target="_blank"><strong>action</strong></a> which means that it primarily acts as an event trigger, instead of a content filter.</p>
<h3>yapb_get_thumbnail</h3>
<p><strong>Source:</strong> YapbTemplateFunctions.php</p>
<p>yapb_get_thumbnail gets fired just before the image tag gets returned from the yapb_get_thumbnail() template function. This hook is a <a href="http://codex.wordpress.org/Plugin_API#Filter" target="_blank"><strong>filter</strong></a> which means that information is passed through it, and then used by WordPress.</p>
<h3>yapb_get_exif</h3>
<p><strong>Source:</strong> YapbTemplateFunctions.php</p>
<p>yapb_get_exif gets fired just before the EXIF tags array gets returned from the yapb_get_exif() template function. This hook is a <a href="http://codex.wordpress.org/Plugin_API#Filter" target="_blank"><strong>filter</strong></a> which means that information is passed through it, and then used by WordPress.</p>
<h3>yapb_alternative_image_formats</h3>
<p><strong>Source:</strong> YapbTemplateFunctions.php</p>
<p>yapb_alternative_image_formats gets fired just before the list of alternative image formats get returned by the according template function. This hook is a <a href="http://codex.wordpress.org/Plugin_API#Filter" target="_blank"><strong>filter</strong></a> which means that information is passed through it, and then used by WordPress.</p>
<h3>damn_i_need_a_new_hook</h3>
<p>If you need a hook in YAPB to develop something new: <a href="http://johannes.jarolim.com/yapb-forum/forumdisplay.php?fid=9" target="_blank">Leave me a note in the forum</a> so we can discuss it. But hey: I&#8217;m the last one blocking new features. As long as it&#8217;s not disturbing the way YAPB works, i&#8217;m with you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yet-another-photoblog.com/2008/09/yapb-plugins-and-hooks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>YAPB Template functions</title>
		<link>http://www.yet-another-photoblog.com/2008/09/yapb-template-functions/</link>
		<comments>http://www.yet-another-photoblog.com/2008/09/yapb-template-functions/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 12:52:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.yet-another-photoblog.com/?p=39</guid>
		<description><![CDATA[Obtain full control over the output of your photoblog - With the template functions offered by YAPB. By adapting your theme manually, you may display images, thumbnails, exif data and much more where and when you want.

yapb_is_photoblog_post
Function returns wheter this post is a photoblog post or not.
Parameters
No Parameters
Returns
boolean (true&#124;false) if this post is a YAPB [...]]]></description>
			<content:encoded><![CDATA[<p>Obtain full control over the output of your photoblog - With the template functions offered by YAPB. By adapting your theme manually, you may display images, thumbnails, exif data and much more where and when you want.</p>
<p><span id="more-39"></span></p>
<h2>yapb_is_photoblog_post</h2>
<p>Function returns wheter this post is a photoblog post or not.</p>
<h3>Parameters</h3>
<p>No Parameters</p>
<h3>Returns</h3>
<p>boolean (true|false) if this post is a YAPB post with attached image.</p>
<h3>Sample usage:</h3>
<pre>
<pre name="code" class="php">
&lt;?php if (yapb_is_photoblog_post()): ?&gt;HOHOHO&lt;?php endif ?&gt;
</pre>
</pre>
<h2>yapb_get_image</h2>
<p>Function returns an image tag according to the given parameters</p>
<h3>Parameters:</h3>
<ol>
<li>string $before HTML to be rendered before the image</li>
<li>array $parameters Additional IMG Attributes except src, width and height</li>
<li>string $after HTML to be rendered after the image</li>
</ol>
<h3>Returns</h3>
<p>a string containing the image tag</p>
<h3>Sample Usage:</h3>
<pre>
<pre name="code" class="php">
&lt;?php echo yapb_get_image(&#039;&lt;div&gt;&#039;, array(&#039;alt&#039; =&gt; &#039;This is an image&#039;), &#039;&lt;/div&gt;&#039;); ?&gt;
</pre>
</pre>
<h2>yapb_image</h2>
<p>Same as yapb_get_image (See above) - It just prints out the result instead of returning it</p>
<h3>Parameters:</h3>
<p>Same as yapb_get_image</p>
<h3>Sample Usage:</h3>
<pre>
<pre name="code" class="php">
&lt;?php yapb_image(&#039;&lt;div&gt;&#039;, array(&#039;alt&#039; =&gt; &#039;This is an image&#039;), &#039;&lt;/div&gt;&#039;); ?&gt;
</pre>
</pre>
<h2>yapb_get_thumbnail</h2>
<p>Function returns an thumbnail image tag according to the given parameters</p>
<h3>Parameters:</h3>
<ol>
<li>string $before HTML to be rendered before the thumbnail</li>
<li>array $parameters Additional IMG Attributes except src, width and height</li>
<li>string $after HTML to be rendered after the thumbnail</li>
<li>array $phpThumbConfiguration The phpThumb configuration</li>
<li>string $class Additional CSS Class of the image</li>
</ol>
<h3>Returns</h3>
<p>a string containing the image tag</p>
<h3>Sample Usage:</h3>
<pre>
<pre name="code" class="php">
 &lt;?php echo yapb_get_thumbnail(&#039;&lt;div&gt;&#039;, array(&#039;alt&#039; =&gt; &#039;This is a thumbnail&#039;, &#039;rel&#039; =&gt; &#039;lightbox&#039;), &#039;&lt;/div&gt;&#039;, array(&#039;w=200&#039;, &#039;q=90&#039;), &#039;thumbnail&#039;); ?&gt;
</pre>
</pre>
<p>As you can see above, this code sample is also an example on how to include the lightbox.js script.</p>
<h2>yapb_thumbnail</h2>
<p>Same as yapb_get_thumbnail (See above) - It just prints out the result instead of returning it</p>
<h3>Parameters:</h3>
<p>Same as yapb_get_thumbnail</p>
<h3>Sample Usage:</h3>
<pre>
<pre name="code" class="php">
&lt;?php yapb_thumbnail(&#039;&lt;div&gt;&#039;, array(&#039;alt&#039; =&gt; &#039;This is a thumbnail&#039;), &#039;&lt;/div&gt;&#039;, array(&#039;w=200&#039;, &#039;q=90&#039;), &#039;thumbnail&#039;); ?&gt;
</pre>
</pre>
<h2>yapb_get_exif</h2>
<p>functions returns a list of the exif tokens if available</p>
<h3>Parameters:</h3>
<ol>
<li>boolean $flagUnfiltered No EXIF-tag filtering if true - Return all EXIF tokens</li>
</ol>
<h3>Returns</h3>
<p>assoziative array containing all (filtered) EXIF tokens</p>
<h3>Sample Usage:</h3>
<pre>
<pre name="code" class="php">
&lt;?php $theWonderfulExif = yapb_get_exif() ?&gt;
</pre>
</pre>
<h2>yapb_exif</h2>
<p>literally the same as the function above - It just prints out the exif tags and gives you some parameters so you can customize the output.</p>
<h3>Parameters:</h3>
<ol>
<li>string $liClass CSS class of the li tags</li>
<li>string $keyValueSeparator HTML between EXIF key and EXIF value</li>
<li>string $htmlBeforeKey HTML to be rendered before the EXIF key</li>
<li>string $htmlAfterKey HTML to be rendered after the EXIF key</li>
<li>string $htmlBeforeValue HTML to be rendered before the EXIF value</li>
<li>string $htmlAfterValue HTML to be rendered after the EXIF value</li>
<li>boolean $flagUnfiltered No EXIF-tag filtering if true - Return all EXIF tokens</li>
</ol>
<h3>Sample Usage:</h3>
<pre>
<pre name="code" class="php">
&lt;h3&gt;EXIF&lt;/h3&gt;&lt;ul&gt;&lt;?php yapb_exif(&#039;exiftag&#039;, &#039;:&#039;, &#039;&lt;strong&gt;&#039;, &#039;&lt;/strong&gt;&#039;, &#039;&lt;i&gt;&#039;, &#039;&lt;/i&gt;&#039;) ?&gt;&lt;/ul&gt;
</pre>
</pre>
<h2>yapb_get_alternative_image_formats</h2>
<p>Returns a listitems with links to alternatively provided image sizes. It will only return image sizes lower or equal that the original uploaded file. The array availableSizes contains should contain a list of all sizes to be provided: The number gets mapped to the longer side of the image.</p>
<h3>Parameters:</h3>
<ol>
<li>array $availableSizes An array containing all max. sizes to be made available</li>
</ol>
<h3>Returns</h3>
<p>string containing some li&#8217;s</p>
<h3>Sample Usage:</h3>
<pre>
<pre name="code" class="php">
&lt;h3&gt;Alternative Image Formats&lt;/h3&gt;&lt;ul&gt;&lt;?php echo yapb_get_alternative_image_formats(array(1600, 1024, 800, 640, 320)) ?&gt;&lt;/ul&gt;
</pre>
</pre>
<h2>yapb_alternative_image_formats</h2>
<p>Basicly the same as  above - Just prints out the result</p>
<h3>Parameters:</h3>
<p>Same as above</p>
<h3>Sample Usage:</h3>
<pre>
<pre name="code" class="php">
 &lt;h3&gt;Alternative Image Formats&lt;/h3&gt;&lt;ul&gt;&lt;?php yapb_alternative_image_formats(array(1600, 1024, 800, 640, 320)) ?&gt;&lt;/ul&gt;
</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.yet-another-photoblog.com/2008/09/yapb-template-functions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adapting templates</title>
		<link>http://www.yet-another-photoblog.com/2008/08/adapting-your-template/</link>
		<comments>http://www.yet-another-photoblog.com/2008/08/adapting-your-template/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 12:09:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.yet-another-photoblog.com/?p=26</guid>
		<description><![CDATA[First of all: Adapting your theme to be &#8220;YAPB-Ready&#8221; is definitely no magic (Or as Douglas Adams used to write: Don’t Panic ;-). There are just a few points to know and your way to an attractive and individual photoblog is free.

Does adapting a theme sounds like rocket science to you? Maybe one of the [...]]]></description>
			<content:encoded><![CDATA[<p>First of all: Adapting your theme to be &#8220;YAPB-Ready&#8221; is definitely no magic (Or as Douglas Adams used to write: Don’t Panic ;-). There are just a few points to know and your way to an attractive and individual photoblog is free.</p>
<p><span id="more-26"></span></p>
<p>Does adapting a theme sounds like rocket science to you? Maybe one of the <a href="http://www.yet-another-photoblog.com/2008/08/ready-to-use-templates/">Ready-to-use-templates</a> meets your taste.</p>
<h2>The Basics</h2>
<p>YAPB gives the possibility to attach photos/images to your posts and to display them in various formats and styles. This section describes the first essential things you can do in your blogs template. If you decide to adapt your theme manually, don&#8217;t forget to turn off the automatic-image-insertion feature on the YAPB Options page.</p>
<h3>Do it in the loop</h3>
<p>First of all: All those code samples described underneath have to be used in <a href="http://codex.wordpress.org/The_Loop" target="_blank">the loop</a>.</p>
<h3>Checking for image existance</h3>
<p>Since you&#8217;re free to post normal Wordpress articles or photoblog entries, there must be a possibility to check wheter the current displayed post is a photoblog post or not - Nothing easier than that:</p>
<pre>
<pre name="code" class="php">
&lt;?php if (yapb_is_photoblog_post()): ?&gt;
  &lt;!-- This definitly is a YAPB Photoblog post --&gt;
&lt;?php else: ?&gt;
  &lt;!-- No image attached: This is a normal WordPress post --&gt;
&lt;?php endif ?&gt;
</pre>
</pre>
<h3>Displaying the image</h3>
<p>Now we know that we have an image, we want to display it:</p>
<pre>
<pre name="code" class="php">
&lt;?php if (yapb_is_photoblog_post()): ?&gt;
  &lt;?php yapb_image(&#039;&#039;, array(&#039;alt&#039; =&gt; &#039;My marvelous image&#039;), &#039;&#039;) ?&gt;
&lt;?php else: ?&gt;
  ...
&lt;?php endif ?&gt;
</pre>
</pre>
<p>For more information on yapb_image() and yapb_get_image() refer to the <a href="http://www.yet-another-photoblog.com/2008/09/yapb-template-functions/">template functions documentation</a></p>
<h3>Displaying a thumbnail</h3>
<p>To one of the interesting parts: thumbnailing. YAPB uses <a href="http://phpthumb.sourceforge.net">phpThumb</a>, a very stable and mature PHP library, for it&#8217;s thumbnailing. YAPB tries to hide all those nasty details and offers you a simple and refreshing template function which does all that resizing, caching and displaying-stuff for you:</p>
<pre>
<pre name="code" class="php">
&lt;?php if (yapb_is_photoblog_post()): ?&gt;

  &lt;?php

    echo yapb_get_thumbnail(
      &#039;&lt;div&gt;&#039;, // HTML before image tag
      array(
        &#039;alt&#039; =&gt; &#039;My marvelous first thumbnail&#039;, // image tag alt attribute
        &#039;rel&#039; =&gt; &#039;lightbox&#039;                      // image tag rel attribute
      ),
      &#039;&lt;/div&gt;&#039;,               // HTML after image tag
      array(&#039;w=200&#039;, &#039;q=90&#039;), // phpThumb configuration parameters
      &#039;thumbnail&#039;             // image tag custom css class
    );

  ?&gt;

&lt;?php else: ?&gt;
  ...
&lt;?php endif ?&gt;
</pre>
</pre>
<p>Nearly the same as yapb_image() - But with additional <a href="http://phpthumb.sourceforge.net/demo/docs/phpthumb.readme.txt" target="_blank">phpThumb configuration parameters</a> that define the desired size and css class of your thumbnail image.</p>
<h3>Displaying EXIF data</h3>
<p>The next cool thing to do is displaying the EXIF data of your image. YAPB does use the easy-to-use library <a href="http://freshmeat.net/projects/phpexifrw/" target="_blank">phpExifRW</a> and tries to hide it&#8217;s complexity from you as always:</p>
<pre>
<pre name="code" class="php">
&lt;?php if (yapb_is_photoblog_post()): ?&gt;

  &lt;h3&gt;EXIF&lt;/h3&gt;
  &lt;ul&gt;

  &lt;?php

    yapb_exif(
      &#039;li-exif&#039;,   // CSS Class for the LIs
      &#039;: &#039;,        // Separator between EXIF token name and value
      &#039;&lt;strong&gt;&#039;,  // HTML before EXIF token name
      &#039;&lt;/strong&gt;&#039;, // HTML after EXIF token name
      &#039;&lt;i&gt;&#039;,       // HTML before EXIF token value
      &#039;&lt;/i&gt;&#039;       // HTML after EXIF token value
    )

  ?&gt;

  &lt;/ul&gt;

&lt;?php else: ?&gt;
  ...
&lt;?php endif ?&gt;
</pre>
</pre>
<p>Have a look into the according documentation to see what can be done with this template function.</p>
<h2>More advanced stuff</h2>
<p>This section won&#8217;t only highlight the more complex templating possibilites, but also some general WordPress functionality that may spice up your theme:</p>
<h3>Attaining the YAPB-Imageobject directly</h3>
<p>Templating functions are cool - Until you need to, let&#8217;s say&#8230; display the thumbnail of a post not included in the current loop. So there should be a way to get grip on the YAPB Image Object directly to attain full control.</p>
<p>Example: You&#8217;re fetching one post out of the DB by using get_next_post() and want to know if it&#8217;s a photoblog article:</p>
<pre>
<pre name="code" class="php">
&lt;?php

  // Use the WP Infrastructure to get the next post

  $theNextPost = get_next_post(); 

  // Check if we&#039;ve gotten something

  if (!empty($nextPost)) {

    // Yes, we have a next post
    // Let&#039;s check if it has an image attached:

    if (!is_null($image = YapbImage::getInstanceFromDb($theNextPost-&gt;ID))) {

      // Yes, we have an image
      echo &#039;Heureka! The next post is a photoblog article.&#039;;

    } else {

      // no image ahead
      echo &#039;Alas! Just a normal WordPress article ahead.&#039;;

    }

  }

?&gt;
</pre>
</pre>
<h3>Thumbnail navigation (previous and next image)</h3>
<p>Since we know how to get the image object by hand, we could now use this know-how to create a little &#8220;next image, previous image&#8221; navigation with thumbnails as links.</p>
<p>I only show the code for the &#8220;next post&#8221; part - The &#8220;previous post&#8221; part is basically the same thing with usage of the get_previous_post() function:</p>
<pre>
<pre name="code" class="php">
&lt;?php

  // Use the WP Infrastructure to get the next post

  $theNextPost = get_next_post(); 

  // Check if we&#039;ve gotten something

  if (!empty($nextPost)) {

    // Yes, we have a next post
    // Let&#039;s check if it has an image attached:

    if (!is_null($image = YapbImage::getInstanceFromDb($theNextPost-&gt;ID))) {

      // Yes, we have an image
      // Let&#039;s define the thumbnail configuration

      $thumbnailConfiguration = array(
        &#039;w=75&#039;, // 75 pixels width
        &#039;h=75&#039;, // 75 pixels height
        &#039;zc=1&#039;  // crop the image
      );

      // And output the image tag

      echo &#039;&lt;a href=&quot;&#039; . get_permalink($theNextPost-&gt;ID) . &#039;&quot;&gt;&#039;;
      echo &#039;&lt;img &#039; .
        &#039;border=&quot;0&quot; &#039; .
        &#039;src=&quot;&#039; . $image-&gt;getThumbnailHref($thumbnailConfiguration) . &#039;&quot; &#039; .
        &#039;alt=&quot;To the next post&quot; &#039; .
        &#039;width=&quot;&#039; . $image-&gt;getThumbnailWidth($thumbnailConfiguration) . &#039;&quot; &#039; .
        &#039;height=&quot;&#039; . $image-&gt;getThumbnailHeight($thumbnailConfiguration) . &#039;&quot; &#039; .
        &#039;/&gt;&#039;;
      echo &#039;&lt;/a&gt;&#039;;

    } else {

      // no image - we display a text link
      echo &#039;&lt;a href=&quot;&#039; . get_permalink($theNextPost-&gt;ID) . &#039;&quot;&gt;To the next post&lt;/a&gt;&#039;;

    }
  }

?&gt;
</pre>
</pre>
<p>For more information on the YAPB Image Object, just have a look into the <a href="http://svn.wp-plugins.org/yet-another-photoblog/trunk/lib/YapbImage.class.php" target="_blank">lib/YapbImage.class.php</a> - It should be documented sufficiently.</p>
<h3>More to follow</h3>
<p>So much for now - If you have ideas and code samples for this page - Leave a comment or post something in the <a href="http://johannes.jarolim.com/yapb-forum">forum</a> - I&#8217;ll take a look.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yet-another-photoblog.com/2008/08/adapting-your-template/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Download and Installation</title>
		<link>http://www.yet-another-photoblog.com/2008/08/download-and-installation/</link>
		<comments>http://www.yet-another-photoblog.com/2008/08/download-and-installation/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 21:03:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.yet-another-photoblog.com/?p=18</guid>
		<description><![CDATA[Where do i find the current YAPB for download? And how do i install it? All question get answered here!

Current version
Yet-Another-Photoblog on WP-Plugins.org for WordPress 2.5 and greater, ZIP-File, hosted on WP-Plugins.org
Older versions
If you’re using an older version of WordPress (please be adviced to update soon) you may download one of the following versions. Please [...]]]></description>
			<content:encoded><![CDATA[<p>Where do i find the current YAPB for download? And how do i install it? All question get answered here!</p>
<p><span id="more-18"></span></p>
<h3>Current version</h3>
<p><a href="http://wordpress.org/extend/plugins/yet-another-photoblog" target="_blank">Yet-Another-Photoblog on WP-Plugins.org</a> for WordPress 2.5 and greater, ZIP-File, hosted on WP-Plugins.org</p>
<h3>Older versions</h3>
<p>If you’re using an older version of WordPress (please be adviced to update soon) you may download one of the following versions. Please mention that those version are deprecated.</p>
<ul>
<li><a href="http://downloads.wordpress.org/plugin/yet-another-photoblog.1.7.4.zip">Yet-Another-Photoblog-beta-1.7.4.zip</a> for WordPress 2.3.2 discontinued, ZIP-File, 714 KB</li>
<li><a href="http://johannes.jarolim.com/blog/wp-content/uploads/File/yet-another-photoblog-beta-1.5.2.zip">Yet-Another-Photoblog-beta-1.5.2.zip</a> for WordPress 2.1.x and 2.2.x discontinued, ZIP-File, 480 KB</li>
<li><a href="http://johannes.jarolim.com/blog/wp-content/uploads/File/yet-another-photoblog-beta-1.3.1.zip">Yet-Another-Photoblog-beta-1.3.1.zip</a> for WordPress 2.0.x discontinued, ZIP-File, 314 KB</li>
</ul>
<h2>Installation</h2>
<p>The installation consists of three parts: Upload, setting a directory permission (on unix/linux systems) and activation of the plugin.</p>
<h3>Upload the files</h3>
<ol>
<li><strong>Unzip</strong> the content of the zip-file into an empty directory</li>
<li><strong>Upload</strong> the yapb-directory directly into the wp-content/plugins folder of your wp-installation</li>
</ol>
<h3>Set a directory permission</h3>
<p><em>Notice: You don’t need this on windows systems (or you have to wrestle with the windows directory permissions).</em></p>
<ol>
<li>The used open source thumbnailing engine <a onclick="javascript:pageTracker._trackPageview('/outgoing/phpthumb.sourceforge.net/');" href="http://phpthumb.sourceforge.net/" target="_blank">phpThumb</a> needs one directory access for storing its cache files. Set the permission of the directory <strong>wp-content/plugins/yet-another-photoblog/cache/</strong> to <strong>777</strong>.</li>
</ol>
<h3>Activate the plugin</h3>
<ol>
<li>Go to admin panel / plugins and <strong>activate</strong> it</li>
<li><strong>Enjoy!</strong></li>
</ol>
<h2>Contribute</h2>
<h3>Support YAPB</h3>
<p><strong>Do you like YAPB?</strong> Do you use it regulary to show your photos or images? Did YAPB save you time? Or you just want to give something back for the time spent to create, maintain and support YAPB? <strong>Just Donate</strong> a little ammount so i may buy a good book, DVD, etc. or just pay some server traffic. Bigger ammounts (if any) will be invested in my photo equipment of course <img src='http://www.yet-another-photoblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Thanks alot from Salzburg!</p>
<h3>Set a backlink</h3>
<p><strong>Yes</strong> - This plugin was released under the GPL and you’re nearly free to do all you want to do.</p>
<p>But i’d be pleased very much to see some backlinks to this site.</p>
<p>This plugin needs a lot of my spare time - So it would be a great sign of respect if you use one of these buttons (or just place a normal href) on your site:</p>
<ul>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/02a.gif" alt="" width="98" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/02b.gif" alt="" width="98" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/02c.gif" alt="" width="98" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/02d.gif" alt="" width="98" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/06a.gif" alt="" width="68" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/06b.gif" alt="" width="68" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/06c.gif" alt="" width="68" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/06d.gif" alt="" width="68" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/01a.gif" alt="" width="60" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/01b.gif" alt="" width="60" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/01c.gif" alt="" width="60" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/01d.gif" alt="" width="60" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/03a.gif" alt="" width="117" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/03b.gif" alt="" width="117" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/03c.gif" alt="" width="117" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/03d.gif" alt="" width="117" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/05a.gif" alt="" width="99" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/05b.gif" alt="" width="99" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/05c.gif" alt="" width="99" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/05d.gif" alt="" width="99" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/07a.gif" alt="" width="88" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/07b.gif" alt="" width="88" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/07c.gif" alt="" width="88" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/07d.gif" alt="" width="88" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/08a.gif" alt="" width="80" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/08b.gif" alt="" width="80" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/08c.gif" alt="" width="80" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/08d.gif" alt="" width="80" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/04a.gif" alt="" width="77" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/04b.gif" alt="" width="77" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/04c.gif" alt="" width="77" height="15" /></li>
<li><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/buttons/04d.gif" alt="" width="77" height="15" /></li>
</ul>
<p>To set a backlink, just download the button of your desire (Or have a look into the included linkback/yapb-buttons.zip) and include a link something like that in your footer.php (Or wherever you want):</p>
<pre>[code]
&lt;a href="http://johannes.jarolim.com/yapb" target="_blank"&gt;&lt;img src="01a.gif" border="0" /&gt;&lt;/a&gt;
[/code]</pre>
<h2>Feedback</h2>
<p><strong>Please be so kind to provide positive and/or negative feedback</strong> so i can improve this piece of code if necessary.</p>
<p>Since there is definitly some feedback and <strong>the pages grow and grow</strong> - I suggest you <strong>use the <a href="http://johannes.jarolim.com/yapb-forum" target="_blank">yapb-forum</a></strong> to ask questions, maybe help each other, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yet-another-photoblog.com/2008/08/download-and-installation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ready to use templates</title>
		<link>http://www.yet-another-photoblog.com/2008/08/ready-to-use-templates/</link>
		<comments>http://www.yet-another-photoblog.com/2008/08/ready-to-use-templates/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 20:55:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.yet-another-photoblog.com/?p=11</guid>
		<description><![CDATA[Since there’s a growing community of YAPB-Users maintaining and posting on beautiful photoblogs, it was only a matter of time until the first YAPB-Ready WordPress themes would appear.

Beside of creating some themes on my own (just need some time for that), my intention is to publish links to all available YAPB-ready-themes on this page.
YAPB Ready [...]]]></description>
			<content:encoded><![CDATA[<p>Since there’s a growing community of YAPB-Users maintaining and posting on beautiful photoblogs, it was only a matter of time until the first YAPB-Ready WordPress themes would appear.</p>
<p><span id="more-11"></span></p>
<p>Beside of creating some themes on my own (just need some time for that), my intention is to publish links to all available YAPB-ready-themes on this page.</p>
<h2>YAPB Ready WordPress Themes</h2>
<h3>Grain</h3>
<p><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/themes/viewfinder-grain.jpg" alt="" width="150" height="113" /></p>
<p><strong>The first released YAPB theme:</strong> Grain. A very nice classical photoblog theme with a homepage presenting the latest image. Does have an <a href="http://www.defx.de/mosaik/" target="_blank">image-mosaic</a> feature (like <a href="http://johannes.jarolim.com/blog/fotografie/bildmosaik/" target="_blank">my one</a> <img src='http://www.yet-another-photoblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ). Very straight layout accenting the image and not distracting the visitors eye through graphical tinsel. I do highly recommend it.</p>
<ul>
<li>Author: <a href="http://www.defx.de/" target="_blank">Mac</a></li>
<li>Page: <a href="http://wp-grain.sourceforge.net/" target="_blank">http://wp-grain.sourceforge.net/</a></li>
<li>Preview: <a href="http://www.defx.de/" target="_blank">http://www.defx.de/</a></li>
<li>Type: Classical photoblog, dark</li>
</ul>
<h3>phT</h3>
<p><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/themes/theme_phT.jpg" alt="" width="150" height="133" /></p>
<p><strong>The second theme i’ve found:</strong> The phT Theme from Fran Simó. According to the author it’s a base theme that you can take to develop your own style.</p>
<ul>
<li>Author: <a href="http://justpictures.inhubi.com/" target="_blank">Fran Simó</a></li>
<li>Page: <a href="http://pht.inhubi.com/" target="_blank">http://pht.inhubi.com/</a></li>
<li>Preview: <a href="http://justpictures.es/" target="_blank">http://justpictures.es/</a></li>
<li>Type: Base Theme, dark</li>
</ul>
<h3>Monolit</h3>
<p><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/themes/monolit.jpg" alt="" width="150" height="106" /></p>
<p><strong>The third theme in the collection: </strong>Monolit from Kim Nørgaard. I do like light and straight themes very much - A pitty it doesn’t support exif. Nevertheless a very nice theme for photographers. Thumbs up!</p>
<ul>
<li>Author: <a rel="external nofollow" href="http://www.jasen.dk/">Kim Nørgaard</a></li>
<li>Page: <a rel="nofollow" href="http://blog.jasen.dk/monolit">http://blog.jasen.dk/monolit</a></li>
<li>Preview: <a href="http://blog.jasen.dk/" target="_blank">http://blog.jasen.dk</a></li>
<li>Type: Classical photoblog, bright</li>
</ul>
<h3>Reflection</h3>
<p><img src="http://johannes.jarolim.com/blog/wp-content/uploads/Image/yapb/themes/reflection.jpg" alt="" width="150" height="125" /></td>
<p><strong>This one will get some attention for sure: </strong><a href="http://xyloid.org/projects/reflection/">Reflection by dave</a>.<strong> Pro:</strong> Very nice and clear dark theme pimped up with stylish JavaScript reflections.  <strong>Con:</strong> Doesn’t look exactly the same in IE as stated out on daves todo list. Maybe someone out there helping him with that small issue?</p>
<ul>
<li>Author: <a href="http://xyloid.org/" target="_blank">Dave</a></li>
<li>Page: <a href="http://xyloid.org/projects/reflection/" target="_blank">http://xyloid.org/projects/reflection/</a></li>
<li>Preview: <a href="http://photoblog.xyloid.org/" target="_blank">http://photoblog.xyloid.org/</a></li>
<li>Type: Classical photoblog, dark</li>
</ul>
<h2>You have a YAPB-Ready-Theme?</h2>
<p>Just drop a note <a href="http://johannes.jarolim.com/yapb-forum" target="_blank">to the forum</a> or a comment to this page and i’ll include it in the list.</p>
<p><strong>Happy photoblogging!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yet-another-photoblog.com/2008/08/ready-to-use-templates/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Yet another photoblog</title>
		<link>http://www.yet-another-photoblog.com/2008/08/yet-another-photoblog/</link>
		<comments>http://www.yet-another-photoblog.com/2008/08/yet-another-photoblog/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 16:02:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Headline]]></category>

		<guid isPermaLink="false">http://www.yet-another-photoblog.com/?p=3</guid>
		<description><![CDATA[It&#8217;s out in the wild. Convert your WordPress 2.x installation into a full featured photoblog in virtually no time. Use the full range of WordPress functions and plugins: Benefit from the big community WordPress has to offer.

What is YAPB / What can you expect?

A non invasive WordPress-plugin that converts wp into a easy useable photoblog [...]]]></description>
			<content:encoded><![CDATA[<p><strong>It&#8217;s out in the wild.</strong> <strong>Convert</strong> your WordPress 2.x installation into a full featured photoblog in virtually no time. Use the full range of WordPress functions and plugins: <strong>Benefit from</strong> the big community WordPress has to offer.</p>
<p><span id="more-3"></span></p>
<h2>What is YAPB / What can you expect?</h2>
<ul>
<li>A non invasive WordPress-plugin that converts wp into a easy useable photoblog system</li>
<li>Easy image upload - All wordpress post-features can be used</li>
<li>On the fly thumbnail generation - Use multiple thumbnail sizes where and when you need them: Thumbnail generation gets controlled from the template.</li>
<li>EXIF data processing and output</li>
<li>Self-learning EXIF filter - Your own cameras tags can be selected to be viewed.</li>
<li>Full i18n-Support through gnutext mo/po files</li>
<li>YAPB Plugin Infrastructure for extended functionality</li>
<li>Ping additional update-service-sites when posting a photoblog entry.</li>
<li>Nearly every WP-theme can become a photoblog in virtually no time.</li>
</ul>
<p>You’ll get a photoblog system based on wordpress - Decide if you want to post a normal Wordpress article or a photoblog entry. Be free to use all available extensions / plugins of the WordPress platform <img src='http://www.yet-another-photoblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h2>3 Steps to your WordPress Photoblog</h2>
<h2>Screenshots</h2>
<h2>The idea</h2>
<h3>Why another photoblog system?</h3>
<p>There aren’t many open source photoblog systems out there in the wild. I searched a long time and found only few. Evaluated all of them and decided to program one on myself, since none of them met my demands. I did that about three times - Every version was build up from the scratch. Every version was better and much more flexible. More cool and finally more proprietary.</p>
<p>Every time i saw a feature in another blog system that i wanted to have - i had to spend much of my rare spare time to design, program and integrate it into my own photoblog system. After implementing some features like captcha, ping and trackback, etc. etc. i decided that this was just a waste of time.</p>
<p>There already was a system out there having lot’s of features and a huge community: <a href="http://www.wordpress.org/" target="_blank">WordPress</a>. YAPB is my try to build on a wide spread platform - And to get what i want - <strong>As a photographer and programmer.</strong></p>
<h3>Why not use services like Flickr, Deviantart, etc. etc. ?</h3>
<p>Why hazzle with renting a suitable webhost, installing a photoblog software, configuring the whole stuff, eventually solve problems, searching and installing a cool theme, etc. etc. - If i can have it all (and more) with one click at <a href="http://www.flickr.com/">Flickr</a>, <a href="http://www.deviantart.com/">Deviantart</a>, etc. etc. ?</p>
<p>I’m only able to give you a hint on my opinion why i don’t want to host my images on such a service. Fortunately, for the impatient among us, it can be told with only three (and a half) words:</p>
<h3>It’s my image.</h3>
<p>Post your image on a foreign server and you’ll never be exactly sure what rights you have on your own images until you’re a better laywer than the one hired by your prefered photo community. One nice example: Flickr was sold to Yahoo AFTER they had tens of thousands users and hosted millions of images. If you’re posting images to flickr right now - Do you EXACTLY know, what rights Yahoo currently owns on YOUR images?</p>
<p>If this is perfectly ok for you - Go on and use those communities! After givin away your personal data, you will have an account for free and no hazzle with setting up your own photoblog. There are thousands of users just waiting for you!</p>
<h2>Technical spoken</h2>
<p>YAPB integrates tightly into wordpress. Via Javascript DOM manipulation it injects several form additions into the standard wordpress post form. It provides additional data and functions to themes so that nearly every theme can be converted to a photoblog in virtually no time. YAPB doesn’t touch original wordpress code - It’s using it.</p>
<h2>Support YAPB</h2>
<p><strong>Do you like YAPB?</strong> Do you use it regulary to show your photos or images? Did YAPB save you time? Or you just want to give something back for the time spent to create, maintain and support YAPB? <strong>Just Donate</strong> a little ammount so i may buy a good book, DVD, etc. or just pay some server traffic. Bigger ammounts (if any) will be invested in my photo equipment of course <img src='http://www.yet-another-photoblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Thanks alot from Salzburg!</p>
<h2>There is a forum</h2>
<p>Since there is definitly some feedback and <strong>the pages grow and grow</strong> - I suggest you <strong>use the</strong> <a href="http://johannes.jarolim.com/yapb-forum" target="_blank"><strong>yapb-forum</strong></a> to ask questions, maybe help each other, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yet-another-photoblog.com/2008/08/yet-another-photoblog/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
