<?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: Add a "page" to my template</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress Support Forums Topic: Add a "page" to my template</description>
<language>en</language>
<pubDate>Fri, 09 Jan 2009 23:02:30 +0000</pubDate>

<item>
<title>Ralev-dot-com on "Add a "page" to my template"</title>
<link>http://bbpress.org/forums/topic/add-a-page-to-my-template#post-12419</link>
<pubDate>Tue, 04 Dec 2007 00:29:44 +0000</pubDate>
<dc:creator>Ralev-dot-com</dc:creator>
<guid isPermaLink="false">12419@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I'm using this method here: &#60;a href=&#34;http://desbar.eu/&#34; rel=&#34;nofollow&#34;&#62;http://desbar.eu/&#60;/a&#62;&#60;br /&#62;
check the ABOUT page, for example&#60;/p&#62;
&#60;p&#62;it works for me.&#60;/p&#62;
&#60;p&#62;Keep in mind there are a lot of ways to make a static page.&#60;br /&#62;
1. The most simple is to create some about.php file.&#60;br /&#62;
It should looks like livibetter says:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php bb_get_header(); ?&#38;gt;&#60;br /&#62;
The static content here.&#60;br /&#62;
&#38;lt;?php bb_get_footer(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;2. put this about.php in the root directory ( e.g. - the URL should be something like youbbPressSite.com/about.php )&#60;/p&#62;
&#60;p&#62;3. Then call this URL from somewhere ( e.g. - put a link in the Header.php )&#60;/p&#62;
&#60;p&#62;that's it.&#60;/p&#62;
&#60;p&#62;PS: I've just been curious about the method above (livibetter version) - that's why I used it :) looks smoother at first site.
&#60;/p&#62;</description>
</item>
<item>
<title>vafaaaan on "Add a "page" to my template"</title>
<link>http://bbpress.org/forums/topic/add-a-page-to-my-template#post-12355</link>
<pubDate>Thu, 29 Nov 2007 14:20:00 +0000</pubDate>
<dc:creator>vafaaaan</dc:creator>
<guid isPermaLink="false">12355@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;...
&#60;/p&#62;</description>
</item>
<item>
<title>livibetter on "Add a "page" to my template"</title>
<link>http://bbpress.org/forums/topic/add-a-page-to-my-template#post-11604</link>
<pubDate>Sun, 21 Oct 2007 20:58:06 +0000</pubDate>
<dc:creator>livibetter</dc:creator>
<guid isPermaLink="false">11604@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
Here is a quick php for it(&#60;em&#62;&#60;strong&#62;Use this method at your own risk&#60;/strong&#62;&#60;/em&#62;), you need pretty permalink to use it.&#60;/p&#62;
&#60;p&#62;Save the following code in bbPress root folder as &#60;code&#62;page.php&#60;/code&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
require_once(&#38;#39;./bb-load.php&#38;#39;);
if (preg_match(&#38;#39;/.*\/page\/(.*)/&#38;#39;, $_SERVER[&#38;#39;REQUEST_URI&#38;#39;], $matches)) {
    $file = bb_slug_sanitize($matches[1]) . &#38;#39;.php&#38;#39;;
    if (file_exists(bb_get_active_theme_folder() . &#38;quot;/static/$file&#38;quot;)) {
        bb_load_template(&#38;quot;static/&#38;quot; . $file);
        exit(0);
        }
    }
wp_redirect(bb_get_option(&#38;#39;uri&#38;#39;));
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Put your static pages in a &#60;strong&#62; new &#60;code&#62;static&#60;/code&#62; folder&#60;/strong&#62; under your template folder, they should looks like&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php bb_get_header(); ?&#38;gt;
The static content here.
&#38;lt;?php bb_get_footer(); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then you can access a static file. For example, access &#60;code&#62;test.php&#60;/code&#62;(bb-templates/yourtemplate/static/test.php) at &#60;a href=&#34;http://yoursite.com/bbpress/page/test&#34; rel=&#34;nofollow&#34;&#62;http://yoursite.com/bbpress/page/test&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Remember: &#60;em&#62;&#60;strong&#62;Use this method at your own risk&#60;/strong&#62;&#60;/em&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>kleini on "Add a "page" to my template"</title>
<link>http://bbpress.org/forums/topic/add-a-page-to-my-template#post-11600</link>
<pubDate>Sun, 21 Oct 2007 10:11:37 +0000</pubDate>
<dc:creator>kleini</dc:creator>
<guid isPermaLink="false">11600@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hmmm... no replies yet? I have the same question, so I would appreciate a little help... :-)
&#60;/p&#62;</description>
</item>
<item>
<title>blepoxp on "Add a "page" to my template"</title>
<link>http://bbpress.org/forums/topic/add-a-page-to-my-template#post-3487</link>
<pubDate>Sun, 21 Jan 2007 21:43:09 +0000</pubDate>
<dc:creator>blepoxp</dc:creator>
<guid isPermaLink="false">3487@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;How would I go about adding a page with static informaiton to my template?&#60;/p&#62;
&#60;p&#62;I have the page 'purchase.php' and want to add it into my template. I thought I would just do an include, but then I realized I have nothing to include into. &#60;/p&#62;
&#60;p&#62;Then I thought I would just get header and get footer around my static info and link directly for it, but then the bb functions are being called correctly. &#60;/p&#62;
&#60;p&#62;What is the best way to include static information in the site in a manner where I can include a link to it?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
