<?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/"
	>

<channel>
	<title>Geek the Freak Out! It&#039;s Joseph Hinson! &#187; Geek Out</title>
	<atom:link href="http://geekoutwith.me/category/geek-out/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekoutwith.me</link>
	<description>Doing right by the internet since I learned how.</description>
	<lastBuildDate>Mon, 30 Aug 2010 17:42:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to Quickly Create Reusable Color Palettes in TextMate</title>
		<link>http://geekoutwith.me/2010/06/how-to-quickly-create-reusable-color-palettes-in-textmate/</link>
		<comments>http://geekoutwith.me/2010/06/how-to-quickly-create-reusable-color-palettes-in-textmate/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 17:32:00 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://geekoutwith.me/?p=1256</guid>
		<description><![CDATA[Below is a quick video tutorial of using Mac OS&#8217; built-in color picker to create color palletes for use in your CSS documents.

]]></description>
			<content:encoded><![CDATA[<p>Below is a quick video tutorial of using Mac OS&#8217; built-in color picker to create color palletes for use in your CSS documents.</p>
<p><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_1116090935.swf' /><param name='flashvars' value='i=81776' /><param name='allowFullScreen' value='true' /><embed src='http://screenr.com/Content/assets/screenr_1116090935.swf' flashvars='i=81776' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2010/06/how-to-quickly-create-reusable-color-palettes-in-textmate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I love jQuery</title>
		<link>http://geekoutwith.me/2010/04/i-love-jquery/</link>
		<comments>http://geekoutwith.me/2010/04/i-love-jquery/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 02:06:15 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Adventures]]></category>
		<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://geekoutwith.me/?p=998</guid>
		<description><![CDATA[The theme GeekOut, which as of this moment I am using on this site and may release once I decide to go in a different direction with the design, uses jQuery to accomplish a number of things.
1. The animations that are featured both in the navigation and the social media icons
I&#8217;m using the jQuery an&#8230;]]></description>
			<content:encoded><![CDATA[<p>The theme GeekOut, which as of this moment I am using on this site and may release once I decide to go in a different direction with the design, uses jQuery to accomplish a number of things.</p>
<h4>1. The animations that are featured both in the navigation and the social media icons</h4>
<p>I&#8217;m using the jQuery <code>animate()</code> function, which is really cool. I built a slider with it a little while back, which I&#8217;ll more than likely release and talk about here once I get the code to be a little more universal. For now, I&#8217;ll share the code for the animations at the top of the GeekOut theme.</p>
<p>Code:</p>
<pre>function slideOut(obj) {
	$(obj).hover(function(){
	  $(this).animate( { "width":"120"}, 200 )
	});
	$(obj).mouseout(function(){
	  $(this).animate( { "width":"109px"}, 200 )
	});
}
function jumpUp(obj) {
	$(obj).hover(function(){
	  $(this).animate( { "bottom":"0px", "opacity": "1" }, 200 )
	});
	$(obj).mouseout(function(){
	  $(this).animate( { "bottom":"-10px", "opacity": ".4" }, 200 )
	});
}</pre>
<h4>2. Cufon</h4>
<p>Which, as far as I can tell at this point, is the best thing out there as far as self-hosted text replacement plugins go.</p>
<p><a href="http://wiki.github.com/sorccu/cufon/">More about Cufon.</a></p>
<h4>3. The shadow on the sidebar elements</h4>
<p>This code is literally two lines. I needed a shadow element that would only be applied to the sidebar elements and automatically span the element height. There was no way to do this with CSS, so JavaScript solved this problem, and jQuery made it easy.</p>
<p>Code:</p>
<pre>function shadowLeft() {
	$('.widget .shadow').each(function() {
		thisHeight = $(this).parent().height() + 20;
		$(this).height(thisHeight);
	});
}</pre>
<h4>4. The category expander widget</h4>
<p><a title="Link to the Category Expander Widget" href="http://wordpress.org/extend/plugins/category-expander/" target="_blank">Category Expander</a> is a plugin we built at Out:think Group. Several of our clients had blogs with lots of categories, but wanted to highlight only a few, this plugin does just that. It uses jQuery to fade in the rest of the categories.</p>
<p>Do you love jQuery so much you want to take it behind the middle school and get it pregnant? Do you hate jQuery and think it&#8217;s a cheap, overused cop out? Tell me about it, but be nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2010/04/i-love-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Helpful WordPress Shortcode &#8211; showthumbs</title>
		<link>http://geekoutwith.me/2010/04/helpful-wordpress-shortcode-showthumbs/</link>
		<comments>http://geekoutwith.me/2010/04/helpful-wordpress-shortcode-showthumbs/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 03:22:29 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Adventures]]></category>
		<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[shortcode]]></category>

		<guid isPermaLink="false">http://geekoutwith.me/?p=980</guid>
		<description><![CDATA[I was working on my daughter&#8217;s blog, which might be the most robust blog I&#8217;ve built, because it is my testing grounds for new features to add to WordPress sites/blogs. Tonight I added a neat kind of functionality, something I&#8217;d like to share.
Shortcode to show thumbnails.
Here&#&#8230;]]></description>
			<content:encoded><![CDATA[<p>I was working on my daughter&#8217;s blog, which might be the most robust blog I&#8217;ve built, because it is my testing grounds for new features to add to WordPress sites/blogs. Tonight I added a neat kind of functionality, something I&#8217;d like to share.</p>
<h3>Shortcode to show thumbnails.</h3>
<p>Here&#8217;s how it works.</p>
<ol>
<li>Upload a bunch of images to a specific post, title the images whatever you like.</li>
<li>Click &#8220;Save All Changes&#8221;. And Close. <span style="color: #333333;">With this shortcode, there&#8217;s no need to &#8220;Insert Into Posts&#8221;. That will just waste time</span>.</li>
<li>Add the shortcode <code>[showposts]</code> to the content. It will drop in the thumbnails where you add the shortcode. The thumbnails will show in floated list format, side by side, with a 10px margin on the right and bottom (see the screenshot at the bottom).</li>
</ol>
<pre>// [showthumbs]
function showthumbs_func($atts, $content = null) { ?&gt;
 &lt;style type="text/css" media="screen"&gt;
 ul.photo-thumbs {
 margin: 0;
 padding: 0;
 }
 li.thumb {
 list-style: none;
 margin: 0;
 padding: 0;
 float: left;
 line-height: 0;
 margin-right: 10px;
 margin-bottom: 10px;
 }
 li.thumb.clr {
 clear: both;
 float: none;
 margin: 0;
 }
 &lt;/style&gt;
 &lt;?php
 extract(shortcode_atts(array(
 "showthumbs" =&gt; ''
 ), $atts));
 global $post;
 $pics = get_children( 'numberposts=-1&amp;post_type=attachment&amp;post_mime_type=image&amp;post_parent='.$post-&gt;ID );
 $return='&lt;ul class="photo-thumbs"&gt;';
 foreach($pics as $pic) :
 $image = wp_get_attachment_image_src($pic-&gt;ID, 'large');
 $return.='&lt;li class="thumb"&gt;&lt;a rel="slideshow" href="'. $image[0].'"&gt;'.wp_get_attachment_image($pic-&gt;ID, array(75,75)).'&lt;/a&gt;&lt;/li&gt;';
 endforeach;
 $return.='&lt;li class="thumb clr"&gt;&lt;/li&gt;&lt;/ul&gt;';
 return $return;
}
add_shortcode("showthumbs", "showthumbs_func");
</pre>
<p>All you have to do to make this work is drop it in your WordPress functions.php file, located at root/wp-content/themes/your-theme/functions.php &#8211; if one doesn&#8217;t exist. Create one and wrap the code above in <code>PHP</code> tags.</p>
<p>I&#8217;m using colorbox to create a slideshow between them, all you have to do to accomplish this is install colorbox, and add this line to your head:</p>
<pre>&lt;script type="text/javascript"&gt;
 jQuery(document).ready(function() {
  jQuery("a[rel='slideshow']").colorbox({preload: true, slideshowSpeed: '2500', slideshow:true});
 });
&lt;/script&gt;
</pre>
<h3>Screenshot:</h3>
<p><img class="alignnone size-large wp-image-983" title="Baby Pictures of my wife and I" src="http://geekoutwith.me/wp-content/uploads/2010/04/Screen-shot-2010-04-06-at-11.32.56-PM-489x165.png" alt="" width="489" height="165" /></p>
<p>If you want to see this as a plug-in, leave a comment and let me know. I&#8217;ll do it. For real.</p>
<p><script type="text/javascript">// <![CDATA[
	$(document).ready(function() {
		$("a[rel='slideshow']").colorbox({preload: true, slideshow: true});
	});
// ]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2010/04/helpful-wordpress-shortcode-showthumbs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building stuff</title>
		<link>http://geekoutwith.me/2010/03/building-stuff/</link>
		<comments>http://geekoutwith.me/2010/03/building-stuff/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 02:48:48 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Home Improvement]]></category>

		<guid isPermaLink="false">http://geekoutwith.me/?p=973</guid>
		<description><![CDATA[We have a sort of tradition in my little family. Every Saturday we get up and make breakfast together. Sometimes we make Eggs, Bacon, biscuits and hash browns, other mornings we have waffles or pancakes. It&#8217;s always a fun way to start the day together.
The next thing we do is something productiv&#8230;]]></description>
			<content:encoded><![CDATA[<p>We have a sort of tradition in my little family. Every Saturday we get up and make breakfast together. Sometimes we make Eggs, Bacon, biscuits and hash browns, other mornings we have waffles or pancakes. It&#8217;s always a fun way to start the day together.</p>
<p>The next thing we do is something productive (after cleaning up that is). We reorganize storage space or clean up an area that has been bugging us. Then, when my daughter wakes up from her nap, we spend quality family time together. Maybe we go to the park or play in the yard until the sun goes down.</p>
<p>Then it&#8217;s dinner together as a family, and bed time.</p>
<p>This past Saturday I was gonna skip over doing what  I had been putting off which was building a gate for my porch. Part of the reason was that I wasn&#8217;t exactly sure how to do it, and the other part was that it seemed like a big pain to get all my tools out and spend all day working on a building project. Then I got started and remembered how much fun it is to build stuff. I was surprised to see that it only took me two hours, and here&#8217;s the result:</p>
<div id="attachment_970" class="wp-caption alignnone" style="width: 377px"><a href="http://geekoutwith.me/wp-content/uploads/2010/03/p_2048_1536_4D4F9656-619D-40D1-96D9-3B70EDFD0880.jpeg"><img class="size-large wp-image-970" title="Deck Gate" src="http://geekoutwith.me/wp-content/uploads/2010/03/p_2048_1536_4D4F9656-619D-40D1-96D9-3B70EDFD0880-367x490.jpg" alt="" width="367" height="490" /></a><p class="wp-caption-text">I&#39;m very happy with the finished product, and it&#39;s nice not to worry about my little girl falling down the stairs or off the side (notice I don&#39;t have a railing on my stairs).</p></div>
<p>So then today (Tuesday) I was thinking about how much of a pain it is to cook with my portable grill and how it would be nice to have a platform that comes off the railing of the deck that I can cook on. So the minute I got home I started building one. The plans were in flux while I was trying to determine the fastest way to build it, in 10 minutes I put together a plan to use the scrap lumber I had, some shelf brackets, some eyehooks I had from suspended ceiling supplies and a very strange design. <strong>I will admit, it&#8217;s ghetto, but here&#8217;s what I made:</strong></p>
<div id="attachment_972" class="wp-caption alignnone" style="width: 500px"><a href="http://geekoutwith.me/wp-content/uploads/2010/03/l_2048_1536_E7FF6C93-ADF5-43C9-B1B6-828BCC3C8748.jpeg"><img class="size-large wp-image-972" title="Front Side of Shelf" src="http://geekoutwith.me/wp-content/uploads/2010/03/l_2048_1536_E7FF6C93-ADF5-43C9-B1B6-828BCC3C8748-490x367.jpg" alt="" width="490" height="367" /></a><p class="wp-caption-text">Front side of shelf, 36&quot; width accomodates my portable grill and plate, generic shelf brackets to stabilize</p></div>
<div id="attachment_971" class="wp-caption alignnone" style="width: 500px"><a href="http://geekoutwith.me/wp-content/uploads/2010/03/l_2048_1536_5E1ACC4F-30E1-4370-A6E3-B8CC83C12A6C.jpeg"><img class="size-large wp-image-971" title="Back of Shelf" src="http://geekoutwith.me/wp-content/uploads/2010/03/l_2048_1536_5E1ACC4F-30E1-4370-A6E3-B8CC83C12A6C-490x367.jpg" alt="" width="490" height="367" /></a><p class="wp-caption-text">Back of Shelf - Eye hooks screwed into the railing to make the shelf sturdy</p></div>
<p>So yes, it&#8217;s ghetto. But I&#8217;m all about <a href="https://gettingreal.37signals.com/">getting real</a>. This is version 1.0. This was made entirely with scrap lumber. I will change it in the future, but I had to do this quick because I wanted to cook on it.</p>
<p><strong>Time it took to build:</strong> 30 minutes.</p>
<p>Building stuff is so fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2010/03/building-stuff/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Exploring Mobile Web Apps, day 1</title>
		<link>http://geekoutwith.me/2010/03/exploring-mobile-web-apps-day-1/</link>
		<comments>http://geekoutwith.me/2010/03/exploring-mobile-web-apps-day-1/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 02:05:09 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Adventures]]></category>
		<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://geekoutwith.me/?p=949</guid>
		<description><![CDATA[Tonight I cracked open jQTouch and started poking around. First let me say that this thing is incredible. It&#8217;s really impressive. It&#8217;s almost hard to believe that it&#8217;s only jQuery and CSS3, but it&#8217;s really impressive. From Jonathan Stark&#8217;s talk I knew he had a text&#8230;]]></description>
			<content:encoded><![CDATA[<p>Tonight I cracked open jQTouch and started poking around. First let me say that this thing is incredible. It&#8217;s really impressive. It&#8217;s almost hard to believe that it&#8217;s only jQuery and CSS3, but it&#8217;s really impressive. From Jonathan Stark&#8217;s talk I knew he had a textmate bundle, so I picked that up and started messing around with the basic structure of the setup. After not even an hour, <a href="http://geekoutwith.me/m">I created this page</a> (only looks cool on the iPhone) that pulls my latest 10 posts into a iphone app style page.</p>
<p>The cube transition happens by applying the class &#8220;cube&#8221; to a link. <strong>Yes, it really is that easy.</strong></p>
<p>I&#8217;ll post more when I start digging in, for now I&#8217;m going to play my xbox and go to bed.</p>
<h3>Further Reading</h3>
<p><a href="http://jqtouch.com">jQTouch: Superhero like jQuery Plugin</a></p>
<p><a href="http://www.youtube.com/watch?v=f_T6ABZ3kzU">Jonathan Stark&#8217;s Textmate Bundle Demo</a></p>
<p><a href="http://ajaxian.com/archives/jqtouch-a-mobile-webkit-javascript-framework">Ajaxian post on jQTouch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2010/03/exploring-mobile-web-apps-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding PHP powered color control variables.</title>
		<link>http://geekoutwith.me/2010/02/adding-php-powered-color-control-variables/</link>
		<comments>http://geekoutwith.me/2010/02/adding-php-powered-color-control-variables/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 20:25:43 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[color variables]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://geekitopia.com/?p=932</guid>
		<description><![CDATA[I&#8217;m not sure if this was a waste of time, but I&#8217;m not in love with the colors I&#8217;m using on my site. When I built the theme, I kind of knew I&#8217;d get tired of the colors, so I made an index at the top showing what colors were used, it looks like this:
/*
Colors Used:===================&#8230;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure if this was a waste of time, but I&#8217;m not in love with the colors I&#8217;m using on my site. When I built the theme, I kind of knew I&#8217;d get tired of the colors, so I made an index at the top showing what colors were used, it looks like this:</p>
<pre>/*
Colors Used:====================
dark brown:#85605d;
darkest brown:#70564F;
slate blue:#acb6bd
light blu:#e1f5ff
deep grey-blue :#637486
*/
</pre>
<p>This was helpful for using a find/replace method, but if I wanted to add dynamic controls to the theme I&#8217;d have to create a new stylesheet to override the original one in case I wanted to go with a different color scheme, which would be kind of time consuming, and not easily sustainable.</p>
<p>So I pulled everything out except the theme info from the style.css and included a <code>php</code> file called <code>style.php</code>, wrapped the stylesheet in a <code>style</code> tag, and added variables that are echoed throughout the file. Like so:</p>
<pre>
$lightColor1 = '#e1f5ff';
$medColor1 = '#637486';
$blogEntryText = '#333333';
$darkColor1 = '#acb6bd';
$color2 = '#70564F';
</pre>
<p>This allows me to easily tweak my colors, like an automatic find/replace, but I still am not handling my background images, which are also based around the same color scheme, so I added these lines:</p>
<pre>
$logoImage = ''. get_bloginfo('template_url') .'/images/logo-geekout.gif';
$banner1FoldLeft = ''. get_bloginfo('template_url') .'/images/bg-fold-blue-left.png';
$banner1FoldRight = ''. get_bloginfo('template_url') .'/images/bg-fold-right.png';
$banner2FoldLeft = ''. get_bloginfo('template_url') .'/images/bg-fold-brown-left.png';
$commentsBanner = ''. get_bloginfo('template_url') .'/images/bg-comments-banner.png';
$commentbgEven = 'url('. get_bloginfo('template_url') .'/images/bg-comments-odd-brown.png)';
$commentbgOdd = 'url('. get_bloginfo('template_url') .'/images/bg-comments-even-blue.png)';
</pre>
<p>Now I can get at my colors and a lot of my images quickly. This is kind of a precursor to something else I&#8217;m working on, but I thought I&#8217;d share. </p>
<p>Note: I realize I could use a CSS framework like Compass to create color variables, but that&#8217;s a different purpose than what I need. I want something I can get at later&#8230;through the WordPress backend.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2010/02/adding-php-powered-color-control-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using embeddable mp3 players &#8211; Part 2</title>
		<link>http://geekoutwith.me/2010/01/using-embeddable-mp3-players-part-2/</link>
		<comments>http://geekoutwith.me/2010/01/using-embeddable-mp3-players-part-2/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:00:28 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Embeddable Players Series]]></category>

		<guid isPermaLink="false">http://geekitopia.com/?p=827</guid>
		<description><![CDATA[In this tutorial, I cover how to use custom fields to embed an mp3 into your website (without installing a plugin).]]></description>
			<content:encoded><![CDATA[<p>Obviously, if you&#8217;re not going to post mp3s to your site very often, the easy solution is to paste the embed code into your individual post or page using HTML mode, but you might have a need to embed an mp3 on a regular basis. This tutorial will show how to use the embeddable player mentioned in my <!--intlink id="824" type="post" text="previous post"--> in combination with custom fields in order to display <em>one mp3</em> at a time.</p>
<p>So, here&#8217;s how it works.</p>
<h3>Step 1: The Custom Field (from the Add New Post page)</h3>
<p>The first thing you have to do in order to set this up is to add a custom field. To do so, go to the bottom of the page, and in the &#8220;Custom Field&#8221; section, click the &#8220;<span style="color: #3366ff;">Enter New</span>&#8220;. In the &#8220;Name&#8221; field, enter your name (no, not your actual name, the name for the field). This can be anything you like. This name will serve as the &#8220;<em>key</em>&#8221; to the custom field (covered later). For my example, I&#8217;m going to name the custom field &#8220;mp3&#8243;. For the value, I will use the path to my mp3, for example: http://mysite.com/mysongsfolder/mp3-i-want-to-play.mp3.</p>
<h3>Step 2: The Code</h3>
<p>With your favorite text editor (mine is Textmate), open the single.php file, and insert the custom field code you&#8217;ll need. You can read about custom fields in the <a href="http://codex.wordpress.org/Using_Custom_Fields">WordPress codex</a>, but here&#8217;s a quick example of how you can use the custom field in your theme:</p>
<pre>&lt;?php <span style="background-color: #ffff99;">echo </span>get_post_meta(<span style="background-color: #ccffff;">$post-&gt;ID</span>, <span style="background-color: #ffcc99;">$key</span>, <span style="background-color: #cc99ff;">true</span>); ?&gt;</pre>
<h4>Now to explain some stuff.</h4>
<ul>
<li><span style="background-color: #ffff99;">echo</span> is tells the value to print (to spit out on the page).</li>
<li><span style="background-color: #ccffff;">$post-&gt;ID</span> is using the ID of the post that your in.</li>
<li><span style="background-color: #ffcc99;">$key</span> is the name of the custom field (in my example, it will be mp3)</li>
<li><span style="background-color: #cc99ff;">true</span> tells WordPress that there actually is something in the custom field, in order for anything to appear, it needs to be &#8220;true&#8221;.</li>
</ul>
<p>This code will spit out exactly what is in your &#8220;value&#8221; field. If that&#8217;s what we wanted to accomplish, we&#8217;d be done. But if we left it like this, all we&#8217;d get is:</p>
<p>http://mysite.com/mysongsfolder/mp3-i-want-to-play.mpg</p>
<p>And that would look dumb and not do anything. We want action!</p>
<h4>Let&#8217;s take the embed code for the Google reader player and make it do something.</h4>
<p>The google embed looks like this:</p>
<pre>&lt;embed type="application/x-shockwave-flash"
src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=<strong>MP3_FILE_URL</strong>"
width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff"
wmode="window" flashvars="playerMode=embedded" /&gt;</pre>
<p>In this example, the &#8220;MP3_FILE_URL&#8221; will be replaced with our custom field code. Like so:</p>
<pre>&lt;embed type="application/x-shockwave-flash"
src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=<span style="background-color: #ffff99;">&lt;?php echo get_post_meta($post-&gt;ID, 'mp3', true); ?&gt;</span>"
width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff"
wmode="window" flashvars="playerMode=embedded" /&gt;</pre>
<p>There are a few things to note here:</p>
<ul>
<li>The $key has been replaced by whatever you added in the custom fields area for &#8220;Name&#8221;, wrapped in single quotes.</li>
<li>Be sure that echo is include, otherwise the value won&#8217;t show up.</li>
</ul>
<p>The only problem with this method is that if you don&#8217;t enter anything for the custom field &#8220;mp3&#8243;, no mp3 will be embedded. That said, we&#8217;re going to do two things to make this work better:</p>
<ol>
<li>We&#8217;re going to create a variable so that we don&#8217;t have to keep typing &lt;?php echo get_post_meta(&#8230;); ?&gt; over and over again.</li>
<li>We&#8217;re going to check to see if something is actually in the field using the PHP function empty().</li>
</ol>
<p>And here&#8217;s how that&#8217;s done:</p>
<pre>&lt;?php
<span style="background-color: #ffff99;">$mp3 = get_post_meta($post-&gt;ID, 'mp3', true);</span>
<span style="background-color: #ffcc99;">if (!empty($mp3)) : ?&gt;</span>
 &lt;embed type="application/x-shockwave-flash"
 src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=<span style="background-color: #ff99cc;">&lt;?php echo $mp3; ?&gt;</span>"
 width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff"
 wmode="window" flashvars="playerMode=embedded" /&gt;
<span style="background-color: #cc99ff;">&lt;?php endif; ?&gt;</span></pre>
<p>What&#8217;s going on here?</p>
<ol>
<li><span style="background-color: #ffff99;">Line 2</span> is setting the variable $mp3 to the value of the custom field.</li>
<li><span style="background-color: #ffcc99;">Line 3</span> is checking to see if the value of &#8216;mp3&#8242; is NOT empty (that&#8217;s what the exclamation point stands for). Then closing the PHP brackets to allow for HTML code.</li>
<li><span style="background-color: #ff99cc;">Line 5</span> is printing (or spitting out) the exact value of &#8216;mp3&#8242; into the embed code.</li>
<li><span style="background-color: #cc99ff;">Line 8</span> is starting up the PHP code again, and ending the if statement started in <span style="background-color: #ffcc99;">Line 3</span>.</li>
</ol>
<p>What all this does is tells WordPress, &#8220;Hey, if something&#8217;s in the custom field &#8220;mp3&#8243;, spit that out into the embed code, if not, don&#8217;t even mess with the embed code because we don&#8217;t need it.</p>
<p>And that&#8217;s how you do it. You can put this code above or below the_content(); but it needs to be in the loop.</p>
<div class="related-tags"><h3>Other Posts in this Series</h3><ul><li><a href="http://geekoutwith.me/2010/04/my-first-guest-post-at-buildinternet-com/">My first guest post at buildinternet.com</a></li><li><a href="http://geekoutwith.me/2010/01/using-embeddable-mp3-players-part-2/">Using embeddable mp3 players &#8211; Part 2</a></li><li><a href="http://geekoutwith.me/2010/01/using-embeddable-mp3-players-part-1/">Using embeddable mp3 players &#8211; Part 1</a></li></ul></div>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2010/01/using-embeddable-mp3-players-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plugin Released: &#8220;Category Expander&#8221;</title>
		<link>http://geekoutwith.me/2010/01/plugin-released-category-expander/</link>
		<comments>http://geekoutwith.me/2010/01/plugin-released-category-expander/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 23:51:52 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[downloads]]></category>

		<guid isPermaLink="false">http://geekitopia.com/2010/01/plugin-released-category-expander/</guid>
		<description><![CDATA[Tim and I finished a plugin today. It is the first plugin that we are officially releasing to the public. The plugin title is &#8220;Category Expander&#8221;. You can see it in action on the sidebar. Through the settings menu in the WordPress dashboard, you can choose which categories you&#8217;d l&#8230;]]></description>
			<content:encoded><![CDATA[<p>Tim and I finished a plugin today. It is the first plugin that we are officially releasing to the public. The plugin title is &#8220;Category Expander&#8221;. You can see it in action on the sidebar. Through the settings menu in the WordPress dashboard, you can choose which categories you&#8217;d like to be shown, the others will be hidden. A link to &#8220;see all&#8221; will expand the list to show all of your categories.</p>
<p>If you&#8217;re interested in the plugin, you may <a href="&lt;a href=">download it here</a>. If you do download it, please grab my <a href="http://feeds2.feedburner.com/geekitopia">rss feed</a> so that you&#8217;ll be updated with any revisions or fixes. I plan to improve upon some of the functionality very soon.</p>
<p>NEWS! (1-16-2010)</p>
<p>The plugin just got added to the wordpress plugin directory, see it here:</p>
<p><a href="http://wordpress.org/extend/plugins/category-expander/">http://wordpress.org/extend/plugins/category-expander/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2010/01/plugin-released-category-expander/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin: Slim Title</title>
		<link>http://geekoutwith.me/2009/11/wordpress-plugin-slim-title/</link>
		<comments>http://geekoutwith.me/2009/11/wordpress-plugin-slim-title/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 13:53:12 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Dev]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[downloads]]></category>

		<guid isPermaLink="false">http://josephhinson.com/?p=744</guid>
		<description><![CDATA[By default, if a post is set to visibility:  Private, or Password Protected, the word &#8220;Private:&#8221; or &#8220;Protected:&#8221; is prepended to the title. With a simple google search I found a code snippet that worked in replacing those words with nothing, or if I so choose, anything I li&#8230;]]></description>
			<content:encoded><![CDATA[<p>By default, if a post is set to visibility:  Private, or Password Protected, the word &#8220;Private:&#8221; or &#8220;Protected:&#8221; is prepended to the title. With a simple google search I found a code snippet that worked in replacing those words with nothing, or if I so choose, anything I like. I&#8217;ll elaborate later, but for now, here&#8217;s the plugin:</p>
<p><a href="http://josephhinson.com/wp-content/uploads/2009/11/slim_title.zip">Slim Title, WordPress Plugin</a></p>
<p>Just download the zip, and upload slim_title.php to the wp-content/plugins/ folder of your WordPress installation, then activate it in the Plugins menu.</p>
<p>As I said before, all it does is replace Private: or Protected: with nothing by default. There are no administrative options to this plugin, you can modify it if you are comfortable with the code.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2009/11/wordpress-plugin-slim-title/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All outside links open in a new window, with jQuery</title>
		<link>http://geekoutwith.me/2009/11/all-outside-links-open-in-a-new-window-with-jquery/</link>
		<comments>http://geekoutwith.me/2009/11/all-outside-links-open-in-a-new-window-with-jquery/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 21:44:37 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[Geek Out]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Web Dev]]></category>

		<guid isPermaLink="false">http://josephhinson.com/?p=740</guid>
		<description><![CDATA[Today a client asked if all the links on his site could open in a new window. I solved that problem with jQuery, and here&#8217;s how:
&#60;script type="text/javascript" charset="utf-8"&#62;
  jQuery(document).ready(function() {
     jQuery("a").filter(function() {
     return this.hostname &#38;&#038;a&#8230;]]></description>
			<content:encoded><![CDATA[<p>Today a client asked if all the links on his site could open in a new window. I solved that problem with jQuery, and here&#8217;s how:</p>
<pre>&lt;script type="text/javascript" charset="utf-8"&gt;
  jQuery(document).ready(function() {
     jQuery("a").filter(function() {
     return this.hostname &amp;&amp; this.hostname !== location.hostname;
     }).attr('target', '_blank');
  });
&lt;/script&gt;</pre>
<p>The reason I use the &#8220;jQuery&#8221; instead of the &#8220;$&#8221; is because I don&#8217;t know what plugin a user might install that might conflict, so using &#8220;jQuery&#8221; here sidesteps most problems.</p>
<p>This code looks through the page to see if any links are referencing a domain that is NOT the one you&#8217;re currently on. I loaded this in the footer to save on loading time. It&#8217;s not a cosmetic fix, so it doesn&#8217;t matter if it loads last&#8230;most people will wait for the page to load before they begin clicking on links.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekoutwith.me/2009/11/all-outside-links-open-in-a-new-window-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
