<?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>Digital Base - Blog &#187; blog</title>
	<atom:link href="http://www.digitalbase.eu/blog/tag/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digitalbase.eu/blog</link>
	<description>A blog about webdesign, PHP, development and IT</description>
	<lastBuildDate>Mon, 10 May 2010 16:16:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pimpin our Blog</title>
		<link>http://www.digitalbase.eu/blog/pimpin-this-blog/</link>
		<comments>http://www.digitalbase.eu/blog/pimpin-this-blog/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 15:56:52 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=143</guid>
		<description><![CDATA[We decided to take some time to &#8220;pimp&#8221; this blog. We still have a long &#8220;todo&#8221; list, this is just the start&#8230;
A quick before &#38; after  
Before

New &#38; Improved

A quick list of what we did:

integrated search box on top
recent posts &#38; comments on top
added links to search bar
updated general layout &#38; cleaned out some [...]]]></description>
			<content:encoded><![CDATA[<p>We decided to take some time to &#8220;pimp&#8221; this blog. We still have a long &#8220;todo&#8221; list, this is just the start&#8230;</p>
<p>A quick before &amp; after <img src='http://www.digitalbase.eu/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Before</h2>
<h2><img class="aligncenter size-full wp-image-144" title="Old Blog" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot121.png" alt="Old Blog" width="640" height="417" /></h2>
<h2>New &amp; Improved</h2>
<p><img class="aligncenter size-full wp-image-145" title="screenshot13" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot13.png" alt="screenshot13" width="640" height="452" /></p>
<p>A quick list of what we did:</p>
<ul>
<li>integrated search box on top</li>
<li>recent posts &amp; comments on top</li>
<li>added links to search bar</li>
<li>updated general layout &amp; cleaned out some of the css</li>
</ul>
<p>Do you link the pink ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/pimpin-this-blog/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Wordpress Coltrane &#8211; Upgraded to 2.7</title>
		<link>http://www.digitalbase.eu/blog/wordpress-coltrane-upgraded-to-27/</link>
		<comments>http://www.digitalbase.eu/blog/wordpress-coltrane-upgraded-to-27/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 17:40:59 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=136</guid>
		<description><![CDATA[A new version of wordpress is out, codenamed &#8220;Coltrane&#8221;. So what&#8217;s new ? 

XMLRPC Comments API : nice api to manage comments through xmlrpc
 Keyboard shortcuts for comment moderation : use keyboard shortcuts to manage the comments
 Sticky Posts : ability to &#8220;stick&#8221; a post to homepage
 Theme update api, like we do for plugins [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://wordpress.org/development/2008/12/coltrane/" target="_blank">new version of wordpress</a> is out, codenamed &#8220;Coltrane&#8221;. So <a href="http://codex.wordpress.org/Version_2.7" target="_blank">what&#8217;s new</a> ? <a href="http://codex.wordpress.org/Version_2.7#Comment_API"></a></p>
<ul>
<li><a href="http://codex.wordpress.org/Version_2.7#Comment_API">XMLRPC Comments API</a> : nice api to manage comments through xmlrpc</li>
<li> <a title="Keyboard Shortcuts" href="http://codex.wordpress.org/Keyboard_Shortcuts">Keyboard shortcuts</a> for comment moderation : use keyboard shortcuts to manage the comments</li>
<li> Sticky Posts : ability to &#8220;stick&#8221; a post to homepage</li>
<li> Theme update api, like we do for plugins : new admin theme</li>
<li> Dashboard and write box rearranging : ability to decide what you want on homepage</li>
<li> <a href="http://codex.wordpress.org/Version_2.7#Plugin_Installer">One-click plugin installs</a> : better plugin handling, easily install plugins through the web interface</li>
<li> Reply to comments from withing dashboard</li>
<li> <a href="http://codex.wordpress.org/Version_2.7#WordPress_Upgrader">Core updating</a> : auto update feature</li>
<li> Batch and inline editing</li>
<li>&#8230;.</li>
</ul>
<p>Good work wordpress team ! I decided to upgrade my wordpress at once. Check out the difference !</p>
<h2>Previously (Wordpress 2.6)</h2>
<p><img class="aligncenter size-full wp-image-137" title="Old Wordpress admin layout (2.6)" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot15.png" alt="Old Wordpress admin layout (2.6)" width="622" height="488" /></p>
<p>New layout (Wordpress 2.7)</p>
<p><img class="aligncenter size-full wp-image-138" title="screenshot16" src="http://www.digitalbase.eu/blog/wp-content/uploads//2008/12/screenshot16.png" alt="screenshot16" width="700" height="416" /></p>
<p>Keep up the good work !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/wordpress-coltrane-upgraded-to-27/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress : Seperate RSS feed for Category / Author / Tag</title>
		<link>http://www.digitalbase.eu/blog/wordpress-seperate-rss-feed-for-category-author-tag/</link>
		<comments>http://www.digitalbase.eu/blog/wordpress-seperate-rss-feed-for-category-author-tag/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 01:10:27 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=119</guid>
		<description><![CDATA[As you may have read we migrated this blog to a wordpress one. Yeahyeah, we are not officially wordpressified.
My impression of the core
The default wordpress core holds alot of use&#8217;eable functions, but it took me a while to figure out how the thing worked. You need to know that wordpress is not really written very [...]]]></description>
			<content:encoded><![CDATA[<p>As you may have read we migrated this blog to a wordpress one. Yeahyeah, we are not officially wordpressified.</p>
<h2>My impression of the core</h2>
<p>The default wordpress core holds <a href="http://codex.wordpress.org/Function_Reference" target="_blank">alot of use&#8217;eable functions</a>, but it took me a while to figure out how the thing worked. You need to know that wordpress is not really written very object oriented, so basically its a collection of functions although some &#8220;under the hood&#8221; core functionality is object oriented.</p>
<p>If i was not convinced wordpress is a serious project with a great future, i wouldn&#8217;t have chosen it, so let&#8217;s not start the &#8220;code quality&#8221; discussion.</p>
<h2>The problem</h2>
<p>Something i was missing after the default drupal installation was an easy way to retrieve the related rss feed based on the page the visitor was accessing. If a visitor was on the &#8220;all posts by author X&#8221; page, the linked rss feed should only hold those posts. Same for category pages and tag pages.</p>
<p>Getting the information of a tag, author of category is very easy. There are some built in functions like <a href="http://codex.wordpress.org/Function_Reference/get_category" target="_blank">get_category</a>, and <a href="http://codex.wordpress.org/Function_Reference/get_category_feed_link" target="_blank">get_category_feed_link</a> that will give you this information. The downside is, this information is basically only available inside &#8220;<a href="http://codex.wordpress.org/The_Loop" target="_blank">the loop</a>&#8220;.</p>
<h2>The solution</h2>
<p>To get the information about the selected category, author or tag i had to jump a few hoops. It&#8217;s a combination of core functions and some minor custom code where i had to retrieve the current tag from the queried variables.</p>
<p>Then I created a custom method that returns the most related feed based on the page request. The method will check what type of page the visitor is accessing (category, tag, author or main page) and return the appropriate rss feed.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * This method will give you the most related rss feed based on the current page request
 *
 * @param $type
 * @return string (feed url)
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> get_feed_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;rss2_url&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> get_the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>cat_ID<span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$url_rss</span> <span style="color: #339933;">=</span> get_category_feed_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current</span><span style="color: #339933;">,</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'author_name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> get_userdatabylogin<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ID<span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> get_author_feed_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current</span><span style="color: #339933;">,</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_tag<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$current</span> <span style="color: #339933;">=</span> get_query_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tag'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$formaturl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/feed/&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;rss_url&quot;</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$formaturl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/rss/&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">&quot;atom_url&quot;</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$formaturl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/atom/&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;url&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/tag/&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$current</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$formaturl</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h2>Examples</h2>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">get_feed_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;rss2_url&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// on page /blog/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//returns : http://www.digitalbase.eu/blog/feed/</span>
&nbsp;
get_feed_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;atom_url&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// on page /blog/category/digitalbase/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//returns : http://www.digitalbase.eu/blog/category/digitalbase/feed/atom_url/</span>
&nbsp;
get_feed_url<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;rss_url&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// on page /blog/tag/symfony</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//returns : http://www.digitalbase.eu/blog/tag/symfony/rss/</span></pre></div></div>

<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/wordpress-seperate-rss-feed-for-category-author-tag/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blog : Moved to Wordpress</title>
		<link>http://www.digitalbase.eu/blog/blog-moved-to-wordpress/</link>
		<comments>http://www.digitalbase.eu/blog/blog-moved-to-wordpress/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 18:25:35 +0000</pubDate>
		<dc:creator>Gijs Nelissen</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.digitalbase.eu/blog/?p=100</guid>
		<description><![CDATA[I hate reinventing the wheel. That&#8217;s why i decided to migrate this blog to wordpress. It takes alot of effort to write your own symfony plugin that holds the functionality of a full stack blogging platform (like wordpress, typepad, blogger &#8230;).
The Symfony Story
Initially we started by using the simpleBlogPlugin and modifying it to our needs. [...]]]></description>
			<content:encoded><![CDATA[<p>I hate reinventing the wheel. That&#8217;s why i decided to migrate this blog to wordpress. It takes alot of effort to write your own symfony plugin that holds the functionality of a full stack blogging platform (like wordpress, typepad, blogger &#8230;).</p>
<h2>The Symfony Story</h2>
<p>Initially we started by using the <a href="http://www.symfony-project.org/plugins/sfSimpleBlogPlugin" target="_blank">simpleBlogPlugin</a> and modifying it to our needs. Some of the things we added :</p>
<ul>
<li>multilanguage support : different posts in english / dutch</li>
<li>tag cloud : although they did add this in the new version</li>
<li>author information : links to digg/linkedin profile</li>
<li>tag / category pages</li>
<li>some SEO basics (different descriptions/keywords per post/page)</li>
<li>seperate rss feeds (for tag/description/author pages)</li>
<li>summary/excerpt support</li>
<li>&#8230;</li>
</ul>
<h2>Then why change to wordpress ?</h2>
<p>To keep this all updated with the changing symfony framework takes some time. Adding common features popular blogging platforms offer (comment, askimet integration, image editing, &#8230;) is a huge job. Thats why i decided to &#8220;migrate&#8221; this blog to wordpress.</p>
<p>I did a little hacking here &amp; there to have it support multiple languages, created a custom theme (holding the old digitalbase theme layout) and added some clearly missing core functions.</p>
<p>I&#8217;ll do a followup post with the things i changed and some code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalbase.eu/blog/blog-moved-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

