<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2539" -->
<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"
		>
	<channel>
		<title>WordPress.com Forums &#187; Topic: Add customized default avatars... php function won&#039;t work</title>
		<link>http://en.forums.wordpress.com/topic/add-customized-default-avatars-php-function-wont-work</link>
		<description>WordPress.com Forums &#187; Topic: Add customized default avatars... php function won&#039;t work</description>
		<language>en</language>
		<pubDate>Mon, 20 May 2013 14:25:56 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2539</generator>
				<atom:link href="http://en.forums.wordpress.com/rss/topic/add-customized-default-avatars-php-function-wont-work" rel="self" type="application/rss+xml" />

		<item>
			<title>supportbot on "Add customized default avatars... php function won&#039;t work"</title>
			<link>http://en.forums.wordpress.com/topic/add-customized-default-avatars-php-function-wont-work#post-1071001</link>
			<pubDate>Sat, 17 Nov 2012 22:08:06 +0000</pubDate>
			<dc:creator>supportbot</dc:creator>
			<guid isPermaLink="false">1071001@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>You did not specify a blog address or reason for posting when you created this topic.</p>
<p>This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the <a href="http://wordpress.org/support/">WordPress.org forums</a>.</p>
<p>If you don't understand the difference between WordPress.com and WordPress.org, you may find <a href="http://support.wordpress.com/com-vs-org/">this information</a> helpful.</p>
<p>If you forgot to include a link to your blog, you can reply and include it below.  It'll help people to answer your question.</p>
<p>This is an automated message.
</p>
]]></description>
					</item>
		<item>
			<title>istef8 on "Add customized default avatars... php function won&#039;t work"</title>
			<link>http://en.forums.wordpress.com/topic/add-customized-default-avatars-php-function-wont-work#post-1071000</link>
			<pubDate>Sat, 17 Nov 2012 22:08:05 +0000</pubDate>
			<dc:creator>istef8</dc:creator>
			<guid isPermaLink="false">1071000@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Hi, I've looked online and found a way to add default avatar into wordpress. I've followed what was described and have been trying for a while now, but nothing seems to work, so I'm asking for a little help.</p>
<p>For info, I'm using the catch-box theme.<br />
So here's what I did :</p>
<p>1) created a 96x96 pixels jpg file<br />
2) saved the image in 'wp-content/themes/catch-box/images'<br />
3) opened functions.php (in catch-box folder)<br />
4) pasted the code I found, somewhere in the file :</p>
<p>add_filter( 'avatar_defaults', 'newgravatar' );</p>
<p>function newgravatar ($avatar_defaults) {<br />
 $myavatar = get_bloginfo('template_directory') . '/images/my_image.jpg';<br />
 $avatar_defaults[$myavatar] = "My Image";<br />
 return $avatar_defaults;<br />
}</p>
<p>And nothing ! It didn't work.<br />
----</p>
<p>I also tried the "get_stylesheet_directory_uri() " instead of get_bloginfo.</p>
<p>I put the php tag (or I don't know what it's called) before and after.<br />
Also tried without...<br />
And still nothing.</p>
<p>&#60;?php<br />
THE CODE<br />
?&#62;</p>
<p>So, my questions are:</p>
<p>1) Is the code correct? What else could I try?<br />
2) Where exactly in functions.php should I save these lines of code<br />
(without messing things up ; ))<br />
3) If I repeat this code, could I add a 2nd new default avatar?</p>
<p>4) My blank avatar in settings is now showing a "question mark" in a blue square (?) / Before it was a "white square"..<br />
Why is that? And could it be the origin of my other problem?</p>
<p>THANK YOU very very much for your help..<br />
I'm usually very motivated to find things on my own.. and I eventually succeed ! But this time, I'm stuck.</p>
<p>Cheers,<br />
Stephanie
</p>
]]></description>
					</item>

	</channel>
</rss>
