<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Adding Custom Default Gravatars to Your Blog</title>
	<atom:link href="http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/</link>
	<description></description>
	<lastBuildDate>Sat, 21 Nov 2009 00:24:19 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Tsh</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-5792</link>
		<dc:creator>Tsh</dc:creator>
		<pubDate>Tue, 08 Sep 2009 19:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-5792</guid>
		<description>Thanks for this tutorial!  When I put the code in my custom_functions.php, I get this message where I should normally select my image as the custom default:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, &#039;fb_addgravatar&#039; was given in /home/simplem4/public_html/wp-includes/plugin.php on line 166

Warning: Invalid argument supplied for foreach() in /home/simplem4/public_html/wp-admin/options-discussion.php on line 202

Any ideas why?  Thanks so much in advance.</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial!  When I put the code in my custom_functions.php, I get this message where I should normally select my image as the custom default:</p>
<p>Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, &#8216;fb_addgravatar&#8217; was given in /home/simplem4/public_html/wp-includes/plugin.php on line 166</p>
<p>Warning: Invalid argument supplied for foreach() in /home/simplem4/public_html/wp-admin/options-discussion.php on line 202</p>
<p>Any ideas why?  Thanks so much in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Cheuvront</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-4590</link>
		<dc:creator>Matt Cheuvront</dc:creator>
		<pubDate>Thu, 23 Jul 2009 21:59:46 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-4590</guid>
		<description>Thanks for the awesome tutorial Lisa. Much appreciated!</description>
		<content:encoded><![CDATA[<p>Thanks for the awesome tutorial Lisa. Much appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rees</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-4457</link>
		<dc:creator>Rees</dc:creator>
		<pubDate>Wed, 22 Jul 2009 02:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-4457</guid>
		<description>Okay, so I retyped all of the quotes to make them un-smart quotes, but them in code tags, and yet they turned &#039;smart&#039; ... that&#039;s too smart for me.</description>
		<content:encoded><![CDATA[<p>Okay, so I retyped all of the quotes to make them un-smart quotes, but them in code tags, and yet they turned &#8217;smart&#8217; &#8230; that&#8217;s too smart for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rees</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-4456</link>
		<dc:creator>Rees</dc:creator>
		<pubDate>Wed, 22 Jul 2009 02:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-4456</guid>
		<description>Heck, even in the code I entered in my last comment above you&#039;ll see that smart quotes snuck in there!  I&#039;ll try one more time:

&lt;code&gt;/* Add a Custom Default Gravatar */
if ( !function_exists(&#039;custom_gravatar&#039;) ) {
function custom_gravatar( $avatar_defaults ) {
$myavatar = get_bloginfo(&#039;template_directory&#039;) . &#039;/custom/images/visitor-avatar.gif&#039;;
$avatar_defaults[$myavatar] = &#039;visitor&#039;;

return $avatar_defaults;
}
add_filter( &#039;avatar_defaults&#039;, &#039;custom_gravatar&#039; );
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Heck, even in the code I entered in my last comment above you&#8217;ll see that smart quotes snuck in there!  I&#8217;ll try one more time:</p>
<p><code>/* Add a Custom Default Gravatar */<br />
if ( !function_exists('custom_gravatar') ) {<br />
function custom_gravatar( $avatar_defaults ) {<br />
$myavatar = get_bloginfo('template_directory') . '/custom/images/visitor-avatar.gif';<br />
$avatar_defaults[$myavatar] = 'visitor';</p>
<p>return $avatar_defaults;<br />
}<br />
add_filter( 'avatar_defaults', 'custom_gravatar' );<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rees</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-4455</link>
		<dc:creator>Rees</dc:creator>
		<pubDate>Wed, 22 Jul 2009 02:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-4455</guid>
		<description>Ah, found what the issue was for me.  The code above had smart quotes and my text editor didn&#039;t strip that out for some reason.  Also, I had to change &#039;fb_addgravatar&#039;  to &#039;custom_gravatar&#039; since that appears to be the function being declared in the first part of the code.

&lt;code&gt;
/* Add a Custom Default Gravatar */ 
if ( !function_exists(&#039;custom_gravatar&#039;) ) { 
function custom_gravatar( $avatar_defaults ) { 
$myavatar = get_bloginfo(&#039;template_directory&#039;) . &#039;/custom/images/visitor-avatar.gif&#039;; 
$avatar_defaults[$myavatar] = &#039;visitor&#039;; 

return $avatar_defaults; 
} 
add_filter( &#039;avatar_defaults&#039;, &#039;custom_gravatar&#039; ); 
}  
&lt;/code&gt;

Now it works great! I was able to find my cute little custom avatar in WordPress Settings - Discussion - Avatars - Default Avatars.  Thanks!</description>
		<content:encoded><![CDATA[<p>Ah, found what the issue was for me.  The code above had smart quotes and my text editor didn&#8217;t strip that out for some reason.  Also, I had to change &#8216;fb_addgravatar&#8217;  to &#8216;custom_gravatar&#8217; since that appears to be the function being declared in the first part of the code.</p>
<p><code><br />
/* Add a Custom Default Gravatar */<br />
if ( !function_exists('custom_gravatar') ) {<br />
function custom_gravatar( $avatar_defaults ) {<br />
$myavatar = get_bloginfo('template_directory') . '/custom/images/visitor-avatar.gif';<br />
$avatar_defaults[$myavatar] = 'visitor'; </p>
<p>return $avatar_defaults;<br />
}<br />
add_filter( 'avatar_defaults', 'custom_gravatar' );<br />
}<br />
</code></p>
<p>Now it works great! I was able to find my cute little custom avatar in WordPress Settings &#8211; Discussion &#8211; Avatars &#8211; Default Avatars.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rees</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-4445</link>
		<dc:creator>Rees</dc:creator>
		<pubDate>Tue, 21 Jul 2009 22:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-4445</guid>
		<description>Hey Rae, I&#039;ve picked up quite a few tips from you over on sugarrae.com. This looks like a great one, too!
However, I&#039;m a bit befuddled as to why it isn&#039;t working for me.  I&#039;ve copied in your code into my custom_functions.php file, changing the image name (visitor-avatar.gif) and the name I&#039;ve given it for the Discussion menu (visitor) and yet I don&#039;t see it there in WP.  Any ideas?  (Site: thegreenthree.com)
Thanks!</description>
		<content:encoded><![CDATA[<p>Hey Rae, I&#8217;ve picked up quite a few tips from you over on sugarrae.com. This looks like a great one, too!<br />
However, I&#8217;m a bit befuddled as to why it isn&#8217;t working for me.  I&#8217;ve copied in your code into my custom_functions.php file, changing the image name (visitor-avatar.gif) and the name I&#8217;ve given it for the Discussion menu (visitor) and yet I don&#8217;t see it there in WP.  Any ideas?  (Site: thegreenthree.com)<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj Alexander</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-4000</link>
		<dc:creator>Raj Alexander</dc:creator>
		<pubDate>Tue, 07 Jul 2009 00:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-4000</guid>
		<description>Oh, the coding seemed to be confusing to me..
I am not so good in dealing with codes. 
I am always upset when I see coding works....
But Anyways thanks for sharing the tutorial...</description>
		<content:encoded><![CDATA[<p>Oh, the coding seemed to be confusing to me..<br />
I am not so good in dealing with codes.<br />
I am always upset when I see coding works&#8230;.<br />
But Anyways thanks for sharing the tutorial&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Kent</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-3945</link>
		<dc:creator>Rich Kent</dc:creator>
		<pubDate>Sun, 05 Jul 2009 20:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-3945</guid>
		<description>Thanks for the tutorial! I&#039;ll have to use it on my site.</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial! I&#8217;ll have to use it on my site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Reid</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-3739</link>
		<dc:creator>Dave Reid</dc:creator>
		<pubDate>Thu, 02 Jul 2009 17:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-3739</guid>
		<description>@jlbraaten: Gravatars for Drupal is really easy. http://drupal.org/project/gravatar</description>
		<content:encoded><![CDATA[<p>@jlbraaten: Gravatars for Drupal is really easy. <a href="http://drupal.org/project/gravatar" rel="nofollow">http://drupal.org/project/gravatar</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HotSauceDaily</title>
		<link>http://outspokenmedia.com/branding/adding-custom-default-gravatars-to-your-blog/#comment-3597</link>
		<dc:creator>HotSauceDaily</dc:creator>
		<pubDate>Tue, 30 Jun 2009 20:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://outspokenmedia.com/?p=2407#comment-3597</guid>
		<description>Awesome Tut.
How would you go about creating a set or a few generic Gravatars to be selected at random, like Identicon (Generated) and others&#039; that have a few in their set? Or is that beyond the scope of this method?</description>
		<content:encoded><![CDATA[<p>Awesome Tut.<br />
How would you go about creating a set or a few generic Gravatars to be selected at random, like Identicon (Generated) and others&#8217; that have a few in their set? Or is that beyond the scope of this method?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
