<?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>Business Mindhacks &#187; Gravatar</title>
	<atom:link href="http://businessmindhacks.com/post/tag/gravatar/feed" rel="self" type="application/rss+xml" />
	<link>http://businessmindhacks.com</link>
	<description>Thinking about your business on another level.</description>
	<lastBuildDate>Mon, 02 Apr 2012 18:42:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Two Line Avatar Hack for Wordpress Comments</title>
		<link>http://businessmindhacks.com/post/two-line-avatar-hack-for-wordpress-comments</link>
		<comments>http://businessmindhacks.com/post/two-line-avatar-hack-for-wordpress-comments#comments</comments>
		<pubDate>Sun, 27 Apr 2008 22:21:45 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Mindhacks]]></category>
		<category><![CDATA[Avatars]]></category>
		<category><![CDATA[coiserv]]></category>
		<category><![CDATA[Gravatar]]></category>
		<category><![CDATA[Mybloglog]]></category>
		<category><![CDATA[Tom Werner]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress comments]]></category>
		<category><![CDATA[Wordpress Hack]]></category>

		<guid isPermaLink="false">http://businessmindhacks.com/post/two-line-avatar-hack-for-wordpress</guid>
		<description><![CDATA[ Only 2 (!) simple lines of code to have avatar support for your Wordpress comments with gracefull fail-over from Gravatar.com to Mybloglog.com, all without plugins&#8230; just add to your comments.php in the comments loop wherever you would like to see the Avatars/commenter photos placed:
The code for gravatar image URL is taken from Tom Werner&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" class="leftimg" src="/p/wordpress_med.gif" /> Only 2 (!) simple lines of code to have <strong>avatar support for your Wordpress comments with gracefull fail-over from Gravatar.com to Mybloglog.com, all without plugins</strong>&#8230; just add to your comments.php in the comments loop wherever you would like to see the Avatars/commenter photos placed:</p>
<p>The code for gravatar image URL is taken from Tom Werner&#8217;s simple gravatar.php plugin, the failover to Mybloglog was my idea.</p>
<p><a href="/post/two-line-avatar-hack-for-wordpress#comments">Check it out in action here</a>.</p>
<p>Note that the commenter email address must be URL encoded twice, because the gravatar.com script otherwise strips out the @ symbol.</p>
<p>Plus this makes for minimal protection from email phishing bots. Better would be to have Mybloglog adopt Gravatar&#8217;s md5 encoding of the Email address.</p>
<p>If MyBlogLog also had the &quot;&amp;default=[url]&quot; failover support, <strong>this could be chained to support further avatar service providers.</strong> Since it doesn&#8217;t, the chain stops with their somewhat ugly and small default (the grey square with the question mark).</p>
<p>And this also represents one fly in the ointment: MyBlogLog could at least make the size of that default the same size as the avatars their &quot;coiserv.php&quot; script serves &#8211; 48 x 48 pixels. I am going to talk to someone at Yahoo about this who might be able to pass it on to the right people.</p>
<p><span style="background-color: Yellow;">To get the code, right-click and &quot;Select All&quot;, then copy and paste to your theme&#8217;s comments.php template where you want the Avatar to appear.</span></p>
<form>
    <textarea wrap="off" cols="60" rows="3">&lt;?php $mybloglog=&quot;http://pub.mybloglog.com/coiserv.php?href=mailto:&quot;.urlencode(get_comment_author_email());  ?&gt;   &lt;img class=&quot;avatar&quot; src=&quot;http://www.gravatar.com/avatar.php?gravatar_id=&lt;?php echo(md5(get_comment_author_email()));?&gt;&amp;rating=PG&amp;size=48&amp;default=&lt;?php echo(urlencode($mybloglog));?&gt;&quot;/&gt; </textarea><br />
</form>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://businessmindhacks.com/post/two-line-avatar-hack-for-wordpress-comments/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

