<?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>Brit Gardner ::: Web Developer ::: Dallas, TX &#187; wordpress</title>
	<atom:link href="http://britg.com/tags/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://britg.com</link>
	<description>The big yellow one&#039;s the sun.</description>
	<lastBuildDate>Sun, 10 Jan 2010 17:25:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Integrating CakePHP with bbPress &#8211; Part 1</title>
		<link>http://britg.com/2008/08/23/integrating-cakephp-with-bbpress-part-1/</link>
		<comments>http://britg.com/2008/08/23/integrating-cakephp-with-bbpress-part-1/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 22:13:57 +0000</pubDate>
		<dc:creator>britg</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[bbpress]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://britg.com/?p=384</guid>
		<description><![CDATA[I&#8217;ve been working on StatForge.com for the past few days and one of the community features I want to integrate is a forum.  Rather than go for something bloated like phpbb or vanilla, I decided to go with bbPress from the makers of Wordpress.
This is the first of a 3 part tutorial on how to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on <a href="http://statforge.com">StatForge.com</a> for the past few days and one of the community features I want to integrate is a forum.  Rather than go for something bloated like phpbb or vanilla, I decided to go with <a href="http://bbpress.org">bbPress</a> from the makers of <a href="http://wordpress.org">Wordpress</a>.</p>
<p>This is the first of a 3 part tutorial on how to integrate bbPress with CakePHP 1.2.x.  When complete, these 3 tutorials will accomplish:</p>
<ol>
<li>Integrating bbPress in a sub-folder (not a subdomain) of your cake install</li>
<li>Integrating user registration &#8211; when a user registers through your cake application they are automatically registered in bbPress. (UPDATE: <a href="http://britg.com/2008/08/25/integrating-cakephp-with-bbpress-part-2/">part 2 here</a>)</li>
<li>Integrating the login &#8211; when a user is logged in via the cake application they are automatically logged in in bbPress.</li>
</ol>
<h3>Part 1 &#8211; Integrating bbPress in a sub-folder (not a subdomain)</h3>
<p>It may be personal preference, but I&#8217;m not a big fan of subdomaining parts of an application.  There are definitely legitamite technical reasons to do so, but when I can get away with it, I try to use subfolders, i.e. <code>http://statforge.com</code> and <code>http://statforge.com/forum/</code>.</p>
<p>There&#8217;s a small hurdle here since CakePHP wants to ReWrite all your paths (if you&#8217;ve installed it in your domain root), but it&#8217;s easy to overcome.  Find the <code>.htaccess</code> file in the root of your cake install.  It should look like this:</p>
<pre lang="bash">   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]</pre>
<p>This is rewriting all of your requests to the webroot folder.  Assuming you want to install bbPress into a subfolder called <code>forum</code> (i.e. <code>http://statforge.com/forum/</code>) the change this <code>.htaccess</code> file to the following:</p>
<pre lang="bash">   RewriteEngine on

   RewriteCond %{REQUEST_URI} ^/forum/(.*)$
   RewriteRule ^.*$ - [L]

   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]</pre>
<p>This simply reads &#8211; if the Request starts with <code>/forum/</code> pass it through normally.  If not, let Cake handle it.  The only limitation here is that you cannot have a controller named &#8216;forum&#8217; in your cake application.</p>
<p>That&#8217;s it &#8211; you should be able to drop a fresh bbPress install into the /forum subfolder and access it normally without Cake interfering.</p>
<p>I&#8217;ve already integrated the user registration between my CakePHP install and my bbPress install, but I&#8217;ve gotta run for the time being.  Hopefully tomorrow I&#8217;ll throw up part 2 &#8211; it&#8217;s a bit more complicated. (UPDATE: <a href="http://britg.com/2008/08/25/integrating-cakephp-with-bbpress-part-2/">part 2 here</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://britg.com/2008/08/23/integrating-cakephp-with-bbpress-part-1/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Google Reader Shared Items in WP RSS Widget</title>
		<link>http://britg.com/2008/05/22/google-reader-shared-items-in-wp-rss-widget/</link>
		<comments>http://britg.com/2008/05/22/google-reader-shared-items-in-wp-rss-widget/#comments</comments>
		<pubDate>Thu, 22 May 2008 13:27:18 +0000</pubDate>
		<dc:creator>britg</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[google reader]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://britg.com/?p=37</guid>
		<description><![CDATA[I just added a default RSS widget to one of my sidebars and noticed that the links weren&#8217;t functioning correctly.  The source of the RSS feed is my google reader shared items and I think the format in which google sends the information is different than a normal RSS feed?  I don&#8217;t know [...]]]></description>
			<content:encoded><![CDATA[<p>I just added a default RSS widget to one of my sidebars and noticed that the links weren&#8217;t functioning correctly.  The source of the RSS feed is my google reader shared items and I think the format in which google sends the information is different than a normal RSS feed?  I don&#8217;t know enough about them to be sure.  All I know is that for some reason the link to the articles and the link to the sources of the articles are being concatenated together in the widget links.</p>
<p>Here&#8217;s a small 2-line fix I came up with if you&#8217;re familiar with php and the wordpress framework (version 2.5+).</p>
<p>In your <em>{wp home}/wp-includes/widgets.php</em> find the function <strong>wp_widget_rss_output(&#8230;)</strong>.  The first foreach() loop in the function should be <strong>foreach ($rss-&gt;items as $item ) {</strong> &#8230;  Directly after the open curly brace, place these two lines of code:</p>
<blockquote><p>$parts = explode(&#8216;http&#8217;,$item['link']);<br />
$item['link'] = &#8216;http&#8217;.$parts[1];</p></blockquote>
<p>Voila &#8211; that fixed the problem for me.  All it does is explode the link string by the delimeter &#8216;http&#8217; and rebuild the link using the first part.  It&#8217;s not a very extensible solution though, so I would only use it if you just want to use a google reader shared items feed for the source of an RSS widget.</p>
]]></content:encoded>
			<wfw:commentRss>http://britg.com/2008/05/22/google-reader-shared-items-in-wp-rss-widget/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
