<?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 User Favorites: btphelps</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums User Favorites: btphelps</description>
<language>en</language>
<pubDate>Thu, 04 Dec 2008 07:05:06 +0000</pubDate>

<item>
<title>vilimaunula on "Getting bbPress and Wordpress to talk to each other"</title>
<link>http://bbpress.org/forums/topic/getting-bbpress-and-wordpress-to-talk-to-each-other#post-6106</link>
<pubDate>Thu, 29 Mar 2007 09:05:20 +0000</pubDate>
<dc:creator>vilimaunula</dc:creator>
<guid isPermaLink="false">6106@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I thought about having separate headers, but concluded that sweating blood and tears now is easier than having to remember later that I have near-identical info in two different places. But it is really up to your own preferences, I suppose.&#60;/p&#62;
&#60;p&#62;Now that I'm able to make Wordpress recognize when it's serving bbPress pages, I can also modify the sidebar and other design features accordingly on the fly, which I think is really quite nice.
&#60;/p&#62;</description>
</item>
<item>
<title>Arlo on "Getting bbPress and Wordpress to talk to each other"</title>
<link>http://bbpress.org/forums/topic/getting-bbpress-and-wordpress-to-talk-to-each-other#post-6097</link>
<pubDate>Thu, 29 Mar 2007 01:54:33 +0000</pubDate>
<dc:creator>Arlo</dc:creator>
<guid isPermaLink="false">6097@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;My site has a similar integration.  I tossed around the idea of doing a conditional header like you describe, but in the end it was just simpler to have a second header file specific for bbpress, which is basically a copy of the WP one with some of the required bbpress stuff thrown in.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Getting bbPress and Wordpress to talk to each other"</title>
<link>http://bbpress.org/forums/topic/getting-bbpress-and-wordpress-to-talk-to-each-other#post-6079</link>
<pubDate>Wed, 28 Mar 2007 20:21:07 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6079@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks for coming back and telling me :D
&#60;/p&#62;</description>
</item>
<item>
<title>vilimaunula on "Getting bbPress and Wordpress to talk to each other"</title>
<link>http://bbpress.org/forums/topic/getting-bbpress-and-wordpress-to-talk-to-each-other#post-6074</link>
<pubDate>Wed, 28 Mar 2007 19:18:02 +0000</pubDate>
<dc:creator>vilimaunula</dc:creator>
<guid isPermaLink="false">6074@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Brilliant! I didn't know that global variables like this exist in PHP (I'm a hobbyist). Thanks a bunch!&#60;/p&#62;
&#60;p&#62;Btw, I had to change the declaration from&#60;/p&#62;
&#60;p&#62;&#60;code&#62;global $forumpage = true;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;p&#62;&#60;code&#62;global $forumpage;&#60;br /&#62;
$forumpage = true;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It gave me an error otherwise.
&#60;/p&#62;</description>
</item>
<item>
<title>fel64 on "Getting bbPress and Wordpress to talk to each other"</title>
<link>http://bbpress.org/forums/topic/getting-bbpress-and-wordpress-to-talk-to-each-other#post-6072</link>
<pubDate>Wed, 28 Mar 2007 19:09:39 +0000</pubDate>
<dc:creator>fel64</dc:creator>
<guid isPermaLink="false">6072@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I have no idea how the bb environment can be detected, but I think I know why your $forumpage hack didn't work; the WP headers are in different files and such.&#60;br /&#62;
When setting $forumpage, try something like this:&#60;br /&#62;
&#60;code&#62;global $forumpage = true;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;When checking if $forumpage is true, do it something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;global $forumpage;
if( $forumpage = true )
{
...
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you tell PHP that you want the global variable $forumpage it should work.&#60;/p&#62;
&#60;p&#62;Not too confident about this, but that should tell PHP to make them global (ie. available everywhere). Otherwise you'll probably be calling &#60;em&#62;different&#60;/em&#62; variables called $forumpage.
&#60;/p&#62;</description>
</item>
<item>
<title>vilimaunula on "Getting bbPress and Wordpress to talk to each other"</title>
<link>http://bbpress.org/forums/topic/getting-bbpress-and-wordpress-to-talk-to-each-other#post-6068</link>
<pubDate>Wed, 28 Mar 2007 18:30:03 +0000</pubDate>
<dc:creator>vilimaunula</dc:creator>
<guid isPermaLink="false">6068@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I'm not sure if I should ask this here or over at Wordpress.org, but perhaps this is more of a bbPress question in the end.&#60;/p&#62;
&#60;p&#62;I have the latest bbPress and Wordpress installations, and both are running fine. The user databases are integrated, and I have also managed to get bbPress to use my Wordpress theme after some poking around.&#60;/p&#62;
&#60;p&#62;What I actually did with the theme integration was that I made bbPress to call the Wordpress header and footer files instead of the bbPress ones, having in turn modified the Wordpress files in a way that everything except for the page-specific content is in those two files. This way, the forum shows up where the Wordpress content (posts, pages, etc.) would otherwise go. Life is good.&#60;/p&#62;
&#60;p&#62;My problem now is that I would like Wordpress to recognize bbPress when it is serving a bbPress page. In other words, I would like to have something like an &#34;if&#34; condition for example in my Wordpress header that checks whether the page currently being shown is a bbPress page. If I could do that, then I could do something like &#34;if bbPress then echo bbPress headers, else echo Wordpress headers&#34;.&#60;/p&#62;
&#60;p&#62;The most basic solution that I could come up with was the following: before having a bbPress page call the Wordpress header, introduce a variable like &#34;$forumpage&#34; and set it to &#34;true&#34;. Then simply include a check in the Wordpress header that checks whether $forumpage is &#34;true&#34;. For some reason, however, this doesn't work as the variable seems to get erased.&#60;/p&#62;
&#60;p&#62;I also tried something like using the condition if($forums) in the Wordpress header, which I saw was in bbPress, but that gave no results, either.&#60;/p&#62;
&#60;p&#62;There probably is a(n easy) solution to all this, so I would really appreciate it if someone could point me to the right direction. I've spent most of the evening working on this, and have tried just about everything that I can think of and have read about on these forums and over at Wordpress.org, but alas without the desired results.&#60;/p&#62;
&#60;p&#62;Thanks for reading!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
