<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha" -->
<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>bbPress Support Forums &#187; Topic: HACK: User avatar from WPMU Avatar Plugin</title>
		<link>http://bbpress.org/forums/topic/hack-user-avatar-from-wpmu-avatar-plugin</link>
		<description><![CDATA[bbPress Support Forums &raquo; Topic: HACK: User avatar from WPMU Avatar Plugin]]></description>
		<language>en-US</language>
		<pubDate>Mon, 15 Mar 2010 07:38:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://bbpress.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://bbpress.org/forums/rss/topic/hack-user-avatar-from-wpmu-avatar-plugin" rel="self" type="application/rss+xml" />

		<item>
			<title>Bloggsbe on "HACK: User avatar from WPMU Avatar Plugin"</title>
			<link>http://bbpress.org/forums/topic/hack-user-avatar-from-wpmu-avatar-plugin#post-7804</link>
			<pubDate>Sat, 02 Jun 2007 08:45:49 +0000</pubDate>
			<dc:creator>Bloggsbe</dc:creator>
			<guid isPermaLink="false">7804@http://bbpress.org/forums/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;I've made a plugin to do the same. Makes it easy to show the avatar in posts and profile. It's just to drop one line in e.g. post.php, and the avatars shows up.&#60;/p&#62;
&#60;p&#62;You can check it out -&#38;gt; &#60;a href=&#34;http://bloggs.be/bbpress_avatars.zip&#34;&#62;download&#60;/a&#62;.&#60;br /&#62;
--&#60;br /&#62;
Rune
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Hempsworth on "HACK: User avatar from WPMU Avatar Plugin"</title>
			<link>http://bbpress.org/forums/topic/hack-user-avatar-from-wpmu-avatar-plugin#post-6912</link>
			<pubDate>Sun, 22 Apr 2007 18:27:18 +0000</pubDate>
			<dc:creator>Hempsworth</dc:creator>
			<guid isPermaLink="false">6912@http://bbpress.org/forums/</guid>
			<description>&#60;p&#62;Awesome, thanks for this!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nolageek on "HACK: User avatar from WPMU Avatar Plugin"</title>
			<link>http://bbpress.org/forums/topic/hack-user-avatar-from-wpmu-avatar-plugin#post-6580</link>
			<pubDate>Tue, 10 Apr 2007 00:25:41 +0000</pubDate>
			<dc:creator>nolageek</dc:creator>
			<guid isPermaLink="false">6580@http://bbpress.org/forums/</guid>
			<description>&#60;p&#62;oh neat! :) You're very welcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>suleiman on "HACK: User avatar from WPMU Avatar Plugin"</title>
			<link>http://bbpress.org/forums/topic/hack-user-avatar-from-wpmu-avatar-plugin#post-6571</link>
			<pubDate>Mon, 09 Apr 2007 15:54:12 +0000</pubDate>
			<dc:creator>suleiman</dc:creator>
			<guid isPermaLink="false">6571@http://bbpress.org/forums/</guid>
			<description>&#60;p&#62;thanks for the hack vincent, I'm glad to see you got it integrated into bbpress. I'm using your hack myself :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nolageek on "HACK: User avatar from WPMU Avatar Plugin"</title>
			<link>http://bbpress.org/forums/topic/hack-user-avatar-from-wpmu-avatar-plugin#post-6526</link>
			<pubDate>Sun, 08 Apr 2007 09:48:04 +0000</pubDate>
			<dc:creator>nolageek</dc:creator>
			<guid isPermaLink="false">6526@http://bbpress.org/forums/</guid>
			<description>&#60;p&#62;If anyone is using &#60;a href=&#34;http://mu.wordpress.org/forums/topic.php?id=3858&#38;#38;replies=46&#34;&#62;' Avatar plugin&#60;/a&#62;suleiman, here's a hack I use to show the WPMU's avatar in BBPress:&#60;/p&#62;
&#60;p&#62;In post.php, after the &#60;code&#62;&#38;lt;small&#38;gt;&#38;lt;?php post_author_title(); ?&#38;gt;&#38;lt;/small&#38;gt;&#60;/code&#62; bit I use the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$userid = get_post_author_id();
$wp_avatar = &#38;#39;/full/path/to/public_html/wp-content/avatars/&#38;#39; .$userid. &#38;#39;.jpg&#38;#39;;
$wp_avatarURL = &#38;#39;/wp-content/avatars/&#38;#39; .$userid. &#38;#39;.jpg&#38;#39;;

if (file_exists($wp_avatar)) {
echo &#38;#39;&#38;lt;img class=&#38;quot;avatar&#38;quot; src=&#38;quot;&#38;#39;. $wp_avatarURL.&#38;#39;&#38;quot; /&#38;gt;&#38;#39;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Probably not the most elegant, but it works:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://blognola.org/forums&#34; rel=&#34;nofollow&#34;&#62;http://blognola.org/forums&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Vincent
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
