<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>David R Poindexter &#187; development</title>
	<atom:link href="http://davidrpoindexter.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidrpoindexter.com</link>
	<description>Technology. Design. Dysfunction.</description>
	<lastBuildDate>Thu, 20 May 2010 19:27:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Limit Display of WordPress Admin Links</title>
		<link>http://davidrpoindexter.com/wordpress/limit-display-of-wordpress-admin-links/</link>
		<comments>http://davidrpoindexter.com/wordpress/limit-display-of-wordpress-admin-links/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 17:56:38 +0000</pubDate>
		<dc:creator>mtheoryx</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://davidrpoindexter.com/?p=74</guid>
		<description><![CDATA[Using the Thesis Theme for WordPress, there is an option to display the WordPress Admin link in your footer. This is convenient, unless you&#8217;re a single author that doesn&#8217;t really want that to show for anyone but yourself. Here&#8217;s how you can use the Thesis Openhook plugin, and some basic WordPress functions to make sure [...]]]></description>
			<content:encoded><![CDATA[<p></p><p style="clear: both"><a class="image-link" href="http://davidrpoindexter.com/wp-content/uploads/2009/09/wordpress-logo-stacked-rgb1.png"><img class="linked-to-original" style=" display: inline; float: left; margin: 0 10px 10px 0;" src="http://davidrpoindexter.com/wp-content/uploads/2009/09/wordpress-logo-stacked-rgb1-thumb.png" alt="" width="252" height="180" align="left" /></a>Using the Thesis Theme for WordPress, there is an option to display the WordPress Admin link in your footer. This is convenient, unless you&#8217;re a single author that doesn&#8217;t really want that to show for anyone but yourself.</p>
<p style="clear: both">Here&#8217;s how you can use the Thesis Openhook plugin, and some basic WordPress functions to make sure you are the only one that sees the link.</p>
<p><span id="more-74"></span></p>
<p style="clear: both">Log into your WordPress site as an admin. Select &#8220;Thesis Options&#8221; from the sidebar.</p>
<p style="clear: both">Locate the &#8220;Display Options&#8221; section, and click the expand button next to &#8220;Administration.&#8221;</p>
<p style="clear: both">Uncheck the &#8220;Show admin link in footer&#8221; checkbox, and click the &#8220;Big Ass Save Button&#8221; (or whatever you have renamed that to).</p>
<p style="clear: both">Now, click on &#8220;Appearance&#8221; in the sidebar, then click on &#8220;Thesis OpenHook.&#8221; You&#8217;ll want to scroll all the way down&#8230; way, way down to about the bottom. Or you can use the convenient popup navigation. You&#8217;re looking for the hook called &#8220;Thesis Hook Footer.&#8221;</p>
<p style="clear: both">Enter the following code in the box (customize the url to point to your main admin link):</p>
<p style="clear: both">
<pre class="brush: php">
/*
*  check if user is an admin,
*  display wordpress admin link only if they&#039;re and admin
*/
&lt;?php if( (is_user_logged_in()) &amp;&amp; (current_user_can(&#039;install_themes&#039;)) ):?&gt;
   &lt;p&gt;&lt;a href=&quot;http://yourblogurl.com/wp-admin/&quot;&gt;WP-Admin&lt;/a&gt;&lt;/p&gt;
&lt;?php endif;?&gt;
</pre>
</p>
<p style="clear: both">Make sure you check the &#8220;Execute PHP on this hook&#8221; option. Then click your &#8220;Little Ass Save Button&#8221;</p>
<p style="clear: both">Go to your blog, and scroll to the bottom and if you&#8217;re logged in as an admin user, you should see a link for &#8220;WP-Admin&#8221; in your footer. Click that, and go to your admin dashboard and click &#8220;Logout.&#8221; Now when you view your blog, you won&#8217;t see that link at the bottom at all.</p>
<p style="clear: both">Here&#8217;s why this works:</p>
<p style="clear: both">What we&#8217;re doing is using a built-in function in WordPress to determine if someone is an admin user. But, we need a workaround since the obvious function is_admin() is reserved for the backend admin panel and dashboard area only.</p>
<p style="clear: both">Instead, we&#8217;re going to tap into the WordPress Roles and Capabilities, and use a method that simply checks if a user is allowed to do something.</p>
<p style="clear: both">WordPress uses the concept of Roles; a user has a role assigned, and that role lets the user do certain things. The roles are hierarchical in nature, and the most restricted action is &#8220;install_themes&#8221;. Only admins can do this, so if you&#8217;re wanting to check if someone is an admin, this is the perfect way to do so.</p>
<p style="clear: both">You can find a full description of what actions certain roles are allowed to perform on the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">WordPress Roles and Capabilities</a> page.</p>
<p style="clear: both">So, only if you are an actual admin will the WP-Admin link display to you.</p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://davidrpoindexter.com/wordpress/limit-display-of-wordpress-admin-links/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>You can use Firebug in any browser!</title>
		<link>http://davidrpoindexter.com/webapps/you-can-use-firebug-in-any-browser/</link>
		<comments>http://davidrpoindexter.com/webapps/you-can-use-firebug-in-any-browser/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 13:09:12 +0000</pubDate>
		<dc:creator>mtheoryx</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[webapps]]></category>

		<guid isPermaLink="false">http://davidrpoindexter.com/uncategorized/you-can-use-firebug-in-any-browser/</guid>
		<description><![CDATA[Over on Nettuts, they went through some helpful JavaScript libraries for web designers.The one tip that really intrigued me was to use firebug in any browser. Being a Mac user, I get the short end of the stick when it comes to Firefox. Despite what others may say, it absolutely sucks on a Mac. Much [...]]]></description>
			<content:encoded><![CDATA[<p></p><p style="clear: both"><a href="http://davidrpoindexter.com/wp-content/uploads/2009/09/header1.png" class="image-link"><img class="linked-to-original" src="http://davidrpoindexter.com/wp-content/uploads/2009/09/header1-thumb.png" height="79" align="left" width="86" style=" display: inline; float: left; margin: 0 10px 10px 0;" /></a>Over on <a href="http://net.tutsplus.com/articles/web-roundups/5-lesser-known-javascript-libraries-that-make-web-design-easier/" target="_blank">Nettuts</a>, they went through some helpful JavaScript libraries for web designers.The one tip that really intrigued me was to use firebug in any browser.</p>
<p style="clear: both">Being a Mac user, I get the short end of the stick when it comes to Firefox. Despite what others may say, it absolutely sucks on a Mac. Much the way Safari, iTunes, and Quicktime apparently suck on Windows.</p>
<p style="clear: both">The only time I fire up Firefox (I actually use the Minefield release because it&#8217;s faster) is when I&#8217;m doing development and need to use Firebug to debug something. Here&#8217;s how you can do it from within your favorite browser.</p>
<p><span id="more-65"></span>
<p style="clear: both">Head on over to Firebug&#8217;s page for <a href="http://getfirebug.com/lite.html" title="Get Firebug Lite" target="_blank">Firebug Lite</a>. You can either follow Nettuts&#8217; instructions and put the include code on whatever website you want to debug, or (more practically), you gan drag a bookmarklet to your bookmarks bar. See below:</p>
<p style="clear: both"><a href="http://davidrpoindexter.com/wp-content/uploads/2009/09/Screen_shot_2009-09-28_at_10.03.30_AM.png" class="image-link"><img class="linked-to-original" src="http://davidrpoindexter.com/wp-content/uploads/2009/09/Screen_shot_2009-09-28_at_10-thumb.03.30_AM1.png" height="336" width="350" style=" text-align: center; display: block; margin: 0 auto 10px;" /></a>Following the latter method allows you to use Firebug on ANY webpage, without altering the source code. Additionally, you don&#8217;t have to remember to take out the code when you&#8217;re done debugging it. Here&#8217;s what it looks like in Safari (pardon my mess of a browser at the moment):</p>
<p style="clear: both"><a href="http://davidrpoindexter.com/wp-content/uploads/2009/09/Screen_shot_2009-09-28_at_10.06.27_AM.png" class="image-link"><img class="linked-to-original" src="http://davidrpoindexter.com/wp-content/uploads/2009/09/Screen_shot_2009-09-28_at_10-thumb.06.27_AM.png" height="336" width="350" style=" text-align: center; display: block; margin: 0 auto 10px;" /></a>Link: <a href="http://net.tutsplus.com/articles/web-roundups/5-lesser-known-javascript-libraries-that-make-web-design-easier/#comment-112573" title="5 Lesser Known JavaScript Libraries that Make Web Design Easier" target="_blank">5 Lesser Known JavaScript Libraries that Make Web Design Easier</a></p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://davidrpoindexter.com/webapps/you-can-use-firebug-in-any-browser/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
