<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Topic: First Plugin Attempt</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: First Plugin Attempt</description>
<language>en</language>
<pubDate>Mon, 13 Oct 2008 12:48:13 +0000</pubDate>

<item>
<title>thomasklaiber on "First Plugin Attempt"</title>
<link>http://bbpress.org/forums/topic/first-plugin-attempt#post-3232</link>
<pubDate>Mon, 15 Jan 2007 15:02:56 +0000</pubDate>
<dc:creator>thomasklaiber</dc:creator>
<guid isPermaLink="false">3232@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I think you should use a function like:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
function apply_author_title_image( $r ) {&#60;br /&#62;
	$r .= '&#38;lt;br&#38;gt;Your Image';&#60;br /&#62;
	return $r;&#60;br /&#62;
}&#60;br /&#62;
add_filter('post_author_title', 'apply_author_title_image');&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>actorjiml on "First Plugin Attempt"</title>
<link>http://bbpress.org/forums/topic/first-plugin-attempt#post-3217</link>
<pubDate>Sun, 14 Jan 2007 19:57:14 +0000</pubDate>
<dc:creator>actorjiml</dc:creator>
<guid isPermaLink="false">3217@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I found the error. It was way above the function quoted. (A missing close quote in a switch statement.)&#60;/p&#62;
&#60;p&#62;Now, I'm not sure where to place it in the code. What I want to do is place the graphic under the posters title. (ie. On this page a graphic would be displayed below the member's name and the title like this:&#60;/p&#62;
&#60;p&#62;thomasklaiber&#60;br /&#62;
Member&#60;br /&#62;
{GRAPHIC}
&#60;/p&#62;</description>
</item>
<item>
<title>thomasklaiber on "First Plugin Attempt"</title>
<link>http://bbpress.org/forums/topic/first-plugin-attempt#post-3216</link>
<pubDate>Sun, 14 Jan 2007 19:37:28 +0000</pubDate>
<dc:creator>thomasklaiber</dc:creator>
<guid isPermaLink="false">3216@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hmm ... which of the lines is line 82? I just can't see any error, too. &#60;/p&#62;
&#60;p&#62;I also put it into my Code Analyzer, the only strange thing it said was that you dont't use the function variable &#60;code&#62;$id&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;I have no idea -.-
&#60;/p&#62;</description>
</item>
<item>
<title>actorjiml on "First Plugin Attempt"</title>
<link>http://bbpress.org/forums/topic/first-plugin-attempt#post-3214</link>
<pubDate>Sun, 14 Jan 2007 16:48:22 +0000</pubDate>
<dc:creator>actorjiml</dc:creator>
<guid isPermaLink="false">3214@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I am attempting to write my first plugin. The idea is to display a graphic image for the posters rank. I keep getting this error.&#60;/p&#62;
&#60;p&#62;Parse error: parse error, unexpected '=', expecting '}' in /home/brightan/public_html/bbPress/my-plugins/graphic-display-ranks.php on line 82&#60;/p&#62;
&#60;p&#62;Here is the function that includes line 82.&#60;/p&#62;
&#60;p&#62;&#60;code&#62; function user_rank($id) {&#60;br /&#62;
$special_rank = get_special_rank (get_post_author_id());&#60;br /&#62;
	if ($special_rank&#38;gt;0)&#60;br /&#62;
	{&#60;br /&#62;
	switch ($special_rank) {&#60;br /&#62;
		case 1 :&#60;br /&#62;
		$display_rank=$path_to_rank_images . $image_for_special_rank_1;&#60;br /&#62;
                break;&#60;br /&#62;
		case 2 :&#60;br /&#62;
		$display_rank=$path_to_rank_images . $image_for_special_rank_2;&#60;br /&#62;
                break;&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;br /&#62;
	else&#60;br /&#62;
	{&#60;br /&#62;
	$rank_count=get_post_count(get_post_author_id());&#60;br /&#62;
	for ($i=1;$i&#38;lt;$num_ranks;$i++)&#60;br /&#62;
		{&#60;br /&#62;
		if ($rank_count&#38;lt;$rank_max[$i])&#60;br /&#62;
			{$display_rank=$path_to_rank_images . $rank_img[$i];&#60;br /&#62;
			}&#60;br /&#62;
			else&#60;br /&#62;
			{$display_rank=&#38;quot;&#38;quot;;}&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;br /&#62;
return $display_rank;&#60;br /&#62;
} &#60;/code&#62;&#60;/p&#62;
&#60;p&#62;What am I not seeing?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
