<?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: WP Block Admin</title>
	<atom:link href="http://www.callum-macdonald.com/code/wp-block-admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.callum-macdonald.com</link>
	<description>Callum&#039;s musings on the world at large...</description>
	<lastBuildDate>Sat, 13 Mar 2010 15:59:20 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-39857</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Sun, 01 Nov 2009 23:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-39857</guid>
		<description>I don&#039;t think I&#039;ve ever replied to your question, apologies.

If you&#039;re still having the issue, you can edit line 18. It&#039;s clearly marked in the code.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think I&#8217;ve ever replied to your question, apologies.</p>
<p>If you&#8217;re still having the issue, you can edit line 18. It&#8217;s clearly marked in the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-39856</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Sun, 01 Nov 2009 23:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-39856</guid>
		<description>I&#039;m not sure what causes the issues with the image uploader. I wrote this plugin for somebody else and haven&#039;t used or tested it since. If you&#039;re able to find the problem and would like to submit a patch, please do. If you&#039;d like to take over the maintenance of the code give me a holler. :-)</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what causes the issues with the image uploader. I wrote this plugin for somebody else and haven&#8217;t used or tested it since. If you&#8217;re able to find the problem and would like to submit a patch, please do. If you&#8217;d like to take over the maintenance of the code give me a holler. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Ng</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-39824</link>
		<dc:creator>Peter Ng</dc:creator>
		<pubDate>Sun, 01 Nov 2009 11:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-39824</guid>
		<description>Hrmm i&#039;m on 2.9 and still having the same 2.8 issues with the http error upon uploading an image. Substituting is_admin does not fix this problem. Something to do with the wp_redirect?</description>
		<content:encoded><![CDATA[<p>Hrmm i&#8217;m on 2.9 and still having the same 2.8 issues with the http error upon uploading an image. Substituting is_admin does not fix this problem. Something to do with the wp_redirect?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dusty</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-39210</link>
		<dc:creator>Dusty</dc:creator>
		<pubDate>Tue, 13 Oct 2009 14:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-39210</guid>
		<description>THANK YOU!

I was searching for hours for a plugin like this one! 

I was just looking for the wrong thing, but thanks, now I have it, it works like a charm!</description>
		<content:encoded><![CDATA[<p>THANK YOU!</p>
<p>I was searching for hours for a plugin like this one! </p>
<p>I was just looking for the wrong thing, but thanks, now I have it, it works like a charm!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-37705</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Mon, 17 Aug 2009 17:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-37705</guid>
		<description>You want to redirect subscribers but nobody else. Is that correct?

You can edit line 18 of the plugin. Choose a new capability. Looking at &lt;a href=&quot;http://codex.wordpress.org/Roles_and_Capabilities#Contributor&quot; rel=&quot;nofollow&quot;&gt;this list&lt;/a&gt;, contributors have &quot;edit_posts&quot; and &quot;delete_posts&quot; capabilities while subscribers don&#039;t. I&#039;d guess either of those would work, if I&#039;ve understood what you want correctly. Please share your solution back here for others.</description>
		<content:encoded><![CDATA[<p>You want to redirect subscribers but nobody else. Is that correct?</p>
<p>You can edit line 18 of the plugin. Choose a new capability. Looking at <a href="http://codex.wordpress.org/Roles_and_Capabilities#Contributor" rel="nofollow">this list</a>, contributors have &#8220;edit_posts&#8221; and &#8220;delete_posts&#8221; capabilities while subscribers don&#8217;t. I&#8217;d guess either of those would work, if I&#8217;ve understood what you want correctly. Please share your solution back here for others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kate</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-37695</link>
		<dc:creator>Kate</dc:creator>
		<pubDate>Mon, 17 Aug 2009 04:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-37695</guid>
		<description>Hey there,
Great plugin!
I am a bit of a newbie, so don&#039;t want to play around too much in case i break something (i have the horrible wordpress version 2.8 and it&#039;s very tempremental, so much so in fact it won&#039;t let me upgrade!!)
Anyway, back to the point. Can you please let me know what code I need to put in and where to make this only redirect subscribers? Sorry I have done a bit of googling to try and find the answer to this but there doesn&#039;t seem to be one.
thanks again! :)</description>
		<content:encoded><![CDATA[<p>Hey there,<br />
Great plugin!<br />
I am a bit of a newbie, so don&#8217;t want to play around too much in case i break something (i have the horrible wordpress version 2.8 and it&#8217;s very tempremental, so much so in fact it won&#8217;t let me upgrade!!)<br />
Anyway, back to the point. Can you please let me know what code I need to put in and where to make this only redirect subscribers? Sorry I have done a bit of googling to try and find the answer to this but there doesn&#8217;t seem to be one.<br />
thanks again! <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36817</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Wed, 08 Jul 2009 20:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36817</guid>
		<description>Ok, So I switch the commented lines and then what would be a code I would use to add in each capability to block?</description>
		<content:encoded><![CDATA[<p>Ok, So I switch the commented lines and then what would be a code I would use to add in each capability to block?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36816</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Wed, 08 Jul 2009 20:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36816</guid>
		<description>You can use the plugin as a starting point then modify it to your own requirements.</description>
		<content:encoded><![CDATA[<p>You can use the plugin as a starting point then modify it to your own requirements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36815</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Wed, 08 Jul 2009 20:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36815</guid>
		<description>Hi, is there any way I can use this for WPMU but not completely block my users? I saw your first suggestion but I do not have buddypress so I do need to give my users some access for the standard menus and for some menus that my addons created. Im not sure how the first poster had blogs defaulted to author users but my users are Admins.</description>
		<content:encoded><![CDATA[<p>Hi, is there any way I can use this for WPMU but not completely block my users? I saw your first suggestion but I do not have buddypress so I do need to give my users some access for the standard menus and for some menus that my addons created. Im not sure how the first poster had blogs defaulted to author users but my users are Admins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36430</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Fri, 12 Jun 2009 19:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36430</guid>
		<description>No - still no luck. Can&#039;t really see why though unless the WP guys have screwed up the capabilities check for image uploading....</description>
		<content:encoded><![CDATA[<p>No &#8211; still no luck. Can&#8217;t really see why though unless the WP guys have screwed up the capabilities check for image uploading&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36428</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Fri, 12 Jun 2009 17:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36428</guid>
		<description>@&lt;a href=&quot;http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36422&quot; rel=&quot;nofollow&quot;&gt;andy&lt;/a&gt;: Try changing line 51 from:
&lt;code&gt;if (strpos(strtolower($_SERVER[&#039;REQUEST_URI&#039;]),&#039;/wp-admin/&#039;) !== false) {&lt;/code&gt;
to:
&lt;code&gt;if (is_admin()) {&lt;/code&gt;

Does that resolve the issues with 2.8? I don&#039;t use the plugin personally so I don&#039;t test it. Are you interested in taking over the maintenance of the code?

If that change works for you (it worked for somebody else recently), I&#039;ll make the change and push out a new version.</description>
		<content:encoded><![CDATA[<p>@<a href="http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36422" rel="nofollow">andy</a>: Try changing line 51 from:<br />
<code>if (strpos(strtolower($_SERVER['REQUEST_URI']),'/wp-admin/') !== false) {</code><br />
to:<br />
<code>if (is_admin()) {</code></p>
<p>Does that resolve the issues with 2.8? I don&#8217;t use the plugin personally so I don&#8217;t test it. Are you interested in taking over the maintenance of the code?</p>
<p>If that change works for you (it worked for somebody else recently), I&#8217;ll make the change and push out a new version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36422</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Fri, 12 Jun 2009 10:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36422</guid>
		<description>I admit that I have not had a chance yet to look at the code yet (busy morning) but we have been recommending this plugin to users of our forum plugin and with our latest release added the technique as an option. Are you aware that (at least using WP2.8) it disables the use of the flash uploader?</description>
		<content:encoded><![CDATA[<p>I admit that I have not had a chance yet to look at the code yet (busy morning) but we have been recommending this plugin to users of our forum plugin and with our latest release added the technique as an option. Are you aware that (at least using WP2.8) it disables the use of the flash uploader?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caciano</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36318</link>
		<dc:creator>Caciano</dc:creator>
		<pubDate>Thu, 04 Jun 2009 16:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36318</guid>
		<description>Thanks Callum, now it works perfectly!</description>
		<content:encoded><![CDATA[<p>Thanks Callum, now it works perfectly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36237</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Wed, 03 Jun 2009 19:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36237</guid>
		<description>@&lt;a href=&quot;http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36213&quot; rel=&quot;nofollow&quot;&gt;Caciano&lt;/a&gt;: Aha. It sounds like that form is in /wp-admin/ even though it is used on the front end. Interesting. Try changing line 51, which is currently:
&lt;code&gt;if (strpos(strtolower($_SERVER[&#039;REQUEST_URI&#039;]),&#039;/wp-admin/&#039;) !== false) {&lt;/code&gt;
to this:
&lt;code&gt;if (is_admin()) {&lt;/code&gt;

If that works for you, I&#039;ll probably change the plugin to use that method.</description>
		<content:encoded><![CDATA[<p>@<a href="http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36213" rel="nofollow">Caciano</a>: Aha. It sounds like that form is in /wp-admin/ even though it is used on the front end. Interesting. Try changing line 51, which is currently:<br />
<code>if (strpos(strtolower($_SERVER['REQUEST_URI']),'/wp-admin/') !== false) {</code><br />
to this:<br />
<code>if (is_admin()) {</code></p>
<p>If that works for you, I&#8217;ll probably change the plugin to use that method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caciano</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-36213</link>
		<dc:creator>Caciano</dc:creator>
		<pubDate>Wed, 03 Jun 2009 14:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-36213</guid>
		<description>Hi Callum, 

Greeeeat plugin, 

But I have some issues with the upload page, every time I send a file the frame with the forms (Legend, Title, Description etc) the iframe redirect to the home. I using de WP 2.7.1 ...

The upload works nice, just this redirect is a little inconvenience...

Any idea why this happens?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Callum, </p>
<p>Greeeeat plugin, </p>
<p>But I have some issues with the upload page, every time I send a file the frame with the forms (Legend, Title, Description etc) the iframe redirect to the home. I using de WP 2.7.1 &#8230;</p>
<p>The upload works nice, just this redirect is a little inconvenience&#8230;</p>
<p>Any idea why this happens?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35791</link>
		<dc:creator>Malcolm</dc:creator>
		<pubDate>Mon, 11 May 2009 22:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35791</guid>
		<description>You can login to the site (http://ca-bankruptcylaw.com) if you want with the following ID and password if you want to see it in action:

ID: eastmont1  PW: 123</description>
		<content:encoded><![CDATA[<p>You can login to the site (<a href="http://ca-bankruptcylaw.com" rel="nofollow">http://ca-bankruptcylaw.com</a>) if you want with the following ID and password if you want to see it in action:</p>
<p>ID: eastmont1  PW: 123</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35790</link>
		<dc:creator>Malcolm</dc:creator>
		<pubDate>Mon, 11 May 2009 22:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35790</guid>
		<description>It&#039;s working perfectly now. But here&#039;s the code if you want to take a look:

			&lt;!-- Eliminate &quot;Site Admin&quot; link if use is prevented from admin access (because of &quot;WP Block Admin&quot; plugin --&gt;
			&lt;?php global $wpba_required_capability; 
			if (current_user_can($wpba_required_capability))
			    wp_register();
			?&gt;</description>
		<content:encoded><![CDATA[<p>It&#8217;s working perfectly now. But here&#8217;s the code if you want to take a look:</p>
<p>			<!-- Eliminate "Site Admin" link if use is prevented from admin access (because of "WP Block Admin" plugin --><br />
			< ?php global $wpba_required_capability;<br />
			if (current_user_can($wpba_required_capability))<br />
			    wp_register();<br />
			?></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35789</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Mon, 11 May 2009 21:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35789</guid>
		<description>&lt;a href=&quot;http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35787&quot; rel=&quot;nofollow&quot;&gt;Malcolm&lt;/a&gt;: I&#039;m surprised you need to setup &lt;code&gt;$wpba_required_capability&lt;/code&gt;. Are you calling it within a function maybe? You could try making it global, that might do the trick. I&#039;d guess that all the plugins are loaded (and so &lt;code&gt;$wpba_required_capability&lt;/code&gt; is setup) before the theme loop starts, but I might be wrong.</description>
		<content:encoded><![CDATA[<p><a href="http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35787" rel="nofollow">Malcolm</a>: I&#8217;m surprised you need to setup <code>$wpba_required_capability</code>. Are you calling it within a function maybe? You could try making it global, that might do the trick. I&#8217;d guess that all the plugins are loaded (and so <code>$wpba_required_capability</code> is setup) before the theme loop starts, but I might be wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35787</link>
		<dc:creator>Malcolm</dc:creator>
		<pubDate>Mon, 11 May 2009 21:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35787</guid>
		<description>Yep, that worked after I realized I needed to add the setup for $wpba_required_capability :-) Now the Site Admin link doesn&#039;t appear unless it&#039;s functional.

Thanks for the help and for the great plugin!</description>
		<content:encoded><![CDATA[<p>Yep, that worked after I realized I needed to add the setup for $wpba_required_capability <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Now the Site Admin link doesn&#8217;t appear unless it&#8217;s functional.</p>
<p>Thanks for the help and for the great plugin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35786</link>
		<dc:creator>Malcolm</dc:creator>
		<pubDate>Mon, 11 May 2009 21:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35786</guid>
		<description>Thanks! I&#039;ll give that a try and report back.</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ll give that a try and report back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35785</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Mon, 11 May 2009 21:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35785</guid>
		<description>@&lt;a href=&quot;http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35755&quot; rel=&quot;nofollow&quot;&gt;Malcolm&lt;/a&gt;: You could use the same test as in the plugin itself.
&lt;code&gt;if (!current_user_can($wpba_required_capability))&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35755" rel="nofollow">Malcolm</a>: You could use the same test as in the plugin itself.<br />
<code>if (!current_user_can($wpba_required_capability))</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35755</link>
		<dc:creator>Malcolm</dc:creator>
		<pubDate>Sun, 10 May 2009 03:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35755</guid>
		<description>Thanks. If I&#039;d get rid of that link n the theme, I&#039;d want to condition that getting-rid-of on your plugin having deactivated the link (or redirecting it, whatever you do).  Can you think of a test I could make?</description>
		<content:encoded><![CDATA[<p>Thanks. If I&#8217;d get rid of that link n the theme, I&#8217;d want to condition that getting-rid-of on your plugin having deactivated the link (or redirecting it, whatever you do).  Can you think of a test I could make?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35754</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Sun, 10 May 2009 03:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35754</guid>
		<description>@&lt;a href=&quot;http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35752&quot; rel=&quot;nofollow&quot;&gt;Malcolm&lt;/a&gt;: I think you can get rid of that via your theme. It&#039;s part of the Meta widget I believe. Not sure if / how I&#039;d plug into that to remove it. Interesting idea though... :-)</description>
		<content:encoded><![CDATA[<p>@<a href="http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35752" rel="nofollow">Malcolm</a>: I think you can get rid of that via your theme. It&#8217;s part of the Meta widget I believe. Not sure if / how I&#8217;d plug into that to remove it. Interesting idea though&#8230; <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35752</link>
		<dc:creator>Malcolm</dc:creator>
		<pubDate>Sun, 10 May 2009 00:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35752</guid>
		<description>Thanks for that plugin! I just installed it and it worked without having to change anything. Now I&#039;m wondering if you&#039;ve ever thought of removing the &quot;Site Admin&quot; link when it&#039;s deactivated by WP Block Admin :-)</description>
		<content:encoded><![CDATA[<p>Thanks for that plugin! I just installed it and it worked without having to change anything. Now I&#8217;m wondering if you&#8217;ve ever thought of removing the &#8220;Site Admin&#8221; link when it&#8217;s deactivated by WP Block Admin <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35696</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Thu, 07 May 2009 10:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35696</guid>
		<description>Thanks for Plugin. :)</description>
		<content:encoded><![CDATA[<p>Thanks for Plugin. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35060</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Thu, 09 Apr 2009 06:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35060</guid>
		<description>@&lt;a href=&quot;http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35057&quot; rel=&quot;nofollow&quot;&gt;Jonah Korbes&lt;/a&gt;: You are absolutely correct. I routinely make that mistake with strpos. I have added your fix and a note crediting you. Thanks for the fix. :)</description>
		<content:encoded><![CDATA[<p>@<a href="http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35057" rel="nofollow">Jonah Korbes</a>: You are absolutely correct. I routinely make that mistake with strpos. I have added your fix and a note crediting you. Thanks for the fix. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonah Korbes</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-35057</link>
		<dc:creator>Jonah Korbes</dc:creator>
		<pubDate>Thu, 09 Apr 2009 05:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-35057</guid>
		<description>Hey Callum,

Your plugin does exactly what I was looking for. I installed it and found that it wasn&#039;t working for some reason. After looking at the code, I saw the problem:

if (strpos(strtolower($_SERVER[&#039;REQUEST_URI&#039;]),&#039;/wp-admin/&#039;)) {

should be

if (strpos(strtolower($_SERVER[&#039;REQUEST_URI&#039;]),&#039;/wp-admin/&#039;) !== false) {

Since the strpos() of &#039;/wp-admin/&#039; can return zero, the value needs to be evaluated as not equal to false; otherwise, the user&#039;s access level is never checked for blogs that are installed on the root of a domain.

Thanks for the plugin!</description>
		<content:encoded><![CDATA[<p>Hey Callum,</p>
<p>Your plugin does exactly what I was looking for. I installed it and found that it wasn&#8217;t working for some reason. After looking at the code, I saw the problem:</p>
<p>if (strpos(strtolower($_SERVER['REQUEST_URI']),&#8217;/wp-admin/&#8217;)) {</p>
<p>should be</p>
<p>if (strpos(strtolower($_SERVER['REQUEST_URI']),&#8217;/wp-admin/&#8217;) !== false) {</p>
<p>Since the strpos() of &#8216;/wp-admin/&#8217; can return zero, the value needs to be evaluated as not equal to false; otherwise, the user&#8217;s access level is never checked for blogs that are installed on the root of a domain.</p>
<p>Thanks for the plugin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33550</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Wed, 11 Feb 2009 00:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-33550</guid>
		<description>@&lt;a href=&quot;http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33548&quot; rel=&quot;nofollow&quot;&gt;Scot&lt;/a&gt;: I&#039;m not sure what&#039;s going on with buddyPress. This plugin is called as early as possible in the WP boot up, so at a guess I&#039;d say it would work with a caching plugin (I haven&#039;t looked into it).

To aid debugging, try adding some exit(&#039;message&#039;); calls to the plugin. That will help you to see if it&#039;s being called.</description>
		<content:encoded><![CDATA[<p>@<a href="http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33548" rel="nofollow">Scot</a>: I&#8217;m not sure what&#8217;s going on with buddyPress. This plugin is called as early as possible in the WP boot up, so at a guess I&#8217;d say it would work with a caching plugin (I haven&#8217;t looked into it).</p>
<p>To aid debugging, try adding some exit(&#8217;message&#8217;); calls to the plugin. That will help you to see if it&#8217;s being called.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scot</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33548</link>
		<dc:creator>Scot</dc:creator>
		<pubDate>Wed, 11 Feb 2009 00:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-33548</guid>
		<description>Callum

Thanks for the input. Looking forward to trying the new code. 

As it turns out though, I have my new users defaulted to Author. I&#039;ve tried using the plugin with both new &#039;members&#039; and new &#039;blogs&#039; and it still isn&#039;t working right. I&#039;ve removed the other plugin that had the redirect and still no go. One thing I have noticed is that providing a redirect URL is definitely not working as users are always taken to the homepage regardless of what I use. All of this said, there are cache issues with Buddypress as well so maybe that&#039;s part of the problem as well. Makes it challenging to test I must say. 

I know a lot of Buddypress users are looking for a way to hide the admin area as it is very confusing for users who have the BP profile and then find themselves behind the wall in the admin section with another profile.

Cheers

ps - I&#039;m from Atlantic Canada and was in Edinburgh last year. Spent some time at The Last Drop. :)</description>
		<content:encoded><![CDATA[<p>Callum</p>
<p>Thanks for the input. Looking forward to trying the new code. </p>
<p>As it turns out though, I have my new users defaulted to Author. I&#8217;ve tried using the plugin with both new &#8216;members&#8217; and new &#8216;blogs&#8217; and it still isn&#8217;t working right. I&#8217;ve removed the other plugin that had the redirect and still no go. One thing I have noticed is that providing a redirect URL is definitely not working as users are always taken to the homepage regardless of what I use. All of this said, there are cache issues with Buddypress as well so maybe that&#8217;s part of the problem as well. Makes it challenging to test I must say. </p>
<p>I know a lot of Buddypress users are looking for a way to hide the admin area as it is very confusing for users who have the BP profile and then find themselves behind the wall in the admin section with another profile.</p>
<p>Cheers</p>
<p>ps &#8211; I&#8217;m from Atlantic Canada and was in Edinburgh last year. Spent some time at The Last Drop. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: baron</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33547</link>
		<dc:creator>baron</dc:creator>
		<pubDate>Tue, 10 Feb 2009 22:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-33547</guid>
		<description>hi. Thanks for plugin

perfect.

Regards</description>
		<content:encoded><![CDATA[<p>hi. Thanks for plugin</p>
<p>perfect.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33544</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Tue, 10 Feb 2009 21:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-33544</guid>
		<description>@&lt;a href=&quot;http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33543&quot; rel=&quot;nofollow&quot;&gt;Scot MacDonald&lt;/a&gt;: Hey Scot, nice surname! :)

My guess is that you&#039;re seeing problems because your users are admins on the blog. Somebody else recently asked me about a WPMU version related to buddyPress and I modified the plugin slightly for them. It seemed to work well. I&#039;ve added that code to the plugin but commented it out. Version 0.1.2 should appear on wp.org in an hour or two, when that does, look at line 37 and you should be able to make it work for WPMU quite easily. Just comment out line 36 and uncomment line 38.</description>
		<content:encoded><![CDATA[<p>@<a href="http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33543" rel="nofollow">Scot MacDonald</a>: Hey Scot, nice surname! <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My guess is that you&#8217;re seeing problems because your users are admins on the blog. Somebody else recently asked me about a WPMU version related to buddyPress and I modified the plugin slightly for them. It seemed to work well. I&#8217;ve added that code to the plugin but commented it out. Version 0.1.2 should appear on wp.org in an hour or two, when that does, look at line 37 and you should be able to make it work for WPMU quite easily. Just comment out line 36 and uncomment line 38.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scot MacDonald</title>
		<link>http://www.callum-macdonald.com/code/wp-block-admin/comment-page-1/#comment-33543</link>
		<dc:creator>Scot MacDonald</dc:creator>
		<pubDate>Tue, 10 Feb 2009 20:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.callum-macdonald.com/?page_id=1007#comment-33543</guid>
		<description>Callum

I realize you don&#039;t support this plugin but I thought I&#039;d drop a note in the event you could see an obvious issue. I&#039;m using block Admin with WPMU and Buddypress and I&#039;m trying to keep users from seeing the WP backend. I&#039;ve tried your plugin (I actually thought I had it working for awhile) but users are still getting access after logging in and trying the URL/wp-admin link.

I&#039;m also using a custom plugin that redirects people logging in to go to their member page in Buddypress versus the backend. Not sure if this is conflicting, but I don&#039;t think so.

Appreciate your thoughts...

Thx</description>
		<content:encoded><![CDATA[<p>Callum</p>
<p>I realize you don&#8217;t support this plugin but I thought I&#8217;d drop a note in the event you could see an obvious issue. I&#8217;m using block Admin with WPMU and Buddypress and I&#8217;m trying to keep users from seeing the WP backend. I&#8217;ve tried your plugin (I actually thought I had it working for awhile) but users are still getting access after logging in and trying the URL/wp-admin link.</p>
<p>I&#8217;m also using a custom plugin that redirects people logging in to go to their member page in Buddypress versus the backend. Not sure if this is conflicting, but I don&#8217;t think so.</p>
<p>Appreciate your thoughts&#8230;</p>
<p>Thx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
