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

<channel>
	<title>Justin Tadlock</title>
	<atom:link href="http://justintadlock.com/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com</link>
	<description>Life, Blogging, and WordPress</description>
	<pubDate>Sat, 10 May 2008 23:14:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>New WordPress stuff to look forward to</title>
		<link>http://justintadlock.com/archives/2008/05/10/new-wordpress-stuff-to-look-forward-to</link>
		<comments>http://justintadlock.com/archives/2008/05/10/new-wordpress-stuff-to-look-forward-to#comments</comments>
		<pubDate>Sat, 10 May 2008 23:14:30 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=860</guid>
		<description><![CDATA[I've been hard at work these past couple of weeks putting together several new WordPress goodies for everyone.  I'm pretty excited about some of the results I'm getting with the work I've been doing.  Here are some things to look forward to this month...]]></description>
			<content:encoded><![CDATA[<p><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/wordpress-new.jpg" alt="New WordPress things" title="New WordPress things" class="center" /></p>
<p>I&#8217;ve been hard at work these past couple of weeks putting together several new WordPress goodies for everyone.  I&#8217;m pretty excited about some of the results I&#8217;m getting with the work I&#8217;ve been doing.  Here are some things to look forward to this month:</p>
<ul>
<li>Unveiling of a new super image script.</li>
<li><a href="http://justintadlock.com/archives/2007/12/09/structure-wordpress-theme" title="Structure WordPress theme">Structure theme</a> update.</li>
<li><a href="http://justintadlock.com/archives/2008/02/24/options-wordpress-theme" title="Options WordPress theme">Options theme</a> update.</li>
<li>Random quotes plugin.</li>
<li>Project M.</li>
</ul>
<h3>New image script</h3>
<p>I wanted to write about this first because it ties into both of my theme updates.</p>
<p>Traditionally, magazine- or CMS-type blog designs require you to enter image URLs through custom fields.  Many users find this difficult or time consuming (I don&#8217;t personally think it&#8217;s too time consuming, but I&#8217;ve probably used custom fields a few thousand times for this).</p>
<p>With this new script, you&#8217;ll <strong> never</strong> have to use custom fields for your thumbnails, feature images, and so on.  However, it&#8217;s fully compatible with the custom field keys you define.</p>
<p>With one line of code in your theme template files, you&#8217;ll have this power at your disposal.</p>
<p>Basically, the code checks to see if you have any custom fields with images defined.  If not, it pulls the first image from any images attached to the post.  There&#8217;ll be more about this in the days to come.</p>
<p>I&#8217;ll probably write a full post on this sometime soon and offer it for download.  Options and Structure theme users will have this packaged in with their theme.</p>
<h3>Structure theme update</h3>
<p>It&#8217;s long overdue, but I&#8217;m finally updating this thing.  This is still my most popular theme, and quite a few users have been looking forward to an update.  So, I&#8217;ll have the update ready within the next couple of days.  Here&#8217;s what you can look forward to:</p>
<ul>
<li>Some Options theme &#8220;options&#8221; and widgets ported over.</li>
<li>Rethinking of the way we use widgets in WordPress themes.</li>
<li>Optimized code.</li>
<li>Plays nicer with other plugins.</li>
<li>Use of the new image script mentioned earlier in this post.</li>
<li>Gravatar-ready.</li>
<li>Fully WordPress 2.5 compatible.</li>
<li>Print stylesheet.</li>
</ul>
<p>Structure is still my favorite theme because it was the first time I felt I had created a masterpiece with theme development.  I&#8217;ve put a lot of love and care into this update.</p>
<h3>Options theme update</h3>
<p>I&#8217;m always working on this theme, almost every day.  I&#8217;ve been listening to users and seeing how they use the theme.  Here&#8217;s a list of some new features of the update:</p>
<ul>
<li>Theme template files look like &#8220;normal&#8221; WordPress themes, so you&#8217;ll be able to easily edit them.</li>
<li>Inclusion of the new image script mentioned earlier in this post, which will make uploading images so much sweeter.</li>
<li>Works a lot nicer with plugins, especially those using JavaScript.</li>
<li>Using the new WordPress <a href="http://codex.wordpress.org/Using_the_gallery_shortcode" title="Gallery shortcode"> gallery</a> feature, I&#8217;ve implemented a Flickr RSS plugin-like stream of your latest gallery post.</li>
<li>Category cloud (like the tag cloud).</li>
<li>Author cloud.</li>
<li>New sidebar tabs options.</li>
<li>New options for the Recent widget.</li>
<li>Print stylesheet.</li>
<li>And more&#8230;</li>
</ul>
<p>You won&#8217;t be disappointed with this upate (for WP 2.5+ users).  At last count, I&#8217;ve cut out approximately 332 lines of code and 24 useless functions, making the theme faster and and easier to use.</p>
<h3>Random quotes plugin</h3>
<p>I&#8217;ve had about 90% of this plugin finished for weeks now.  I just haven&#8217;t gotten around to completing it because of all the other work I&#8217;ve been doing.</p>
<p>It&#8217;ll come with some really nice options, such as the ability to customize how each quote is output and show quotes from different categories/topics.</p>
<p>If you feel like contributing quotes, I&#8217;ll be happy to add them and add a link back to you as a contributor.  Right now, I have 6 categories of quotes, which are literature, film, individual, art, life, and friendship.</p>
<p>If you really want to help out with this, you can send over a text file with the quotes ready for the plugin by wrapping them in this code:</p>
<pre><code>$quotes[] = array(&#34;This is a quote.&#34;,&#34;Author Name&#34;);
$quotes[] = array(&#34;This is a quote.&#34;,&#34;Author Name&#34;);
$quotes[] = array(&#34;This is a quote.&#34;,&#34;Author Name&#34;);</code></pre>
<p>Or, you can just send me any quotes you&#8217;d like to see added.</p>
<h3>Project M</h3>
<p>Some of you may recall in both a <a href="http://justintadlock.com/archives/2008/01/09/changes-some-things-to-expect-in-the-coming-year" title="Changes: Some things to expect in the coming year"> January</a> and <a href="http://justintadlock.com/archives/2007/12/30/the-year-my-life-changed" title="The year my life changed"> December</a> post I mentioned <strong> Project M</strong>.</p>
<p>Originally, the M stood for March.  Well, I didn&#8217;t quite get around to that.  Since it&#8217;s still May and there are no other months that begin with M left this year, I&#8217;ll have to unveil Project M this month.</p>
<p>Without giving away too many details, here are some things involved with this project.</p>
<ul>
<li><strong>More free WordPress themes.</strong></li>
</ul>
<p>Okay, that&#8217;s only one thing, but it sounds good, right?</p>
<p>Basically, it will be my step into monetizing WordPress while giving users the same things I&#8217;ve always given with full support.</p>
<p>Don&#8217;t ask me how I&#8217;ll monetize this thing.  However, feel free to make guesses and discuss in the comments.  I&#8217;ll unveil this project as soon as I finish the aforementioned projects.</p>
<h3>That&#8217;s a lot of stuff</h3>
<p>Yes, I&#8217;ve been quite busy, which is why you haven&#8217;t seen a lot of new WordPress themes lately.  They&#8217;ll be coming very soon.</p>
<p>Feel free to comment on any of the projects and share your ideas.</p>
<p>There are also idea threads running in the forums for the <a href="http://justintadlock.com/forums/topic.php?id=628" title="Upcoming features for the Options theme"> Options theme</a> and <a href="http://justintadlock.com/forums/topic.php?id=233" title="Future features for the Structure theme"> Structure theme</a>.  So, if you have ideas, now&#8217;s the time to let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/05/10/new-wordpress-stuff-to-look-forward-to/feed</wfw:commentRss>
		</item>
		<item>
		<title>Doing more with gravatars: Part 2</title>
		<link>http://justintadlock.com/archives/2008/05/05/doing-more-with-gravatars-part-2</link>
		<comments>http://justintadlock.com/archives/2008/05/05/doing-more-with-gravatars-part-2#comments</comments>
		<pubDate>Mon, 05 May 2008 19:20:30 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Gravatars]]></category>

		<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=852</guid>
		<description><![CDATA[We've learned how to <a href="http://justintadlock.com/archives/2008/04/30/doing-more-with-gravatars-part-1" title="Doing more with WordPress gravatars: Part 1"> spruce up our comments sections</a> a bit with the first part of this series.  Now, we'll cover an about the author section for single posts.

I think this will mostly be useful for blogs and sites with multiple authors because you might want to tell more about who is writing the post.]]></description>
			<content:encoded><![CDATA[<p><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/gravatars-wordpress.gif" alt="Using WordPress gravatars for an about me section" title="Using WordPress gravatars for an about me section" class="center" /></p>
<p>We&#8217;ve learned how to <a href="http://justintadlock.com/archives/2008/04/30/doing-more-with-gravatars-part-1" title="Doing more with WordPress gravatars: Part 1"> spruce up our comments sections</a> a bit with the first part of this series.  Now, we&#8217;ll cover an about the author section for single posts.</p>
<p>I think this will mostly be useful for blogs and sites with multiple authors because you might want to tell more about who is writing the post.</p>
<p>The &#8220;About the Author&#8221; section is generally a short blurb about the author of the post that you&#8217;ll see at the end of posts of multi-author blogs.  This is a way to show a little bit of the personality of the writer and connect with readers more.</p>
<p>Of course, I&#8217;m assuming that you either have a <a href="http://gravatar.com" title="Get your gravatar"> gravatar</a> or know what one is.</p>
<h3>Here&#8217;s what we&#8217;ll cover</h3>
<p>First, I&#8217;ll show you how to put together a very basic &#8220;About the Author&#8221; section on your single posts using some of the same techniques from the first tutorial.</p>
<p>Then, I&#8217;ll show you some extra things you can do for personal gravatars that are unique to your site.</p>
<h3>Writing your about section</h3>
<p>The first thing you need to do (aside from getting a gravatar) is writing your about section.</p>
<p>In your WordPress dashboard, click on the link that says &#8220;Users.&#8221;  You&#8217;ll see a list of all the users for your blog.  You can either click &#8220;Your Profile&#8221; at the top or find a specific user from the list that you want to edit.  On the next screen, scroll down the page and look for a section titled &#8220;Biographical Info.&#8221;  This is where you&#8217;ll write your short blurb.</p>
<p><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/wordpress-about.gif" alt="Writing your WordPress about section" title="Writing your WordPress about section" class="center" /></p>
<p>Once that&#8217;s done, click &#8220;Update Profile.&#8221;</p>
<h3>The basic &#8220;About the Author&#8221; section</h3>
<p>Now, you need to open the file <code> single.php</code> in your current theme folder.  All themes are a bit different, so I can&#8217;t tell you exactly where to put it, but it should be after your post content and before <code> comments_template();</code></p>
<p>Here&#8217;s the easiest code possible you could put in that area:</p>
<pre><code>&lt;div id="author-box" class="section"&gt;
	&lt;h3 class="section-header"&gt;&lt;?php _e('About the author'); ?&gt;&lt;/h3&gt;
&lt;?php
	$author_email = get_the_author_email();
	echo get_avatar($author_email, '80', 'wavatar');
?&gt;
	&lt;h4&gt;&lt;?php the_author_posts_link(); ?&gt;&lt;/h4&gt;
	&lt;?php the_author_description(); ?&gt;
&lt;/div&gt;</code></pre>
<p>You can change the word &#8220;wavatar&#8221; to default, identicon, or monsterid.  See the <a href="http://blog.gravatar.com/2008/04/22/identicons-monsterids-and-wavatars-oh-my/" title="Identicons, MonsterIDs, and Wavatars"> gravatar blog post</a> to read about these options.  I just like wavatars the best.</p>
<p>Now, if the author of the blog post has a gravatar, then their personal gravatar will appear.  If not, they&#8217;ll get a funny looking character.</p>
<h3>Special avatars for authors without gravatars</h3>
<p>Maybe you don&#8217;t want to show any of the default gravatar icons for authors without gravatars.  So, we&#8217;ll just give them personal avatars for your site.</p>
<p>You&#8217;d need to upload an image with the author&#8217;s user login name to a folder called &#8220;images&#8221; in your theme.  For example, if you had a user with a login name of &#8220;mohawk,&#8221; you&#8217;d give him an image of <code> mohawk.jpg</code>.  Of course, you could alter these things to suit your needs.</p>
<p>This only requires a couple extra lines of code and a small change:</p>
<pre><code>&lt;div id="author-box" class="section"&gt;
	&lt;h3 class="section-header"&gt;&lt;?php _e('About the author'); ?&gt;&lt;/h3&gt;
&lt;?php
	$author_email = get_the_author_email();
	$author_login = get_the_author_login();
	$avatar = get_bloginfo(stylesheet_directory) . '/images/' . $author_login . '.jpg';
	echo get_avatar($author_email, '80', $avatar);
?&gt;
	&lt;h4&gt;&lt;?php the_author_posts_link(); ?&gt;&lt;/h4&gt;
	&lt;?php the_author_description(); ?&gt;
&lt;/div&gt;</code></pre>
<p>If this doesn&#8217;t seem to work correctly, try using <code> get_the_author_id();</code> instead of <code> get_the_author_login();</code>.  Then, you&#8217;d need to change the names of the images to the IDs of your authors.</p>
<h3>Giving everyone personal avatars</h3>
<p>Let&#8217;s presuppose that you don&#8217;t want to use the Gravatar service for this at all.  You might still want to add user avatars for your site and host your own images.  Using the techique from the last section, placing individual images for each author in the &#8220;images&#8221; folder, here&#8217;s how you&#8217;d do that.</p>
<pre><code>&lt;div id="author-box" class="section"&gt;
	&lt;h3 class="section-header"&gt;&lt;?php _e('About the author'); ?&gt;&lt;/h3&gt;
&lt;?php
	$author_login = get_the_author_login();
	$avatar = get_bloginfo(stylesheet_directory) . '/images/' . $author_login . '.jpg';
?&gt;
	&lt;img src="&lt;?php echo $avatar; ?&gt;" alt="&lt;?php echo $author_login; ?&gt;" class="avatar" /&gt;
	&lt;h4&gt;&lt;?php the_author_posts_link(); ?&gt;&lt;/h4&gt;
	&lt;?php the_author_description(); ?&gt;
&lt;/div&gt;</code></pre>
<h3>Styling this thing</h3>
<p>As with any theme, there&#8217;ll be major differences in how things are displayed.  I&#8217;ve given you an ID of &#8220;author-box&#8221; to work with.  Here&#8217;s how one might style it.  You&#8217;ll have to adjust these values to for your theme.</p>
<pre><code>#author-box {
	width: 568px;
	padding: 10px;
	background: #f7f7f7;
	border: 1px solid #eee;
	}
#author-box .avatar {
	float: left;
	width: 80px;
	height: 80px;
	}</code></pre>
<h3>More to come!</h3>
<p>Now, we have two different techniques that we can use our gravatars for.  Is there more we can do?  Yes, there is.  I&#8217;ve got at least two, possibly three, more tutorials in mind for this series.</p>
<p>So, stay tuned.  There&#8217;s more to come.</p>
<p>If you need help with this and need to post large blocks of code, try to use the <a href="http://justintadlock.com/forums" title="Support forums"> forums</a> as it&#8217;s much easier to post and read code there.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/05/05/doing-more-with-gravatars-part-2/feed</wfw:commentRss>
		</item>
		<item>
		<title>South Korean Morning</title>
		<link>http://justintadlock.com/archives/2008/05/04/south-korean-morning</link>
		<comments>http://justintadlock.com/archives/2008/05/04/south-korean-morning#comments</comments>
		<pubDate>Mon, 05 May 2008 00:39:53 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[Gallery]]></category>

		<category><![CDATA[South Korea]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=836</guid>
		<description><![CDATA[I wanted to take a quick stroll this morning as the sun was rising to take pictures.  Unfortunately, I forgot to charge my camera and missed the early dawn.  So, instead of the post "South Korean Sunrise," which is kind of catchy, you only get "South Korean Morning."]]></description>
			<content:encoded><![CDATA[<p>I wanted to take a quick stroll this morning as the sun was rising to take pictures.  Unfortunately, I forgot to charge my camera and missed the early dawn.  So, instead of the post &#8220;South Korean Sunrise,&#8221; which is kind of catchy, you only get &#8220;South Korean Morning.&#8221;</p>
<p>I have the day off since it&#8217;s Children&#8217;s day out here in Korea.  It was nice to just get up and take a walk this morning though.  Here&#8217;s a few pictures from the area I live in.</p>
<p><em>You can view the larger images by clicking on the thumbnails.  You can go to the image&#8217;s page by clicking the caption, even leaving a comment on individual images.</em></p>

<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/007/' title='Winding Walkway'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/007-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/010/' title='Winding Walkway 2'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/010-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/014/' title='Separate Paths'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/014-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/019/' title='Weird Ball Things'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/019-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/020/' title='Lovers&#039; Bench'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/020-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/022/' title='Toward Sunae'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/022-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/023/' title='Green Hanging Thing'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/023-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/028/' title='Stream'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/028-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/032/' title='Alleyway'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/032-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/035/' title='Man&#039;s Massage'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/035-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/038/' title='Angel-in-us'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/038-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/042/' title='Above Sunae'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/042-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/044/' title='Lotte'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/044-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/048/' title='Morning Traffic'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/048-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/05/04/south-korean-morning/attachment/049/' title='Big Buildings'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/05/049-150x150.jpg" width="150" height="150" class="attachment-thumbnail" alt="" /></a>

<p>I might make this gallery thing a more permanent feature here on the blog.  I haven&#8217;t decided whether to make it a post or static page thing yet.  Mostly, I need to start sharing some pictures with the family.</p>
<p>Let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/05/04/south-korean-morning/feed</wfw:commentRss>
		</item>
		<item>
		<title>Doing more with Gravatars: Part 1</title>
		<link>http://justintadlock.com/archives/2008/04/30/doing-more-with-gravatars-part-1</link>
		<comments>http://justintadlock.com/archives/2008/04/30/doing-more-with-gravatars-part-1#comments</comments>
		<pubDate>Wed, 30 Apr 2008 18:31:19 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Gravatars]]></category>

		<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=832</guid>
		<description><![CDATA[I've been playing around quite a bit with the gravatar feature for WordPress since it now comes built in.  I've learned a few things, so I figured I'd share them with you.

From this point forward, I will assume you know what a <a href="http://en.gravatar.com" title="Gravatar"> gravatar</a> is.]]></description>
			<content:encoded><![CDATA[<p><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/wordpress-gravatars.gif" alt="WordPress gravatars in comments" title="WordPress Gravatars" class="center" /></p>
<p>I&#8217;ve been playing around quite a bit with the gravatar feature for WordPress since it now comes built in.  I&#8217;ve learned a few things, so I figured I&#8217;d share them with you.</p>
<p>From this point forward, I will assume you know what a <a href="http://en.gravatar.com" title="Gravatar"> gravatar</a> is.  WordPress 2.5 comes with <a href="http://codex.wordpress.org/Using_Gravatars" title="WordPress Codex: Using gravatars"> built-in gravatar support</a>.  If you&#8217;re using an earlier version of WordPress, you&#8217;ll need to modify the code in this tutorial and use the <a href="http://en.gravatar.com/site/implement/wordpress" title="WordPress Gravatar plugin"> gravatar plugin</a>.</p>
<p>For the first part of this series I&#8217;ll go through some techniques you could use to spruce up your comments section.  Some of you may notice that there are four distinct types of avatars used in my comments section:</p>
<ol>
<li><strong>My avatar:</strong> My personal avatar I can change from my site.</li>
<li><strong>Gravatars:</strong> User gravatars if a user has one set up.</li>
<li><strong>Wavatars / Indenticons / MonsterIDs:</strong> A gravatar that is used if a commenter doesn&#8217;t have a gravatar.</li>
<li><strong>Trackback / Pingback avatar:</strong> The avatar I use for trackbacks and pingbacks, which help separate them from normal comments.</li>
</ol>
<h3>Setting up our comments section</h3>
<p>The first thing you want to do is find your normal comment section in your theme&#8217;s <code> comments.php</code> file, which should begin something like this:</p>
<pre><code>&lt;?php
echo '&lt;ol class="commentlist"&gt;';

// Alternate comment classes (bg colors)
	$odd_comment = 'alt';

foreach ($comments as $comment) :</code></pre>
<p>For the next section, we need to set up a few variables that we&#8217;ll use later, which are the comment author&#8217;s URL, the type of comment (comment, trackback, or pingback), and include a funny-looking default avatar, which I&#8217;ve set to &#8220;wavatar.&#8221;</p>
<p>According to the <a href="http://blog.gravatar.com/2008/04/22/identicons-monsterids-and-wavatars-oh-my" title="Identicons, MonsterIDs, and Wavatars! Oh my!"> Gravatar blog</a>, there are four settings you can change your default gravatar to, which are default, identicon, monsterid, and wavatar.  I&#8217;ve chosen wavatars because I think they&#8217;re a bit more fun.</p>
<pre><code>// Set some variables that we'll use
	$commenter_url = $comment-&gt;comment_author_url;
	$comment_type = get_comment_type();
	$avatar = 'wavatar';</code></pre>
<p>Now, we need to show those comments.</p>
<pre><code>// Comments
	echo "&lt;li class='$odd_comment'&gt;";
	// Open commenter link if it exists
		if($commenter_url == true) {
			echo '&lt;a href="'.$commenter_url.'" rel="nofollow" title="'; comment_author(); echo '"&gt;';
		}</code></pre>
<p>Here&#8217;s the part where we get a little crazy with our gravatars.</p>
<p>We want to set up a default avatar just for ourselves that we can change on our on site.  This allows us to use our own avatar on our sites but our gravatar on other people&#8217;s sites.  Assuming you don&#8217;t separate trackbacks and pingbacks from the normal flow of comments, you can also give them a special avatar to distinguish them from the crowd.  If the comment is not from you, a trackback, or a pingback, then it displays normal gravatars.</p>
<p>You&#8217;ll need to change the email address and image paths in this part of the code to suit your needs.</p>
<pre><code>	// Personal avatar
		if($comment-&gt;comment_author_email == "averagejoe@mysite.com") :
			echo "&lt;img src='"; echo "/wp-content/uploads/avatar.jpg' alt='Your Name' class='avatar' /&gt;";
	// Trackback / pingback avatar
		elseif($comment_type == 'trackback' || $comment_type == 'pingback') :
			echo "&lt;img src='/wp-content/uploads/trackback.jpg' alt='Trackback/Pingback' class='avatar' /&gt;";
	// Everyone else's gravatar
		elseif($comment_type == 'comment') :
			echo get_avatar($comment-&gt;comment_author_email, '80', $avatar);
		endif;</code></pre>
<p>Now, we just need to close off the open link that wraps around the gravatar and show the rest of the normal comment section.</p>
<pre><code>	// Close commenter link if it is open
		if($commenter_url == true) echo '&lt;/a&gt;';

	// Meta data
		echo "\n&lt;div class='comment-meta-data'&gt;\n&lt;span class='comment-author'&gt;";
			comment_author_link();
		echo '&lt;/span&gt; on ';
		if($comment-&gt;comment_approved == '0') :
			echo "&lt;em&gt;Your comment is awaiting moderation.&lt;/em&gt;";
		endif;
		echo "&lt;span class='time'&gt;
			&lt;a href='#comment-"; comment_ID(); echo "' title=''&gt;"; comment_date('M jS, Y'); echo "&lt;/a&gt;";
			echo " at "; comment_time();
		echo "&lt;/span&gt;"; edit_comment_link('Edit',' &lt;span class="edit"&gt;','&lt;/span&gt; ');
		echo "\n&lt;/div&gt;";
	// Comment text
		echo "\n&lt;div class='comment-text'&gt;\n";
			comment_text();
		echo "\n&lt;/div&gt;\n";
	echo "&lt;/li&gt;\n";

// Change comment class
	if('alt' == $odd_comment) $odd_comment = 'odd';
	else $odd_comment = 'alt';

// End comment list
endforeach;
echo "&lt;/ol&gt;\n";
?&gt;</code></pre>
<h3>Styling your comments section</h3>
<p>I can&#8217;t write a one-size-fits all tutorial on this because everyone&#8217;s comment sections are styled differently.  This should get you started though.  Gravatars are given a class of <code> avatar</code>.</p>
<pre><code>#comments-template .avatar {
	float: left;
	width: 40px;
	height: 40px;
	margin: 0 15px 10px 10px;
	padding: 2px;
	background: #fff;
	border: 1px solid #ccc;
	}</code></pre>
<p>If you noticed above that I set the default avatar to <code> 80px</code> in the earlier code, that&#8217;s so that I have a lot of styling options left open later with CSS.  You can change the width and height from your stylesheet, which makes much more sense.</p>
<h3>Do more with this</h3>
<p>On my blog, I&#8217;m also using author comment highlighting, which is bit beyond the scope of this tutorial, but you can do the same.  You can also separate trackbacks and pingbacks entirely or some other crazy thing that we don&#8217;t know about yet.  </p>
<p>The whole point is to have fun with gravatars.  Let your readers show off a bit of themselves on your blog.  Get to know them a little better.</p>
<p>The code above is modified version of what I&#8217;m using on this blog, so if there are any typos, feel free to let me know.  I&#8217;ll update them ASAP.</p>
<p>Stay tuned for the rest of this tutorial series.  We&#8217;re not going to stop at the comments section.</p>
<p><strong>If you need help setting this up</strong> please stop by the <a href="http://justintadlock.com/forums" title="Support forums"> forums</a> here at my site.  It is much easier to post and read code there than in the comments section of the blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/04/30/doing-more-with-gravatars-part-1/feed</wfw:commentRss>
		</item>
		<item>
		<title>New Design: Retro-fitted</title>
		<link>http://justintadlock.com/archives/2008/04/23/new-design-retro-fitted</link>
		<comments>http://justintadlock.com/archives/2008/04/23/new-design-retro-fitted#comments</comments>
		<pubDate>Wed, 23 Apr 2008 20:45:59 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[Updates]]></category>

		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=829</guid>
		<description><![CDATA[Well.  It's done.

It took me a few days and several complete redos of the entire design, but I think I'm finally content with this new theme.  I call it  <strong> Retro-fitted</strong> because the colors are a kind of throwback to some past that I certainly didn't live in.]]></description>
			<content:encoded><![CDATA[<p>Well.  It&#8217;s done.</p>

<a href='http://justintadlock.com/archives/2008/04/23/new-design-retro-fitted/retro-design/' title='Retro-fitted'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/retro-design.png" width="500" height="272" class="attachment-full" alt="" /></a>

<p>It took me a few days and several complete redos of the entire design, but I think I&#8217;m finally content with this new theme.  I call it  <strong> Retro-fitted</strong> because the colors are a kind of throwback to some past that I certainly didn&#8217;t live in.</p>
<h3>Giving credit where credit is due</h3>
<p>My original design for this was largely based off <a href="http://wordpress.org" title="WordPress"> WordPress</a> with its new design and the <a href="http://movabletype.com/blog" title="Movable Type blog"> Movable Type Blog</a> (Yes, I realize we&#8217;re at constant war with the other blogging system).  I got my blue colors from the Movable type design and the reddish color from the WordPress design.</p>
<p>I had originally planned to go very open with the theme because I&#8217;m a big fan of <a href="http://themeshaper.com" title="Theme Shaper"> Theme Shaper&#8217;s</a> current theme.  I like Ian&#8217;s my-design-won&#8217;t-get-in-your-way layout.  I ultimately decided against the open layout and enclosed the content area.  However, I still kept the front page&#8217;s fairly big post title font size, which puts a lot more focus on content.</p>
<p>Last &mdash; not anywhere near least &mdash; Smashing Magazine.  Their recent article on the <a href="http://www.smashingmagazine.com/2008/04/21/celebration-of-vintage-and-retro-design/" title="Celebration of Vintage and Retro Design"> celebration of vintage and retro design</a> made me completely rethink what I wanted to do with the theme.  And to think I almost missed this article because I was working on the redesign.  Luckily, I took a break and read through some posts from my feed reader and happened to catch the article.</p>
<h3>More thoughts about the design</h3>
<p><strong>Gravatars</strong><br />
I don&#8217;t know how I ever lived without them.  After a day or so of using them, then looking at my own blog, I just didn&#8217;t want to comment.  It wasn&#8217;t any fun.</p>
<p><strong>Author highlighting</strong><br />
You&#8217;ll also notice that I&#8217;ve added author highlighting to the comment section, so you&#8217;ll always be able to pick out my comments quickly because they&#8217;ll look a little different.</p>
<p><strong>Sidebar</strong><br />
I&#8217;m not sure whether I&#8217;m happy with the sidebar just yet.  I could probably work on it a few more days and get something more suitable.  But, I might work on it a few more days and get nowhere.</p>
<p><strong>Internet Explorer still sucks</strong><br />
Especially IE6.  Really, the only problem I had with IE6 was PNG transparency issues.  If only everybody would get off that browser, I wouldn&#8217;t have to support it with my designs.</p>
<h3>Let me know what you think</h3>
<p>Do you like it?  Hate it?</p>
<p>Overall, I&#8217;m happy with it because I needed something fresh.  Blogging can sometimes get boring, so we need to spruce up our sites once in a while.  I wanted to go with something lighter and a bit more fun.  I think I at least accomplished that.</p>
<p>I haven&#8217;t ported the theme over to the forums yet.  Look for that in the next few days.  Once that&#8217;s done, you all can look for some more of your regularly scheduled WordPress stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/04/23/new-design-retro-fitted/feed</wfw:commentRss>
		</item>
		<item>
		<title>Widgetize This!</title>
		<link>http://justintadlock.com/archives/2008/04/18/widgetize-this</link>
		<comments>http://justintadlock.com/archives/2008/04/18/widgetize-this#comments</comments>
		<pubDate>Fri, 18 Apr 2008 15:45:16 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[WordPress Hacks]]></category>

		<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=823</guid>
		<description><![CDATA[I'm about to go all WordPress Geek 2.5 on y'all now.  So, if you don't want to look at PHP code or have no clue what a widget is, then you might want to take a break from this post.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m about to go all WordPress Geek 2.5 on y&#8217;all now.  So, if you don&#8217;t want to look at PHP code or have no clue what a widget is, then you might want to take a break from this post.</p>
<h3>WordPress theme developers.  Pay attention.</h3>
<p><a href="http://themeshaper.com" title="Theme Shaper">Ian Stewart</a> just created the &#8220;<a href="http://themeshaper.com/we-need-to-kill-the-sidebar" title="We need to kill the sidebar">we need to kill the sidebar bandwagon</a>,&#8221; and it&#8217;s about time you all hopped on.</p>
<p>The basic idea is that with all the things we can do with widgets, it makes no sense to call these widgetized sections sidebars at all.  Why would we call a footer or a header widget area &#8220;Footer Sidebar&#8221; or &#8220;Header Sidebar&#8221;?  You can even <a href="http://wordpress.org/extend/ideas/topic.php?id=1384" title="WordPress ideas: Kill the sidebar"> vote on this idea</a>.</p>
<p>Since a few of you <a href="http://justintadlock.com/archives/2008/04/05/in-defense-of-the-wordpress-25-widget-panel" title="In defense of the WordPress 2.5 widget panel"> requested it</a>, I&#8217;ll give you a tutorial on how to take full advantage of WordPress 2.5&#8217;s new widget interface.</p>
<h3>The setup</h3>
<p>This is totally new code straight from the development versions of my old and new themes.</p>
<p>The first thing you need to decide is what you want to widgetize.  For the sake of this tutorial and the No Sidebar Bandwagon, let&#8217;s pretend our theme has no sidebars at all.  I&#8217;ll try to avoid using the term &#8220;sidebar&#8221; as much as possible.</p>
<p>I&#8217;m going to keep this real simple.  Here&#8217;s what our page layout will look like:</p>
<ul>
<li>Header</li>
<li>Content Area</li>
<li>Footer</li>
</ul>
<p>Each of these sections is widgetized.  Take a look at what the setup of the basic page and widget panel will look like (<em>click images for larger view</em>):</p>

<a href='http://justintadlock.com/archives/2008/04/18/widgetize-this/widget-page-layout/' title='Page Layout'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/widget-page-layout-300x161.gif" width="300" height="161" class="attachment-medium" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/04/18/widgetize-this/custom-widget-panel/' title='Widget Panel'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/custom-widget-panel-300x161.gif" width="300" height="161" class="attachment-medium" alt="" /></a>

<h3>Adding widgets to the widget panel</h3>
<p>Now, we need to put together a bunch of widgetized areas for our widget panel in the WordPress dashboard.  Typically, we&#8217;ll put these in the <code> functions.php</code> file of the theme we&#8217;re using.</p>
<p>I&#8217;ve found the best way to do this, which is a lot less coding, is to create an array of all the sidebars we want to use.  Plus, it&#8217;s much cooler.</p>
<p><strong>Note:</strong> This tutorial uses text strings that are ready for localization.</p>
<pre><code>&lt;?php
/*****************************************************
Pimp out this page with an endless amount of widget sections.
*****************************************************/
if(function_exists('register_sidebar')) {

// Create widget names and put them in array
	$my_widget_name = array(
		__('Home Header'),
		__('Home Content'),
		__('Home Footer'),
		__('Single Header'),
		__('Single Content'),
		__('Single Footer'),
		__('Archive Header'),
		__('Archive Content'),
		__('Archive Footer'),
	);

// Define how we want our widgets to display
// Replace ridiculous list items with custom style
	foreach($my_widget_name as $my_widget) :
		register_sidebar(array(
			'name' =&gt; $my_widget,
			'before_widget' =&gt; '&lt;div class="section"&gt;',
			'after_widget' =&gt; '&lt;/div&gt;',
			'before_title' =&gt; '&lt;h2 class="section-header"&gt;',
			'after_title' =&gt; '&lt;/h2&gt;', ));
	endforeach;
} ?&gt;</code></pre>
<p>If that seemed a bit complicated, let me break the process down a bit.  We&#8217;re first creating an array of all our widgetized sections.  The reason we&#8217;re doing this is because we don&#8217;t want to have to write the second part of the code over and over and over.  So, for the second part, we just loop through each widget section and register it.</p>
<h3>Displaying your widgets on your blog</h3>
<p>I&#8217;ll show you how to display this for your header section.  It will be basically same for each of our sections.</p>
<pre><code>&lt;?php
/*****************************************************
Creating our pimped out widgetized section.
*****************************************************/

// If on the home page
// Need to use is_home() for WP versions older than 2.5
	if(is_front_page())
		$my_widget_id = __('Home Header');
// Single posts
	elseif(is_single())
		$my_widget_id = __('Single Header');
// Archives
	elseif(is_archive())
		$my_widget_id = __('Archive Header');
// Default to Home widget section
	else
		$my_widget_id = __('Home Header');

// Display the widgetized area
	echo "&lt;div id='header-widget-section'&gt;";
		if(function_exists('dynamic_sidebar') &#038;&#038; dynamic_sidebar($my_widget_id)) :
		else :
		// Default to Home widget area if nothing is set in the widget panel
			if(function_exists('dynamic_sidebar') &#038;&#038; dynamic_sidebar(__('Home Header'))) :
			else : _e('Add content to your widget section through the widget control panel.');
			endif;
		endif;
		echo '&lt;/div&gt;';
?&gt;</code></pre>
<h3>Widgetize your site!</h3>
<p>Now, you have the basic tools to widgtize your site in any way you want.  You could create widgets for any section of any page you&#8217;d like.  You could build a three-column all widget theme if you wanted.  The only limit here is your preconceptions of what widgets are and what they can do.</p>
<p>WordPress&#8217; built-in <a href="http://codex.wordpress.org/Conditional_Tags" title="WordPress conditional tags"> conditional tags</a> are your friends.  Use them.</p>
<p>If you&#8217;re using my Options theme, then I have a <a href="http://justintadlock.com/forums/topic.php?id=363" title="Endless sidebars for the Options theme"> special tutorial</a> for making many sidebars.</p>
<p>I encourage you all to start thinking about what more we can do with this.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/04/18/widgetize-this/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cleaner WordPress Gallery Plugin</title>
		<link>http://justintadlock.com/archives/2008/04/13/cleaner-wordpress-gallery-plugin</link>
		<comments>http://justintadlock.com/archives/2008/04/13/cleaner-wordpress-gallery-plugin#comments</comments>
		<pubDate>Sun, 13 Apr 2008 21:23:38 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=801</guid>
		<description><![CDATA[So you upgraded your WordPress blog to the nifty new 2.5 only to use the gallery feature that <a href="http://ma.tt" title="Matt Mullenweg"> Matt Mullenweg</a> has been <a href="http://wordpress.org/development/2008/03/wordpress-25-brecker/" title="WordPress 2.5: Brecker"> raving</a> about.

Now, you upload that first set of pictures to only find that there are a lot of problems.]]></description>
			<content:encoded><![CDATA[<p><img class="center" src="http://justintadlock.com/blog/wp-content/uploads/2008/04/cleaner-gallery.gif" title="Cleaner Gallery: A WordPress plugin for a valid XHTML WP gallery with Lightbox" alt="Cleaner Gallery: A WordPress plugin for a valid XHTML WP gallery with Lightbox" /></p>
<ul>
<li><strong>Description:</strong> This plugin replaces the default gallery feature in WordPress 2.5 with a valid XHTML solution and offers support for multiple Lightbox-type image scripts.</li>
<li><strong>Version:</strong> Updated to version 0.3.2!</li>
<li><strong>Support:</strong> <a href="http://justintadlock.com/forums" title="Support forums"> Support forums</a></li>
</ul>
<ul>
<li><a href="http://justintadlock.com/downloads/cleaner-gallery.zip" title="Cleaner Gallery WordPress plugin: Replaces default gallery shortcode and integrates Lightbox support">Download version 0.3.2</a> <strong> Tested with WP 2.5.1</strong> (819 downloads)</li>
<li><a href="http://justintadlock.com/downloads/cleaner-gallery-0.2.3.zip" title="Cleaner Gallery WordPress plugin: Replaces default gallery shortcode and integrates Lightbox support">Download version 0.2.3</a> <strong> Tested with WP 2.5</strong></li>
</ul>
<h3>Why I made this plugin</h3>
<p>So you upgraded your WordPress blog to the nifty new 2.5 only to use the gallery feature that <a href="http://ma.tt" title="Matt Mullenweg"> Matt Mullenweg</a> has been <a href="http://wordpress.org/development/2008/03/wordpress-25-brecker/" title="WordPress 2.5: Brecker"> raving</a> about.</p>
<p>Now, you upload that first set of pictures to only find that there are a lot of problems:</p>
<ul>
<li>The gallery shortcode outputs invalid XHTML.</li>
<li>It injects style rules in the middle of the page.</li>
<li><del>Even when you specify to use the thumbnail, it only resizes your image, which causes some problems with page load times.</del> (Fixed in WP 2.5.1)</li>
<li>You&#8217;re happy that you have the new feature but are still a bit unsatisfied.</li>
</ul>
<h3>What does this plugin do?</h3>
<p>Here&#8217;s a list.</p>
<ul>
<li>Creates valid XHTML, which I <strong> know</strong> you all care about.</li>
<li>Uses the image that you specify.  It doesn&#8217;t just resize your very large images.</li>
<li>Let&#8217;s you control the display of your images through CSS.</li>
<li>Supports <a href="http://www.huddletogether.com/projects/lightbox2" title="Lightbox 2"> Lightbox</a>.</li>
<li>Supports <a href="http://www.digitalia.be/software/slimbox" title="Slimbox"> Slimbox</a>.</li>
<li>Supports <a href="http://jquery.com/demo/thickbox" title="Thickbox"> Thickbox</a>.</li>
<li>Supports <a href="http://dolem.com/lytebox/" title="Lytebox"> Lytebox</a>.</li>
<li>Supports <a href=" http://dolem.com/lytebox/" title="Lightview"> Lightview</a>.</li>
<li>Supports <a href="http://orangoo.com/labs/GreyBox" title="GreyBox"> GreyBox</a>.</li>
<li>Supports <a href="http://www.balupton.com/sandbox/jquery_lightbox" title="jQuery Lightbox (balupton edition)"> jQuery Lightbox Plugin (balupton edition).</a></li>
<li>Supports <a href="http://leandrovieira.com/projects/jquery/lightbox" title="jQuery Lightbox Plugin"> jQuery Lightbox</a>.</li>
<li>Supports <a href="http://www.laptoptips.ca/projects/wp-shutter-reloaded" title="Shutter Reloaded"> Shutter Reloaded</a></li>
</ul>
<h3>You want to see this in action, right?</h3>
<p>Since I knew this thing would be very different across multiple themes, I decided to test it out on a few.  Actually, I only have a few themes that aren&#8217;t mine, so I decided to use a few of those.  You&#8217;ll see examples from:</p>
<ul>
<li>A very popular <a href="http://getk2.com" title="Get K2"> K2</a>.</li>
<li>My favorite Small Potato theme, <a href="http://www.wpdesigner.com/2007/01/17/peaceful-rush-wordpress-theme" title="Peaceful Rush"> Peaceful Rush</a>.</li>
<li>One of my more recent favorites from Ian Stewart, <a href="http://themeshaper.com/theseus-a-wordpress-theme-for-conquering-a-maze-of-content" title="Theseus"> Theseus</a>.</li>
<li>And, a theme I designed for my sister called Colorful Notes.</li>
</ul>
<p><em>(Click images for a larger view. Click on the captions to go to the attachment page.  The examples are from the alpha version but work nonetheless.)</em></p>

<a href='http://justintadlock.com/archives/2008/04/13/cleaner-wordpress-gallery-plugin/k2-3-columns/' title='k2-3-columns'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/k2-3-columns-300x168.jpg" width="300" height="168" class="attachment-medium" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/04/13/cleaner-wordpress-gallery-plugin/peaceful-rush-3-columns/' title='peaceful-rush-3-columns'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/peaceful-rush-3-columns-300x168.jpg" width="300" height="168" class="attachment-medium" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/04/13/cleaner-wordpress-gallery-plugin/theseus-6-columns/' title='theseus-6-columns'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/theseus-6-columns-300x168.jpg" width="300" height="168" class="attachment-medium" alt="" /></a>
<a href='http://justintadlock.com/archives/2008/04/13/cleaner-wordpress-gallery-plugin/colorful-10-columns/' title='colorful-10-columns'><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/colorful-10-columns-300x168.gif" width="300" height="168" class="attachment-medium" alt="" /></a>

<p>I think the biggest problem one could run into here is if they&#8217;re using a lot of padding or margin on their images.  You might have to go into your CSS file and change that if needed.</p>
<h3>Instructional stuff</h3>
<p>Just unzip the <code> cleaner-gallery.zip</code> folder and upload the <code> cleaner-gallery</code> folder to your <code> /wp-content/plugins</code> folder just like any other plugin.  Make sure to activate it.</p>
<p>Basically, this plugin just overwrites the gallery code that the WP team gave us.  There&#8217;s <a href="http://codex.wordpress.org/Using_the_gallery_shortcode" title="Using the gallery shortcode"> documentation on using the gallery shortcode</a> available.</p>
<p>The gallery comes ready to use Lightbox or Slimbox &#8220;out of the box.&#8221;  It doesn&#8217;t actually come packaged with either.  I assume that you&#8217;ll figure out how to use them.  You can easily configure the plugin to use which Lightbox-type JavaScript you&#8217;re running.  The section is marked off like this in <code> cleaner-gallery.php</code>:</p>
<pre><code>/************************************************
Begin user-defined variables
************************************************/
// Lightbox or Slimbox?
// jQuery Lightbox plugin(s)?
	$a_rel = &#34;lightbox[cleaner-gallery-$post-&gt;ID]&#34;;
	$a_class = &#34;lightbox&#34;;

// Shutter?
	// $a_rel = &#34;lightbox[cleaner-gallery-$post->ID]&#34;;
	// $a_class = &#34;shutterset_cleaner-gallery-$post->ID&#34;;

// Lytebox?
	// $a_rel = &#34;lytebox[cleaner-gallery-$post-&gt;ID]&#34;;
	// $a_class = &#34;lytebox&#34;;

// Greybox?
	// $a_rel = &#34;gb_imageset[cleaner-gallery-$post-&gt;ID]&#34;;
	// $a_class = &#34;greybox&#34;;

// Thickbox?
	// $a_rel = &#34;clean-gallery-$post-&gt;ID&#34;;
	// $a_class = &#34;thickbox&#34;;

// Lightview?
	// $a_rel = &#34;gallery[cleaner-gallery-$post-&gt;ID]&#34;;
	// $a_class = &#34;lightview&#34;;

// Show caption link?
	$cap_link = true;

// Always show captions (use title if caption isn&#39;t defined)?
	$cap_always = false;
/************************************************
End user-defined variables
************************************************/</code></pre>
<p>You can comment out or uncomment any of the variables to suit your needs.  Just stop by the forums if you need help setting any of this up.</p>
<p>You can also auto-load Thickbox by uncommenting these lines:</p>
<pre><code>
// Auto load Thickbox (included with WP 2.5)?
	// wp_enqueue_script(&#39;thickbox&#39;);
	// add_action(&#39;wp_head&#39;, &#39;thickbox_css&#39;);</code></pre>
<h3>A work in progress</h3>
<p>I think this plugin has a lot of potential.  I haven&#8217;t tested it with every available theme or every gallery shortcode option available.  That&#8217;s for you all to do and let me know how it performs.</p>
<p>I haven&#8217;t actually tested this with <code> itemtag</code>, <code> icontag</code>, or <code> captiontag</code> yet.  Of course, I assume most users won&#8217;t bother using those options anyway.</p>
<p>As with all other releases, keep praise and adoration in the comments section and support questions in <a href="http://justintadlock.com/forums" title="Forums"> forums</a> (just opened a new plugins forum).</p>
<p>Let me know what features need to be packaged with it, what works, and what doesn&#8217;t work.</p>
<p><strong>Update versions 0.2.2 - 0.3</strong><br />
I fixed the issues with multiple galleries on one page.  Each gallery item should now have a unique <code> rel</code> and <code> class</code>.  Each gallery also has a unique class.  For example, if your post ID is 49, the gallery for that post has a class of <code> gallery-49</code>.  So, you could essentially style every individual gallery differently.</p>
<p>Also, tested and added support GreyBox, Lytebox, Lightview, and two jQuery Lightbox plugins.</p>
<p>Thanks to <a href="http://andrewmee.com" title="Andrew Mee"> Andrew</a>, <a href="http://kruyt.org/" title="Kruyt.org"> Dennis</a>, and <a href="http://twelvesixteen.net" title="Twelve Sixteen"> Perze</a> for ideas and support.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/04/13/cleaner-wordpress-gallery-plugin/feed</wfw:commentRss>
		</item>
		<item>
		<title>In defense of the WordPress 2.5 widget panel</title>
		<link>http://justintadlock.com/archives/2008/04/05/in-defense-of-the-wordpress-25-widget-panel</link>
		<comments>http://justintadlock.com/archives/2008/04/05/in-defense-of-the-wordpress-25-widget-panel#comments</comments>
		<pubDate>Sat, 05 Apr 2008 16:34:24 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=751</guid>
		<description><![CDATA[I've heard a lot of moaning and complaining about the new WordPress dashboard.  Some of these complaints are valid, such as the need for the dashboard to be either centered or fluid-width for users with larger screens.

I want to argue the other side of one of the major complaints I've read about &#8212; <strong> the widgets panel</strong>.  And, I'm the last person one might expect to defend anything 2.5-related after my recent upgrade hassles.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve heard a lot of moaning and complaining about the new WordPress dashboard.  Some of these complaints are valid, such as the need for the dashboard to be either centered or fluid-width for users with larger screens.</p>
<p>I want to argue the other side of one of the major complaints I&#8217;ve read about &mdash; <strong> the widgets panel</strong>.  And, I&#8217;m the last person one might expect to defend anything 2.5-related after my recent upgrade hassles.</p>
<p>I&#8217;m a huge fan of the new widgets panel and have been asking for something like this since the release of my <a href="http://justintadlock.com/archives/2007/12/09/structure-wordpress-theme" title="Structure WordPress theme"> Structure theme</a>.</p>
<p>If you haven&#8217;t downloaded WordPress 2.5 or taken a look at the new widgets section, then you&#8217;re in for a surprise &mdash; the drag-and-drop ability is gone and has been replaced by something entirely different.  You now must choose which sidebar/area you want from a drop-down list and wait for a new page to load.</p>
<h3>Why defend something that is obviously less usable?</h3>
<p>Simple.  One of my forum members and I have been <a href="http://justintadlock.com/forums/topic.php?id=363" title="Adding additional sidebars"> discussing this very matter</a>.  She needed 50 sidebars for various bands and such.  They all needed to be unique.  Since this was something I had in mind already, it was easy to get the project set up.</p>
<p>I want you to imagine being able to widgetize anything easily.  Now, imagine 50 different widget blocks in the old widget admin panel.  Could get messy, right?  The new widgets section gives you a drop-down list of your widgetized areas, which sets no limits on how you use your blog.</p>
<p>Here are a couple of pictures you can compare between a WordPress 2.3 and 2.5 install with numerous widget-enabled sidebars to choose from.</p>
<p><em>(Click the images for an enlarged view of the different versions.)</em></p>
<p><a rel="lightbox[widget-gallery]" href="http://justintadlock.com/blog/wp-content/uploads/2008/04/wordpress-25-widget-panel.jpg" title="WordPress 2.5 widgets panel"><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/wordpress-25-widgets.gif" alt="WordPress 2.5 Widgets" class="center" /></a></p>
<p><a rel="lightbox[widget-gallery]" href="http://justintadlock.com/blog/wp-content/uploads/2008/04/wordpress-23-widget-panel.jpg" title="WordPress 2.3 widgets panel"><img src="http://justintadlock.com/blog/wp-content/uploads/2008/04/wordpress-23-widgets.gif" alt="WordPress 2.3 Widgets" class="center" /></a></p>
<p>You&#8217;ll notice that you can&#8217;t even see the draggable widgets for the 2.3 install because they&#8217;re so far down the page you can&#8217;t reach them, making it nearly impossible to actually use the sidebars.  In the 2.5 install, you can easily choose which sidebar you want.  It&#8217;s much cleaner.</p>
<h3>Cool things you can do with this</h3>
<p>You can make widgets for anything and everything.</p>
<p>Want to widgetize your footer?  Done.  The Cat Photos category sidebar?  Done.  About page sidebar?  Post attachment sidebar?  Done and done.</p>
<p>In the next releases of any of my themes, I&#8217;m implementing total widget control, at least for the sidebars.  Structure theme users will have some extra special options because the theme was built upon this idea.</p>
<p>Here are just the default sidebars I&#8217;m adding:</p>
<ul>
<li>Sidebar Home</li>
<li>Sidebar Single</li>
<li>Sidebar Page</li>
<li>Sidebar Category</li>
<li>Sidebar Archive</li>
<li>Sidebar Author</li>
<li>Sidebar Search</li>
<li>Sidebar Day</li>
<li>Sidebar Month</li>
<li>Sidebar Year</li>
<li>Sidebar Time</li>
<li>Sidebar Date</li>
<li>Sidebar 404</li>
<li>Sidebar Attachment</li>
<li>Sidebar Search</li>
<li>Sidebar Paged</li>
</ul>
<p>On top of all those, users can add additional widget areas for any type of page easily.  This is only a small sampling of what can be accomplished.  All of this is controlled using WordPress&#8217; built-in <a href="http://codex.wordpress.org/Conditional_Tags" title="WordPress conditional tags"> conditional tags</a>.</p>
<h3>What are your thoughts?</h3>
<p>We should start thinking about what we can do with this new functionality before reverting back to 2.3.  I&#8217;m sure the <a href="http://wordpress.org/about" title="WordPress about page"> WP development team</a> heard our cries for more widget control.  They&#8217;ve delivered.  Now, it&#8217;s time for us to use the power that&#8217;s been handed to us.</p>
<p>Some may think this would be a bit &#8220;code heavy,&#8221; but the sidebar file I&#8217;m working with right now is only 2.09 kb.</p>
<p>If you want to check out how I done this for my Options theme, you can read the <a href="http://justintadlock.com/forums/topic.php?id=363" title="Adding additional sidebar"> full discussion</a>.  Or, you can beg (in the comments) for me to write a full-blown tutorial on this.</p>
<p>Let me know what you think of the new widgets panel and if you&#8217;d still prefer the old one after this revelation.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/04/05/in-defense-of-the-wordpress-25-widget-panel/feed</wfw:commentRss>
		</item>
		<item>
		<title>Picking up the pieces</title>
		<link>http://justintadlock.com/archives/2008/04/04/picking-up-the-pieces</link>
		<comments>http://justintadlock.com/archives/2008/04/04/picking-up-the-pieces#comments</comments>
		<pubDate>Fri, 04 Apr 2008 16:53:26 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[Updates]]></category>

		<guid isPermaLink="false">http://justintadlock.com/?p=732</guid>
		<description><![CDATA[As many of you know, I've had a good bit of trouble in the last few days.  Upgrading from WordPress version 2.5 and bbPress 0.9 has been a disaster for me.

My blog was down for about three days while I was trying to fix things.  Another week of trying to get things pieced together would've probably made me crawl to some corner and curl up into the fetal position.]]></description>
			<content:encoded><![CDATA[<p>As many of you know, I&#8217;ve had a good bit of trouble in the last few days.  Upgrading from WordPress version 2.5 and bbPress 0.9 has been a disaster for me.</p>
<p>My blog was down for about three days while I was trying to fix things.  Another week of trying to get things pieced together would&#8217;ve probably made me crawl to some corner and curl up into the fetal position.</p>
<p>To top it all off, I&#8217;ve been &#8220;deathly ill&#8221; for the last week.  My throat is so swollen at the moment that I can hardly talk without wincing, which doesn&#8217;t help when your day job is a job where you&#8217;re talking the entire time (I&#8217;m a teacher for those of you that don&#8217;t know).</p>
<h3>A special thank you</h3>
<p>I do want to point out a few users that&#8217;ve helped me out tremendously throughout this ordeal.  <strong> Groovy</strong> and <strong> Web Lady</strong>, you&#8217;ve been more than helpful in the last few days, giving me updates on what&#8217;s happening on your end.  It helped speed up the process quite a bit.</p>
<p>There are other users that have contributed too, especially on the blog.  Unfortunately, I lost quite a few comments, especially on some recent test posts (also lost).  I can&#8217;t remember who you are but thank you nonetheless.</p>
<h3>There are still quite a few pieces stranded</h3>
<p>Although I&#8217;ve got my blog and forums back up and running, some things are still out of place.  I won&#8217;t bother with the whys and hows of this though.  It just is, and it&#8217;ll take some time getting things back to normal.</p>
<p>This experience has taught me a very important lesson &mdash; don&#8217;t get complacent when it comes to upgrading WordPress.  </p>
<p>I upgrade my local version at least once a week with the latest version from trunk and try to routinely keep my theme demo sites updated.  In short, I was off my <em> upgrade game</em> when it came time to update this site.  I wasn&#8217;t fully prepared for problems that might&#8217;ve arisen.</p>
<p>When upgrading JustinTadlock.com, I should be more than careful and will be from now on, even if I think I would&#8217;ve had the same upgrade results.</p>
<h3>Losing a part of yourself</h3>
<p>When a blog goes down, especially one that has had so much put into it over a long period of time, it feels like you&#8217;ve lost a part of yourself, an extension of your very being.  For nearly five years, this blog has been a sort of second home for me.  I felt like that second home had been taken away from me.</p>
<p>I&#8217;ve always felt passionate about blogging, which is why I develop themes and the occasional plugin to help other bloggers achieve their goals.  It&#8217;s more than just a hobby to me; it&#8217;s who I am.</p>
<p>Just losing some comments hurts more than some may ever know.  I consider many of you to be friends and have gotten to know a good number of you on a more personal level.  I hate to think that some of your comments have been lost forever.  On some days when I&#8217;m bored and have a lot of extra free time, I like to browse through old posts and read the comments.  It helps put things into perspective, letting me see how far I have come in the last few years, how things have changed, the people I&#8217;ve interacted with.</p>
<h3>A fresh start</h3>
<p>I&#8217;ve been <a href="http://justintadlock.com/forums/topic.php?id=362" title="Forum link: Redesigning JustinTadlock.com"> preparing for a redesign</a> lately.  It&#8217;s overdue.  I suppose this is as good a time as any to put up a new theme for the site, which I hope to have done within a week.</p>
<p>I also got a chance to finally move the contents of my WordPress install to a subdirectory of my main site, which basically just clears up a bunch of room in my site root.</p>
<p>I&#8217;ve got a few plugins in the works too.  Some of you noticed the Random Quotes plugin in <a href="http://justintadlock.com/blog/wp-content/uploads/2008/03/options-theme-reloaded.jpg" title="Random Quotes in the sidebar"> an image</a> I posted about a theme update.</p>
<p>The second of the plugins is a plugin that uses WordPress 2.5&#8217;s new gallery feature.  Basically, it&#8217;s an extension of what the WP team put together.  It&#8217;s also the reason I&#8217;ve upgraded the site &mdash; I wanted to show off the plugin and needed to upgrade.  So, trust me, this plugin will be released soon and you <strong> will</strong> love it.  I repeat, you <strong> will</strong> love it.  It&#8217;s the sole reason my site has been down for three days.</p>
<p>The last thing on my priority list and certainly not least, is putting more emphasis on actually blogging.  I&#8217;ve been too wrapped up in designing custom themes and developing free themes and plugins these last few months.  Even though my subscriber count is continually rising, I&#8217;m posting much less than what I want to.  I probably have at least 10 post ideas every day but don&#8217;t have the time to sit down and write.</p>
<p>With that said, I&#8217;m officially closing down my custom design services.  Some of you may ask how I&#8217;ll be able to support free themes without making money through custom work.  Don&#8217;t worry.  I won&#8217;t discontinue free themes in any way.</p>
<p>I want to close down my custom work because I just don&#8217;t have the time for three or four designs at once and running things around here.  Of course, I have to have a little bit of a life offline &mdash; just a little.</p>
<h3>To close off this long post</h3>
<p>I want to thank you all for being patient because I know that y&#8217;all are very patient people, right?</p>
<p>There&#8217;s a lot of stuff that needs to be fixed around here.  It&#8217;s an unfortunate side effect of my site going down.  If something&#8217;s not working, just drop a note in the comments or join the discussion on <a href="http://justintadlock.com/forums/topic.php?id=379" title="Blog and forums broken?"> this forum post</a>.  I&#8217;ll put it on my list of things to update.</p>
<p>Now, I&#8217;m off to check my feedburner stats to see how many subscribers I&#8217;ve lost in the last few days.</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/04/04/picking-up-the-pieces/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://justintadlock.com/archives/2008/04/03/hello-world</link>
		<comments>http://justintadlock.com/archives/2008/04/03/hello-world#comments</comments>
		<pubDate>Thu, 03 Apr 2008 14:32:31 +0000</pubDate>
		<dc:creator>Justin Tadlock</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://justintadlock.com/blog/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://justintadlock.com/archives/2008/04/03/hello-world/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
