<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Remove Buddypress admin bar from all blog except the main buddypress site</title>
	<atom:link href="http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/feed/" rel="self" type="application/rss+xml" />
	<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/</link>
	<description>Just another Buddydev.com weblog</description>
	<lastBuildDate>Wed, 23 May 2012 03:34:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: David</title>
		<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/comment-page-1/#comment-7840</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 01 Oct 2010 15:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://buddydev.com/?p=5#comment-7840</guid>
		<description>Sorry I forgot the &lt;?php too, go figure.

</description>
		<content:encoded><![CDATA[<p>Sorry I forgot the &lt;?php too, go figure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/comment-page-1/#comment-7839</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 01 Oct 2010 15:19:58 +0000</pubDate>
		<guid isPermaLink="false">http://buddydev.com/?p=5#comment-7839</guid>
		<description>@Paul I dunno if you still check up on this but I think the reason yours doesn&#039;t work is that &quot;&lt;?php&quot; is missing from the beginning of the code snippet. Posting this for Googlers that got here like I did.

it should be:

blog_id!=BP_ROOT_BLOG) //if current blog is not the one on which buddypress is activated
{
remove_action( &#039;wp_footer&#039;, &#039;bp_core_admin_bar&#039;, 8 );//remove buddypress admin bar
}

}
add_action(&quot;wp&quot;,&quot;remove_bpadminbar&quot;);

?&gt;</description>
		<content:encoded><![CDATA[<p>@Paul I dunno if you still check up on this but I think the reason yours doesn&#8217;t work is that &#8220;&lt;?php&quot; is missing from the beginning of the code snippet. Posting this for Googlers that got here like I did.</p>
<p>it should be:</p>
<p>blog_id!=BP_ROOT_BLOG) //if current blog is not the one on which buddypress is activated<br />
{<br />
remove_action( &#8216;wp_footer&#8217;, &#8216;bp_core_admin_bar&#8217;, 8 );//remove buddypress admin bar<br />
}</p>
<p>}<br />
add_action(&#8220;wp&#8221;,&#8221;remove_bpadminbar&#8221;);</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/comment-page-1/#comment-5488</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 08 Aug 2010 23:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://buddydev.com/?p=5#comment-5488</guid>
		<description>Yes. wp-content/plugins/bp-custom.php</description>
		<content:encoded><![CDATA[<p>Yes. wp-content/plugins/bp-custom.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brajesh Singh</title>
		<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/comment-page-1/#comment-5411</link>
		<dc:creator>Brajesh Singh</dc:creator>
		<pubDate>Sat, 07 Aug 2010 20:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://buddydev.com/?p=5#comment-5411</guid>
		<description>@Paul
have you put the code in wp-content/plugins/bp-custom.php ?</description>
		<content:encoded><![CDATA[<p>@Paul<br />
have you put the code in wp-content/plugins/bp-custom.php ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/comment-page-1/#comment-5337</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 05 Aug 2010 02:41:48 +0000</pubDate>
		<guid isPermaLink="false">http://buddydev.com/?p=5#comment-5337</guid>
		<description>Sorry, that code didnt paste in correctly.....


blog_id==3) //if current blog is not the one on which buddypress is activated
{
remove_action( &#039;wp_footer&#039;, &#039;bp_core_admin_bar&#039;, 8 );//remove buddypress admin bar
}

}
add_action(&quot;wp&quot;,&quot;remove_bpadminbar&quot;);

?&gt;</description>
		<content:encoded><![CDATA[<p>Sorry, that code didnt paste in correctly&#8230;..</p>
<p>blog_id==3) //if current blog is not the one on which buddypress is activated<br />
{<br />
remove_action( &#8216;wp_footer&#8217;, &#8216;bp_core_admin_bar&#8217;, 8 );//remove buddypress admin bar<br />
}</p>
<p>}<br />
add_action(&#8220;wp&#8221;,&#8221;remove_bpadminbar&#8221;);</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/comment-page-1/#comment-5336</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 05 Aug 2010 02:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://buddydev.com/?p=5#comment-5336</guid>
		<description>Thanks Brajesh,
unfortunately that didnt work. 
 here&#039;s the code I used for your reference...

blog_id==3) //if current blog is not the one on which buddypress is activated
{
remove_action( &#039;wp_footer&#039;, &#039;bp_core_admin_bar&#039;, 8 );//remove buddypress admin bar
}

}
add_action(&quot;wp&quot;,&quot;remove_bpadminbar&quot;);

?&gt;</description>
		<content:encoded><![CDATA[<p>Thanks Brajesh,<br />
unfortunately that didnt work.<br />
 here&#8217;s the code I used for your reference&#8230;</p>
<p>blog_id==3) //if current blog is not the one on which buddypress is activated<br />
{<br />
remove_action( &#8216;wp_footer&#8217;, &#8216;bp_core_admin_bar&#8217;, 8 );//remove buddypress admin bar<br />
}</p>
<p>}<br />
add_action(&#8220;wp&#8221;,&#8221;remove_bpadminbar&#8221;);</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brajesh Singh</title>
		<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/comment-page-1/#comment-5324</link>
		<dc:creator>Brajesh Singh</dc:creator>
		<pubDate>Wed, 04 Aug 2010 18:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://buddydev.com/?p=5#comment-5324</guid>
		<description>Hi Paul,
Thanks for the comment. Please change the line
&lt;code&gt;
if($current_site-&gt;blog_id!=BP_ROOT_BLOG)
&lt;/code&gt;
to
&lt;code&gt;
if($current_site-&gt;blog_id==3)
&lt;/code&gt;

and It should work for you. Please do let me know if it works or not.

Thanks
Brajesh</description>
		<content:encoded><![CDATA[<p>Hi Paul,<br />
Thanks for the comment. Please change the line<br />
<code><br />
if($current_site-&gt;blog_id!=BP_ROOT_BLOG)<br />
</code><br />
to<br />
<code><br />
if($current_site-&gt;blog_id==3)<br />
</code></p>
<p>and It should work for you. Please do let me know if it works or not.</p>
<p>Thanks<br />
Brajesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://buddydev.com/buddypress/remove-buddypress-admin-bar-from-all-blog-except-the-main-buddypress-site/comment-page-1/#comment-5289</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 03 Aug 2010 07:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://buddydev.com/?p=5#comment-5289</guid>
		<description>Hi Brajesh, 
I&#039;ve been trying to adjust this code to my needs but with no luck :(

I&#039;d have a single blog on a WP3.0 network site that I&#039;d like the BP adminbar not to display on. The Blog ID = 3. 

Can you please point me to a possible solution? Thanks in advance for your help. 

Cheers
Paul</description>
		<content:encoded><![CDATA[<p>Hi Brajesh,<br />
I&#8217;ve been trying to adjust this code to my needs but with no luck <img src='http://buddydev.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I&#8217;d have a single blog on a WP3.0 network site that I&#8217;d like the BP adminbar not to display on. The Blog ID = 3. </p>
<p>Can you please point me to a possible solution? Thanks in advance for your help. </p>
<p>Cheers<br />
Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>

