<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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>Kempwire Forums &#187; Topic: How to make comment author link to user profile page?</title>
		<link>http://kempwire.com/bb/topic/how-to-make-comment-author-link-to-user-profile-page</link>
		<description>Just another bbPress community</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Feb 2012 07:44:36 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://kempwire.com/bb/search.php</link>
		</textInput>
		<atom:link href="http://kempwire.com/bb/rss/topic/how-to-make-comment-author-link-to-user-profile-page" rel="self" type="application/rss+xml" />

		<item>
			<title>annaj on "How to make comment author link to user profile page?"</title>
			<link>http://kempwire.com/bb/topic/how-to-make-comment-author-link-to-user-profile-page#post-30</link>
			<pubDate>Sat, 04 Jul 2009 00:50:52 +0000</pubDate>
			<dc:creator>annaj</dc:creator>
			<guid isPermaLink="false">30@http://kempwire.com/bb/</guid>
			<description>&#60;p&#62;Oops, links not showing, but as you might imagine, instead of &#34;user_id&#38;gt;&#34; I am using the full link with the user_id&#38;gt; at the end inside the quotes, and the second echo has the closing anchor tag inside the quotes. You'll see that I have not used all the '\' back-slashes. Not sure whether I was supposed to or not (I'm not a coder), but the code didn't seem to work until I stripped them out. Thanks again Jonathan, I think the ability to link authors' and comment authors' names to their profile pages really enhances your plugin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>annaj on "How to make comment author link to user profile page?"</title>
			<link>http://kempwire.com/bb/topic/how-to-make-comment-author-link-to-user-profile-page#post-29</link>
			<pubDate>Sat, 04 Jul 2009 00:43:22 +0000</pubDate>
			<dc:creator>annaj</dc:creator>
			<guid isPermaLink="false">29@http://kempwire.com/bb/</guid>
			<description>&#60;p&#62;Thanks so much Jonathan. This is the code I used and it's working perfectly:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
if ($comment-&#38;gt;user_id) {&#60;br /&#62;
echo &#34;&#60;a href=&#34;http://www.website.com/folder/community/?uid=$comment-&#34;&#62;user_id&#38;gt;&#34;;&#60;br /&#62;
comment_author();&#60;br /&#62;
echo &#34;&#60;/a&#62;&#34;;&#60;br /&#62;
} else {&#60;br /&#62;
comment_author_link();&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jonathan Kemp on "How to make comment author link to user profile page?"</title>
			<link>http://kempwire.com/bb/topic/how-to-make-comment-author-link-to-user-profile-page#post-28</link>
			<pubDate>Fri, 03 Jul 2009 17:29:32 +0000</pubDate>
			<dc:creator>Jonathan Kemp</dc:creator>
			<guid isPermaLink="false">28@http://kempwire.com/bb/</guid>
			<description>&#60;p&#62;Here is the code again.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php&#60;br /&#62;
			if ($comment-&#38;gt;user_id) {&#60;br /&#62;
				echo &#34;&#38;lt; a href=\&#34;?page_id=88&#38;#38;uid=$comment-&#38;gt;user_id\&#34;&#38;gt;&#34;;&#60;br /&#62;
				comment_author();&#60;br /&#62;
				echo &#34;&#38;lt;/ a&#38;gt;&#34;;&#60;br /&#62;
			} else {&#60;br /&#62;
				comment_author_link();&#60;br /&#62;
			}&#60;br /&#62;
			?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;To make it work, you need to remove the spaces in front of the a tags.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jonathan Kemp on "How to make comment author link to user profile page?"</title>
			<link>http://kempwire.com/bb/topic/how-to-make-comment-author-link-to-user-profile-page#post-27</link>
			<pubDate>Fri, 03 Jul 2009 17:28:51 +0000</pubDate>
			<dc:creator>Jonathan Kemp</dc:creator>
			<guid isPermaLink="false">27@http://kempwire.com/bb/</guid>
			<description>&#60;p&#62;Ok, so it filtered out the links. Where the first echo statement is, you insert the anchor tag the same way you did for blog authors. This is how you insert the user id.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$comment-&#38;gt;user_id&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Where the second echo statement is, you close the anchor tag.&#60;/p&#62;
&#60;p&#62;If your theme is using the new comment function instead of the old comment loop, it is much more complicated.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jonathan Kemp on "How to make comment author link to user profile page?"</title>
			<link>http://kempwire.com/bb/topic/how-to-make-comment-author-link-to-user-profile-page#post-26</link>
			<pubDate>Fri, 03 Jul 2009 17:24:04 +0000</pubDate>
			<dc:creator>Jonathan Kemp</dc:creator>
			<guid isPermaLink="false">26@http://kempwire.com/bb/</guid>
			<description>&#60;p&#62;If your comments.php file uses the old comment loop, you can do it like this. Where the authors name and link is displayed in the comment output, you want to insert this code.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php&#60;br /&#62;
			if ($comment-&#38;gt;user_id) {&#60;br /&#62;
				echo &#34;&#60;a&#62;user_id\&#34;&#38;gt;&#34;;&#60;br /&#62;
				comment_author();&#60;br /&#62;
				echo &#34;&#60;/a&#62;&#34;;&#60;br /&#62;
			} else {&#60;br /&#62;
				comment_author_link();&#60;br /&#62;
			}&#60;br /&#62;
			?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;You need to format the link to fit your url structure for the Users page. The user id should be inserted at the end of the url.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jonathan Kemp on "How to make comment author link to user profile page?"</title>
			<link>http://kempwire.com/bb/topic/how-to-make-comment-author-link-to-user-profile-page#post-25</link>
			<pubDate>Fri, 03 Jul 2009 16:58:20 +0000</pubDate>
			<dc:creator>Jonathan Kemp</dc:creator>
			<guid isPermaLink="false">25@http://kempwire.com/bb/</guid>
			<description>&#60;p&#62;Do you know how your comments.php template is structured? Does it have the old comment loop or is it using the new comment function for 2.7, wp_list_comments?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>annaj on "How to make comment author link to user profile page?"</title>
			<link>http://kempwire.com/bb/topic/how-to-make-comment-author-link-to-user-profile-page#post-24</link>
			<pubDate>Fri, 03 Jul 2009 08:54:03 +0000</pubDate>
			<dc:creator>annaj</dc:creator>
			<guid isPermaLink="false">24@http://kempwire.com/bb/</guid>
			<description>&#60;p&#62;Hi Jonathan, thanks so much for sorting out how to make an author's name link to their Wordpress Users profile page. Now... do you have any idea about how to make a registered comment author's name link to their Wordpress Users profile page? :)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

