<?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>Premium BuddyPress Themes and Support - BuddyDress &#187; buddypress avatars</title>
	<atom:link href="http://buddydress.com/tag/buddypress-avatars/feed/" rel="self" type="application/rss+xml" />
	<link>http://buddydress.com</link>
	<description>Premium BuddyPress Themes</description>
	<lastBuildDate>Fri, 25 Feb 2011 15:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Showing profile&#8217;s avatar and link in comments</title>
		<link>http://buddydress.com/2009/03/showing-profiles-avatar-and-link-in-comments/</link>
		<comments>http://buddydress.com/2009/03/showing-profiles-avatar-and-link-in-comments/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 11:47:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Senza categoria]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[buddypress avatars]]></category>
		<category><![CDATA[comments]]></category>

		<guid isPermaLink="false">http://www.buddydress.com/?p=248</guid>
		<description><![CDATA[Today i&#8217;ll show a little trick to better integrate your WordPressMU blogs with your BuddyPress. It is really easy, but could be useful for buddypressers that are no confident with php and html. Are you actually using Gravatar for showing user avatars in the comments of your blogs? This could be not a great affair, because [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-258" title="avatar1" src="http://www.buddydress.com/wp-content/uploads/2009/03/avatar1.gif" alt="avatar1" width="300" height="198" />Today i&#8217;ll show a little trick to better integrate your WordPressMU blogs with your BuddyPress. It is really easy, but could be useful for buddypressers that are no confident with php and html.</p>
<p>Are you actually using <strong>Gravatar </strong>for showing user avatars in the comments of your blogs? This could be not a great affair, because your comment avatars could result different from your registered user profile avatars.</p>
<p>If you want to show in the comments the avatars that users have uploaded in your buddypress profile, first of all you should <strong>disable Gravatar plugin</strong>. Then open the <em>comments.php</em> page of your theme (not buddypress theme, but your blog&#8217;s theme) and add the following line where you want to show your avatars:</p>
<p><em>&lt;?php bp_comment_author_avatar() ?&gt;</em></p>
<p>I&#8217;ve inserted this line just after:</p>
<p><em>&lt;li class=&#8221;&lt;?php echo $oddcomment; ?&gt;&#8221; id=&#8221;comment-&lt;?php comment_ID() ?&gt;&#8221;&gt;</em></p>
<p>and before of :</p>
<p><em>&lt;cite&gt;&lt;a href=&#8221;&lt;?php comment_author_url() ?&gt;&#8221;&gt;&lt;?php comment_author_link() ?&gt;&lt;/a&gt;&lt;/cite&gt; says:</em></p>
<p>Obviously not all the comment.php pages are the same cause themes are different, but they are similar and so watching your code you should easily understand where to insert the line. They go in the foreach loop, just after the &#8221;&lt;li&gt;&#8221; tag opening.</p>
<p>In your original code, the commenters name are linked to the website url that they have inserted in WordPressMU. If you want to link them to their Buddy Press profile in your site, just change this:</p>
<p><em> &lt;cite&gt;&lt;a href=&#8221;&lt;?php comment_author_url() ?&gt;&#8221;&gt;&lt;?php comment_author_link() ?&gt;&lt;/a&gt;&lt;/cite&gt; says:</em></p>
<p>into this:</p>
<p><em>&lt;?php comment_author_link() ?&gt; &lt;?php _e( &#8216;says:&#8217;, &#8216;buddypress&#8217; ) ?&gt;</em></p>
<p>Now the commenter&#8217;s name will be linked to his buddypress profile page. Not registered usernames will be linked to the website they&#8217;ve inserted in the comment url field, and their avatar will be the classical Mistery Man.</p>
<p>Ps: you can recognize AndyPeatling (the Buddy Press creator) in the post image: this man is everywhere!</p>
]]></content:encoded>
			<wfw:commentRss>http://buddydress.com/2009/03/showing-profiles-avatar-and-link-in-comments/feed/</wfw:commentRss>
		<slash:comments>996</slash:comments>
		</item>
	</channel>
</rss>

