<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Topic: Slug based permalinks</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Slug based permalinks</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 14:20:48 +0000</pubDate>

<item>
<title>GTim on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-6631</link>
<pubDate>Wed, 11 Apr 2007 15:10:13 +0000</pubDate>
<dc:creator>GTim</dc:creator>
<guid isPermaLink="false">6631@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;This is the only thing that I missed when I first installed bbPress. Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-6625</link>
<pubDate>Wed, 11 Apr 2007 11:00:52 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6625@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Oh.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-6621</link>
<pubDate>Wed, 11 Apr 2007 01:11:42 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6621@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It's a wordpress plugin! I don't think I can call bb_new_topic() from wordpress?
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-6620</link>
<pubDate>Wed, 11 Apr 2007 01:10:06 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6620@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Check out what we do with slugs in bb-includes/functions.php in the bb_new_topic() function...&#60;/p&#62;
&#60;p&#62;In fact, why aren't you just using that function in that plugin???
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-6589</link>
<pubDate>Tue, 10 Apr 2007 12:59:31 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6589@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks a lot Sam!&#60;/p&#62;
&#60;p&#62;Another problem I have is that the bb Post plugin doesn't automatically add a slug. I tried addressing this but couldn't make it work. The function &#60;code&#62;bbpress_bb_new_topic&#60;/code&#62; is responsible for adding the topic to bb.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function bbpress_bb_new_topic( $title, $forum, $author, $author_name, $now ) {	// making new topic in bbPress
	global $wpdb ,$otherdb;
	$bb_table_prefix = bbpress_getoption(&#38;#39;bb_prefix&#38;#39;);

	if ( $forum &#38;#38;&#38;#38; $title ) {
		if (bbpress_getoption(&#38;#39;bb_other_base&#38;#39;) === &#38;quot;no&#38;quot;) {
			$wpdb-&#38;gt;query(&#38;quot;INSERT INTO &#38;lt;code&#38;gt;&#38;amp;quot;. $bb_table_prefix .&#38;amp;quot;topics&#38;lt;/code&#38;gt; (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id ) VALUES (&#38;#39;$title&#38;#39;, $author, &#38;#39;$author_name&#38;#39;, $author, &#38;#39;$author_name&#38;#39;, &#38;#39;$now&#38;#39;, &#38;#39;$now&#38;#39;, $forum)&#38;quot;);
			$topic_id = $wpdb-&#38;gt;insert_id;

			$wpdb-&#38;gt;query(&#38;quot;UPDATE &#38;lt;code&#38;gt;&#38;amp;quot;. $bb_table_prefix .&#38;amp;quot;forums&#38;lt;/code&#38;gt; SET topics = topics + 1 WHERE forum_id = $forum&#38;quot;);
			$wpdb-&#38;gt;query(&#38;quot;UPDATE &#38;lt;code&#38;gt;&#38;amp;quot;. $bb_table_prefix .&#38;amp;quot;forums&#38;lt;/code&#38;gt; SET posts = posts + 1 WHERE forum_id = $forum&#38;quot;);
		} else {
			$otherdb-&#38;gt;query(&#38;quot;INSERT INTO &#38;lt;code&#38;gt;&#38;amp;quot;. $bb_table_prefix .&#38;amp;quot;topics&#38;lt;/code&#38;gt; (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id, topic_slug) VALUES (&#38;#39;$title&#38;#39;, $author, &#38;#39;$author_name&#38;#39;, $author, &#38;#39;$author_name&#38;#39;, &#38;#39;$now&#38;#39;, &#38;#39;$now&#38;#39;, $forum, $feltopic_slug)&#38;quot;);
			$topic_id = $otherdb-&#38;gt;insert_id;

			$otherdb-&#38;gt;query(&#38;quot;UPDATE &#38;lt;code&#38;gt;&#38;amp;quot;. $bb_table_prefix .&#38;amp;quot;forums&#38;lt;/code&#38;gt; SET topics = topics + 1 WHERE forum_id = $forum&#38;quot;);
			$otherdb-&#38;gt;query(&#38;quot;UPDATE &#38;lt;code&#38;gt;&#38;amp;quot;. $bb_table_prefix .&#38;amp;quot;forums&#38;lt;/code&#38;gt; SET posts = posts + 1 WHERE forum_id = $forum&#38;quot;);

		}

		return $topic_id;
	} else {
		return false;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What needs to be done? I need to change the INSERT INTO statement, by adding the column name to the list of columns and the variable I want to insert for that to the list of variables?
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-6588</link>
<pubDate>Tue, 10 Apr 2007 11:59:48 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6588@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've just written a fix, I'll add a ticket for it.&#60;/p&#62;
&#60;p&#62;Edit: ticket added with patch...&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://trac.bbpress.org/ticket/638&#34; rel=&#34;nofollow&#34;&#62;http://trac.bbpress.org/ticket/638&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-6587</link>
<pubDate>Tue, 10 Apr 2007 11:37:52 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">6587@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;fel64: I kind of knew this was going to be an issue, but never addressed it. I figured people would work out what to do (as you have). I guess it's worth a ticket, if you add the ticket to the bbpress trac, I'll patch it.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-6559</link>
<pubDate>Mon, 09 Apr 2007 10:30:58 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6559@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hey Sam,&#60;br /&#62;
it's been working fine until someone made a thread called &#34;1:28&#34;. The slug set for it in the database is &#34;128&#34; but going to /topic/128?replies=1 redirects to /topic/?replies=1, resulting in an error. I assume this is a bug? My quick fix for this was to just change the slug.
&#60;/p&#62;</description>
</item>
<item>
<title>Trent on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-5705</link>
<pubDate>Wed, 21 Mar 2007 17:47:28 +0000</pubDate>
<dc:creator>Trent</dc:creator>
<guid isPermaLink="false">5705@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;So literally:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$bb-&#38;gt;mod_rewrite = &#38;#39;slugs&#38;#39;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That works with the latest TRAC?&#60;/p&#62;
&#60;p&#62;Trent&#60;/p&#62;
&#60;p&#62;**Edit** Nevermind, it does works!
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-5701</link>
<pubDate>Wed, 21 Mar 2007 15:34:53 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">5701@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;No there is no permalink configuration in the admin area, and plans for that permalink functionality have been dropped for several reasons.&#60;/p&#62;
&#60;p&#62;You have three choices for $bb-&#38;gt;mod_rewrite:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;false = normal querystring based links&#60;/li&#62;
&#60;li&#62;true = permalinks based on ID&#60;/li&#62;
&#60;li&#62;'slugs' = permalinks based on item names/titles&#60;/li&#62;
&#60;/ul&#62;</description>
</item>
<item>
<title>Mirce on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-5696</link>
<pubDate>Wed, 21 Mar 2007 12:57:10 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">5696@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Nice,&#60;br /&#62;
I've installed it on &#60;a href=&#34;http://www.dfur.com/.&#34; rel=&#34;nofollow&#34;&#62;http://www.dfur.com/.&#60;/a&#62; Is there a way to configure the links like the &#60;a href=&#34;http://www.network.net.au/bbpress/patches/permalinks/teaser.gif&#34; rel=&#34;nofollow&#34;&#62;http://www.network.net.au/bbpress/patches/permalinks/teaser.gif&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanx.
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-5693</link>
<pubDate>Wed, 21 Mar 2007 11:43:08 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">5693@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It's in the core code, no need to patch. Just grab the very latest version via Subversion.
&#60;/p&#62;</description>
</item>
<item>
<title>Mirce on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-5692</link>
<pubDate>Wed, 21 Mar 2007 11:39:17 +0000</pubDate>
<dc:creator>Mirce</dc:creator>
<guid isPermaLink="false">5692@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Great,&#60;br /&#62;
I am preparing to run this patch on a fresh installed version.
&#60;/p&#62;</description>
</item>
<item>
<title>Bassetts on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-5691</link>
<pubDate>Wed, 21 Mar 2007 11:37:26 +0000</pubDate>
<dc:creator>Bassetts</dc:creator>
<guid isPermaLink="false">5691@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Just what I have been waiting for real pretty permalinks. Thank you =)
&#60;/p&#62;</description>
</item>
<item>
<title>sambauers on "Slug based permalinks"</title>
<link>http://bbpress.org/forums/topic/slug-based-permalinks#post-5690</link>
<pubDate>Wed, 21 Mar 2007 11:31:14 +0000</pubDate>
<dc:creator>sambauers</dc:creator>
<guid isPermaLink="false">5690@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Now available in the latest build in subversion.&#60;/p&#62;
&#60;p&#62;Get permalinks like this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.example.org/forum/my-cool-forum&#34; rel=&#34;nofollow&#34;&#62;http://www.example.org/forum/my-cool-forum&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;...and this...&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.example.org/topic/&#34; rel=&#34;nofollow&#34;&#62;http://www.example.org/topic/&#60;/a&#62;मैं-काँच-खा-सकता-हूँ&#60;/p&#62;
&#60;p&#62;...and this...&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.example.org/profile/sambauers&#34; rel=&#34;nofollow&#34;&#62;http://www.example.org/profile/sambauers&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;All with the flick of a variable...&#60;/p&#62;
&#60;p&#62;&#60;code&#62;bb-&#38;gt;mod_rewrite = &#38;#39;slugs&#38;#39;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;...set in config.php
&#60;/p&#62;</description>
</item>

</channel>
</rss>
