<?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 Tag: conditional</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress Support Forums Tag: conditional</description>
<language>en</language>
<pubDate>Fri, 09 Jan 2009 04:54:43 +0000</pubDate>

<item>
<title>Mr. Grim Reaper on "Conditional Meta Tags per Page Type, and More?"</title>
<link>http://bbpress.org/forums/topic/conditional-meta-tags-per-page-type-and-more#post-17671</link>
<pubDate>Sat, 26 Jul 2008 03:30:21 +0000</pubDate>
<dc:creator>Mr. Grim Reaper</dc:creator>
<guid isPermaLink="false">17671@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Thanks, though I'm a little confused. I put that in as a plugin file (with the plugin info up top) and I got a fatal error when I tried activating it. Sorry, but I'm totally new to bbPres, and WordPress alike.&#60;/p&#62;
&#60;p&#62;Edit: Never mind, I noticed a slight typo (you wrote the wrong function name and forgot a parenthesis) but it works like a charm now. Thanks for that. :]
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Conditional Meta Tags per Page Type, and More?"</title>
<link>http://bbpress.org/forums/topic/conditional-meta-tags-per-page-type-and-more#post-17665</link>
<pubDate>Sat, 26 Jul 2008 01:42:26 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">17665@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;It's very easy to do this via a plugin.&#60;br /&#62;
You have to attach to the 'bb_head' action.&#60;br /&#62;
In fact if there's a plugin for WordPress that does it, it would take under a minute to change it for bbPress.&#60;/p&#62;
&#60;p&#62;Here's a mini-plugin I wrote to do noarchive and nofollow:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function no_archive() {
echo &#38;quot;\n&#38;quot;.&#38;#39;&#38;lt;meta NAME=&#38;quot;robots&#38;quot; CONTENT=&#38;quot;noarchive,nofollow&#38;quot;&#38;gt;&#38;#39;.&#38;quot;\n&#38;quot;;
} add_action(&#38;#39;bb_head&#38;#39;, &#38;#39;no_archive&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.&#60;br /&#62;
It would just have to be wrapped in an IF statement with a URI check to add it when you want it. To get the current location, either check &#60;code&#62;bb_get_location&#60;/code&#62; or steal it's code and modify as desired. &#60;/p&#62;
&#60;p&#62;Something like this (untested)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function no_index() {
if (in_array(bb_get_location(),array(&#38;quot;login-page&#38;quot;,&#38;quot;register-page&#38;quot;,&#38;quot;profile-page&#38;quot;)) {
echo &#38;quot;\n&#38;quot;.&#38;#39;&#38;lt;meta NAME=&#38;quot;robots&#38;quot; CONTENT=&#38;quot;noindex,nofollow&#38;quot;&#38;gt;&#38;#39;.&#38;quot;\n&#38;quot;;
}
} add_action(&#38;#39;bb_head&#38;#39;, &#38;#39;no_archive&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Mr. Grim Reaper on "Conditional Meta Tags per Page Type, and More?"</title>
<link>http://bbpress.org/forums/topic/conditional-meta-tags-per-page-type-and-more#post-17662</link>
<pubDate>Sat, 26 Jul 2008 00:46:16 +0000</pubDate>
<dc:creator>Mr. Grim Reaper</dc:creator>
<guid isPermaLink="false">17662@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Anyone? Simple &#34;if page&#34; stuff. Yet, I don't know what the variables are. :&#124;
&#60;/p&#62;</description>
</item>
<item>
<title>Mr. Grim Reaper on "Conditional Meta Tags per Page Type, and More?"</title>
<link>http://bbpress.org/forums/topic/conditional-meta-tags-per-page-type-and-more#post-17619</link>
<pubDate>Thu, 24 Jul 2008 21:06:42 +0000</pubDate>
<dc:creator>Mr. Grim Reaper</dc:creator>
<guid isPermaLink="false">17619@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I was wondering, while designing my new theme, could you implement conditional meta tags? Specifically, robots control. I'd like to add &#60;code&#62;noindex&#60;/code&#62; and &#60;code&#62;nofollow&#60;/code&#62; to log-in pages, registration pages, user profiles, &#60;em&#62;et cetera.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;I wish there was a &#34;Codex&#34; for bbPress...
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Conditional tag?"</title>
<link>http://bbpress.org/forums/topic/conditional-tag#post-14870</link>
<pubDate>Tue, 01 Apr 2008 08:16:39 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">14870@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;How about in your WordPress header.php try to wrap the breadcrumb call with something that happens only on bbPress pages.  So, if your forum is in a directory called &#34;forum&#34; or something, maybe you could check the REQUEST_URI for the presence of &#60;code&#62;forum&#60;/code&#62;.  Then you wouldn't show the breadcrumbs if you were on a forum page.  Something like that?
&#60;/p&#62;</description>
</item>
<item>
<title>pad on "Conditional tag?"</title>
<link>http://bbpress.org/forums/topic/conditional-tag#post-14867</link>
<pubDate>Tue, 01 Apr 2008 07:15:42 +0000</pubDate>
<dc:creator>pad</dc:creator>
<guid isPermaLink="false">14867@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Breadcrumb script: &#60;a href=&#34;http://wordpress.org/extend/plugins/breadcrumb-navxt/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/breadcrumb-navxt/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I've integrated it so that bbPress calls Wordpress functions, meaning I use get_header and get_footer. All the forum CSS is in my Wordpress CSS.&#60;/p&#62;
&#60;p&#62;In the Wordpress header.php I use that breadcrumb plugin, but obviously on the forum pages I don't want it to appear.
&#60;/p&#62;</description>
</item>
<item>
<title>chrishajer on "Conditional tag?"</title>
<link>http://bbpress.org/forums/topic/conditional-tag#post-14860</link>
<pubDate>Tue, 01 Apr 2008 04:59:12 +0000</pubDate>
<dc:creator>chrishajer</dc:creator>
<guid isPermaLink="false">14860@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Do you have a link to what you're talking about?&#60;/p&#62;
&#60;p&#62;Of course you can do a conditional in PHP, it's just a matter of how you integrated things and if the functions are available between WordPress and bbPress.&#60;/p&#62;
&#60;p&#62;What breadcrumb script are you using?
&#60;/p&#62;</description>
</item>
<item>
<title>pad on "Conditional tag?"</title>
<link>http://bbpress.org/forums/topic/conditional-tag#post-14852</link>
<pubDate>Mon, 31 Mar 2008 23:18:54 +0000</pubDate>
<dc:creator>pad</dc:creator>
<guid isPermaLink="false">14852@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I'm integrated.&#60;/p&#62;
&#60;p&#62;I use a breadcrumb script in my Wordpress header.&#60;/p&#62;
&#60;p&#62;Any idea if it's possible to display the bbPress breadcrumb script INSTEAD of the Wordpress one when on the forum?&#60;/p&#62;
&#60;p&#62;Something like if (is_forum()) or something?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
