<?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>Life of a Southern Programmer &#187; avatar</title>
	<atom:link href="http://bryanprice.info/tags/avatar/feed/" rel="self" type="application/rss+xml" />
	<link>http://bryanprice.info</link>
	<description>An Inquiry Into the Life of Bryan Price</description>
	<lastBuildDate>Sun, 01 May 2011 16:33:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Gravatars</title>
		<link>http://bryanprice.info/2009/06/11/gravatars/</link>
		<comments>http://bryanprice.info/2009/06/11/gravatars/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 16:16:02 +0000</pubDate>
		<dc:creator>Southern Programmer</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[webaccount]]></category>

		<guid isPermaLink="false">http://bryanprice.info/2009/06/11/gravatars/</guid>
		<description><![CDATA[Wow, I never knew about Gravatars until just now.&#160; Everyone needs to go to Gravatar.com and register an avatar that can be used across the web on many websites (including this one).&#160; The avatar is associated with your email address and if a website uses Gravatar it just checks to see if you have one [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, I never knew about Gravatars until just now.&#160; Everyone needs to go to Gravatar.com and register an avatar that can be used across the web on many websites (including this one).&#160; The avatar is associated with your email address and if a website uses Gravatar it just checks to see if you have one setup on Gravatar.com.&#160; If you look at comments on this site you will now see avatars.&#160; This is a really amazing idea!</p>
<p>Now if you have a wordpress blog and you want to incorporate Gravatars into your template, I suggest you use this line of code in your comment template.</p>
<pre class="prettyprint">&lt;?php
  echo get_avatar( $id_or_email, $size = '96', $default = '&lt;path_to_url&gt;' );
?&gt;</pre>
<p>Replace $id_or_email with $comment (this is what I used) or with get_the_author_id() (it varies from theme to theme), replace XX with the size you want the images (I use 50 pixels), and replace &#8216;
<path_to_url>&lt;path_to_url&gt;&#8217; with the absolute location of a custom default avatar (in the case that the commenter didn&#8217;t have a gravatar set).&#160; If you want to use the default avatar set in the WordPress settings (Settings-&gt;Discussion) you need to remove the default argument completely.</p>
<p>Hope this was educational, and remember to sign up for a Gravatar!</path_to_url></p>
]]></content:encoded>
			<wfw:commentRss>http://bryanprice.info/2009/06/11/gravatars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

