<?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 for Justin W. Hall</title> <atom:link href="http://www.justinwhall.com/comments/feed/" rel="self" type="application/rss+xml" /><link>http://www.justinwhall.com</link> <description>Wordpress Web Designer &#124; WordPress Web Development</description> <lastBuildDate>Sun, 05 Feb 2012 20:36:41 +0000</lastBuildDate> <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>Comment on Custom buddypress avatars by steve</title><link>http://www.justinwhall.com/custom-buddypress-avatars/#comment-3818</link> <dc:creator>steve</dc:creator> <pubDate>Sun, 05 Feb 2012 20:36:41 +0000</pubDate> <guid
isPermaLink="false">http://justinwhall.com/?p=350#comment-3818</guid> <description>I think you should sticky this code for others.
cheers
Steve</description> <content:encoded><![CDATA[<p>I think you should sticky this code for others.<br
/> cheers<br
/> Steve</p> ]]></content:encoded> </item> <item><title>Comment on Custom buddypress avatars by Justin W. Hall</title><link>http://www.justinwhall.com/custom-buddypress-avatars/#comment-3816</link> <dc:creator>Justin W. Hall</dc:creator> <pubDate>Sun, 05 Feb 2012 17:18:47 +0000</pubDate> <guid
isPermaLink="false">http://justinwhall.com/?p=350#comment-3816</guid> <description>I was fairly certain that would happen. There would have to be a preference  stored in the database for each user in order for the avatar to stay with them.
Could be done with some work, bot sure it really adds much as you can use as many default avatars as you&#039;d like this way.
Anyway, glad I could help.</description> <content:encoded><![CDATA[<p>I was fairly certain that would happen. There would have to be a preference  stored in the database for each user in order for the avatar to stay with them.</p><p>Could be done with some work, bot sure it really adds much as you can use as many default avatars as you&#8217;d like this way.</p><p>Anyway, glad I could help.</p> ]]></content:encoded> </item> <item><title>Comment on Custom buddypress avatars by steve</title><link>http://www.justinwhall.com/custom-buddypress-avatars/#comment-3815</link> <dc:creator>steve</dc:creator> <pubDate>Sun, 05 Feb 2012 17:10:18 +0000</pubDate> <guid
isPermaLink="false">http://justinwhall.com/?p=350#comment-3815</guid> <description>It works now. The avatars do change when the page is refreshed.Not a big deal i guess. If people don&#039;t want to add a personal avatar than so be it.
I just thought it made the site look more active with different random avatars.
thanks</description> <content:encoded><![CDATA[<p>It works now. The avatars do change when the page is refreshed.Not a big deal i guess. If people don&#8217;t want to add a personal avatar than so be it.</p><p>I just thought it made the site look more active with different random avatars.<br
/> thanks</p> ]]></content:encoded> </item> <item><title>Comment on Custom buddypress avatars by Justin W. Hall</title><link>http://www.justinwhall.com/custom-buddypress-avatars/#comment-3812</link> <dc:creator>Justin W. Hall</dc:creator> <pubDate>Sun, 05 Feb 2012 16:56:14 +0000</pubDate> <guid
isPermaLink="false">http://justinwhall.com/?p=350#comment-3812</guid> <description>The src to the image you posted isn&#039;t local. So, something is up.
Src=http://www.gravatar.com/avatar/
259106c9a5487302e463981844241391?d=images/default_avatar_3.png&amp;s=50
Also, I know i didn&#039;t post it before, but you&#039;ll still need to return the get_stylesheet_directory_uri() function before your image path.
[php]
function myavatar_add_default_avatar( $url ){
$randomNumber = rand(5, 15);
$imgPath =  &#039;/_inc/images/default-grav-&#039; .  $randomNumber . &#039;.png&#039;;
return get_stylesheet_directory_uri() .$imgPath;
}
add_filter( &#039;bp_core_mysteryman_src&#039;, &#039;myavatar_add_default_avatar&#039; );
[/php]</description> <content:encoded><![CDATA[<p>The src to the image you posted isn&#8217;t local. So, something is up.</p><p>Src=http://www.gravatar.com/avatar/<br
/> 259106c9a5487302e463981844241391?d=images/default_avatar_3.png&#038;s=50</p><p>Also, I know i didn&#8217;t post it before, but you&#8217;ll still need to return the get_stylesheet_directory_uri() function before your image path.</p><pre class="brush: php; title: ; notranslate">
function myavatar_add_default_avatar( $url ){
	$randomNumber = rand(5, 15);
	$imgPath =  '/_inc/images/default-grav-' .  $randomNumber . '.png';
return get_stylesheet_directory_uri() .$imgPath;
}
add_filter( 'bp_core_mysteryman_src', 'myavatar_add_default_avatar' );
</pre>]]></content:encoded> </item> <item><title>Comment on Custom buddypress avatars by steve</title><link>http://www.justinwhall.com/custom-buddypress-avatars/#comment-3811</link> <dc:creator>steve</dc:creator> <pubDate>Sun, 05 Feb 2012 16:26:41 +0000</pubDate> <guid
isPermaLink="false">http://justinwhall.com/?p=350#comment-3811</guid> <description>Using local avatars.
[php]
/* custom avatars */
function myavatar_add_default_avatar( $url ){
$randomNumber = rand(1, 3);
$imgPath = &#039;_inc/images/default_grav_&#039; . $randomNumber . &#039;.png&#039;;
return $imgPath;
}
add_filter( &#039;bp_core_mysteryman_src&#039;, &#039;myavatar_add_default_avatar&#039; );
[/php]</description> <content:encoded><![CDATA[<p>Using local avatars.</p><pre class="brush: php; title: ; notranslate">
/* custom avatars */
function myavatar_add_default_avatar( $url ){
$randomNumber = rand(1, 3);
$imgPath = '_inc/images/default_grav_' . $randomNumber . '.png';
return $imgPath;
}
add_filter( 'bp_core_mysteryman_src', 'myavatar_add_default_avatar' );
</pre>]]></content:encoded> </item> </channel> </rss>
