<?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: how the bbpress's front page controller works?</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: how the bbpress's front page controller works?</description>
<language>en</language>
<pubDate>Wed, 15 Oct 2008 20:30:55 +0000</pubDate>

<item>
<title>mdawaffe on "how the bbpress's front page controller works?"</title>
<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1377</link>
<pubDate>Mon, 13 Nov 2006 19:33:46 +0000</pubDate>
<dc:creator>mdawaffe</dc:creator>
<guid isPermaLink="false">1377@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;ear1grey,&#60;/p&#62;
&#60;p&#62;Actually MultiViews looks for topic.php if it hasn't found topic/, but otherwise you're spot on.&#60;/p&#62;
&#60;p&#62;You can also use RewriteRules which forces the server to do the same thing 'manually'.&#60;/p&#62;
&#60;p&#62;hywl51,&#60;/p&#62;
&#60;p&#62;When you request that URL, Apache's MultiViews or RewriteRules (whichever you are using) loads topic.php.  That file then prepares a bunch of data and displays it with my-templates/topic.php (If that file exists) or bb-templates/topic.php (otherwise).&#60;/p&#62;
&#60;p&#62;If you are familiar with the way WordPress works, it may not help much :)  This is one area where WordPress and bbPress are quite different.
&#60;/p&#62;</description>
</item>
<item>
<title>ear1grey on "how the bbpress's front page controller works?"</title>
<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1358</link>
<pubDate>Mon, 13 Nov 2006 11:34:23 +0000</pubDate>
<dc:creator>ear1grey</dc:creator>
<guid isPermaLink="false">1358@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;You'll have noticed that there's no &#34;topic&#34; subdirectory inside your &#34;forums&#34; directory, so what I think you're asking is &#34;is bbPress really serving a page that doesn't physically exist on my hard drive?&#34;&#60;/p&#62;
&#60;p&#62;The answer is yes, bbPress generates the page on the fly, so there is no stored page that has the content of that URL.&#60;/p&#62;
&#60;p&#62;Apache's &#60;code&#62;MultiViews&#60;/code&#62; option makes this happen because the server tries to find the best match to your URL.  It looks first for &#60;code&#62;forums&#60;/code&#62; and finds it, so then it looks for &#60;code&#62;topic&#60;/code&#62; in forums, which doesn't exist, so it tries the next best thing, which is to look for an &#60;code&#62;index&#60;/code&#62; of some kind, and it finds the bbPress &#60;code&#62;index.php&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;When bbPress runs (through index.php) it still sees the originally requested url, so the fact that it's a request for &#60;code&#62;topic/242&#60;/code&#62; is spotted by the code - it's a simple as stripping the integer value from the string and using that as the primary key for the database lookup.&#60;/p&#62;
&#60;p&#62;Briefly, the sequence is that &#60;code&#62;index.php&#60;/code&#62; loads &#60;code&#62;bb-load.php&#60;/code&#62;, &#60;code&#62;bb-load.php&#60;/code&#62; loads &#60;em&#62;your&#60;/em&#62; &#60;code&#62;config.php&#60;/code&#62;, which specifies where your DB is (so the content can be generated), &#60;code&#62;config.php&#60;/code&#62; then loads &#60;code&#62;bb-settings.php&#60;/code&#62; which is where most of the core request-processing is done.  &#60;/p&#62;
&#60;p&#62;At least... that's what I got from looking through the code :)  A core dev. might be able to describe it better.
&#60;/p&#62;</description>
</item>
<item>
<title>hywl51 on "how the bbpress's front page controller works?"</title>
<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1355</link>
<pubDate>Mon, 13 Nov 2006 08:55:11 +0000</pubDate>
<dc:creator>hywl51</dc:creator>
<guid isPermaLink="false">1355@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi Atsutane&#60;/p&#62;
&#60;p&#62;Let's explain the question clearly:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bbpress.org/forums/topic/242?replies=4&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/242?replies=4&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;For url above,  I want to know which page that url will finally located on. I guess all request will be first directed to index.php, but how about the next step and which page on earth will be directed to display the main body of page.&#60;/p&#62;
&#60;p&#62;I am not native English, I don't know if I have made the question clear. &#60;/p&#62;
&#60;p&#62;Thanks for you kind response.&#60;br /&#62;
hywl51
&#60;/p&#62;</description>
</item>
<item>
<title>Atsutane on "how the bbpress's front page controller works?"</title>
<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1290</link>
<pubDate>Fri, 10 Nov 2006 07:32:34 +0000</pubDate>
<dc:creator>Atsutane</dc:creator>
<guid isPermaLink="false">1290@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Actually i don't know what do you mean by &#34;how the bbpress front page works?&#34; Do you mean the page structure or do you mean the url structure?
&#60;/p&#62;</description>
</item>
<item>
<title>hywl51 on "how the bbpress's front page controller works?"</title>
<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1289</link>
<pubDate>Fri, 10 Nov 2006 06:47:15 +0000</pubDate>
<dc:creator>hywl51</dc:creator>
<guid isPermaLink="false">1289@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thank Atsutane.&#60;/p&#62;
&#60;p&#62;I set pretty permalink and got bbpress working.&#60;/p&#62;
&#60;p&#62;I am a newbie for PHP and eager to know how the box work behind the page. Can you please give me some advice or link about the question I mentioned before--how the bbpress front page works?&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
hywl51
&#60;/p&#62;</description>
</item>
<item>
<title>Atsutane on "how the bbpress's front page controller works?"</title>
<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1221</link>
<pubDate>Wed, 08 Nov 2006 10:07:42 +0000</pubDate>
<dc:creator>Atsutane</dc:creator>
<guid isPermaLink="false">1221@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Most likely you forgot to set pretty permalink. &#60;a href=&#34;http://bbpress.org/documentation/faq/#pretty-permalinks&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/documentation/faq/#pretty-permalinks&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>hywl51 on "how the bbpress's front page controller works?"</title>
<link>http://bbpress.org/forums/topic/how-the-bbpresss-front-page-controller-works#post-1217</link>
<pubDate>Wed, 08 Nov 2006 08:46:07 +0000</pubDate>
<dc:creator>hywl51</dc:creator>
<guid isPermaLink="false">1217@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;hi,&#60;/p&#62;
&#60;p&#62;I installed a bbpress with the wordpress integration. But when I access one topic like:&#60;br /&#62;
&#60;a href=&#34;http://localhost/wordpress/bbpress/topic/1?replies=1&#34; rel=&#34;nofollow&#34;&#62;http://localhost/wordpress/bbpress/topic/1?replies=1&#60;/a&#62;&#60;br /&#62;
the browser display:&#60;br /&#62;
404 Not Found&#60;br /&#62;
The requested URL /bbpress/topic/1?replies=1 does not exist.&#60;/p&#62;
&#60;p&#62;I don't know how the bbpress front page works, so I cann't find the real page the url above specify. Can someone give me some guids or any document about it. I browered and searched this site and found nothing  about it.&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
hywl51
&#60;/p&#62;</description>
</item>

</channel>
</rss>
