<?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>Mark Robert Henderson &#187; PHP</title>
	<atom:link href="http://blog.markroberthenderson.com/category/merit-badges/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.markroberthenderson.com</link>
	<description>The greatest adventures in the history of LAMP development</description>
	<lastBuildDate>Sat, 14 Nov 2009 22:50:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting rid of /forums/ and /topic/ from bbPress permalinks &#8211; Updated Plugin</title>
		<link>http://blog.markroberthenderson.com/getting-rid-of-forums-and-topic-from-bbpress-permalinks-updated-plugin/</link>
		<comments>http://blog.markroberthenderson.com/getting-rid-of-forums-and-topic-from-bbpress-permalinks-updated-plugin/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 19:04:46 +0000</pubDate>
		<dc:creator>MRH</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.markroberthenderson.com/?p=55</guid>
		<description><![CDATA[There is an existing plugin that does this, but not completely and there are still a few bugs with it.  This post contains an updated version of the plugin, along with instructions on how to install it.]]></description>
			<content:encoded><![CDATA[<p>I was doing some work with bbPress recently and I was looking for a way to take the standard bbPress urls and turn them into something a little more hierarchical and semantic. Currently, they look like:</p>
<pre>http://domain.com/forums/forum/name-of-forum/

http://domain.com/forums/topic/name-of-topic/

etc..</pre>
<p>Not exactly ideal. It would be better if they looked more like:</p>
<pre>http://domain.com/forums/name-of-forum/name-of-topic</pre>
<p>So I found <a href="http://bbpress.org/forums/topic/nicer-slug-url-rewrite-plugin-done" target="_blank">this post on the bbPress forums</a>, which led me to this <a href="http://www.technospot.net/blogs/how-to-remove-forum-and-topic-keyword-from-bbpress-url/">packaged plugin by Ashsh Mohta</a>. However, a few things were busted &#8211; new posts, and also paging on forums and topic names that end with &#8220;forum/&#8221; or &#8220;topic/&#8221;</p>
<p>With a few modifications, I finally got it working, and here are the steps that I took. <strong>Note:</strong> This requires a bit of bbPress core hacking, but it&#8217;s literally only switching the order of two lines in the code.</p>
<ol>
<li>Enable name based permalinks in /bb-admin/options-permalinks.php</li>
<li>Download the plugin from this page, put it in your my-plugins folder, and enable it</li>
<li>Change the .htaccess file at the root of your bbPress install to the htaccess.dist file packaged with the plugin.</li>
<li>Open up bb-post.php at the root of your bbPress install and simply switch lines number 46 and 48</li>
</ol>
<p>I&#8217;m sure this isn&#8217;t perfect, and I&#8217;d love any and all feedback. It&#8217;s been working like a charm for me for a little while now, and hopefully it will help you! I&#8217;d love to find both a way to install this and have the plugin automatically backup and rewrite the .htaccess file, and of course a way to do it without editing the core code.</p>
<p>Plugin: <a href="http://blog.markroberthenderson.com/files/2009/09/remove-forum-topic1.zip">Clean Up bbPress Permalinks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.markroberthenderson.com/getting-rid-of-forums-and-topic-from-bbpress-permalinks-updated-plugin/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
