<?xml version="1.0"?><!-- 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 Showcase Tag: delete</title>
<link>http://bbshowcase.org/forums/</link>
<description>bbPress Showcase Tag: delete</description>
<language>en</language>
<pubDate>Sat, 11 Feb 2012 05:28:25 +0000</pubDate>

<item>
<title>_ck_ on "Avatar Upload (0.8.3) - Delete Avatar BUG."</title>
<link>http://bbshowcase.org/forums/topic/avatar-upload-083-delete-avatar-bug#post-1015</link>
<pubDate>Fri, 06 Feb 2009 12:55:41 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">1015@http://bbshowcase.org/forums/</guid>
<description>&#60;p&#62;I just gave you the very function it says is missing.&#60;br /&#62;
Did you replace the function in your plugin copy?
&#60;/p&#62;</description>
</item>
<item>
<title>Perry on "Avatar Upload (0.8.3) - Delete Avatar BUG."</title>
<link>http://bbshowcase.org/forums/topic/avatar-upload-083-delete-avatar-bug#post-1014</link>
<pubDate>Fri, 06 Feb 2009 11:59:49 +0000</pubDate>
<dc:creator>Perry</dc:creator>
<guid isPermaLink="false">1014@http://bbshowcase.org/forums/</guid>
<description>&#60;p&#62;Okay now I get &#60;code&#62;Fatal error: Call to undefined function avatarupload_display() in /home/runece00/public_html/forums/bb-templates/kakumei/profile.php on line 7&#60;/code&#62; When I try to view the profile page...
&#60;/p&#62;</description>
</item>
<item>
<title>Perry on "Avatar Upload (0.8.3) - Delete Avatar BUG."</title>
<link>http://bbshowcase.org/forums/topic/avatar-upload-083-delete-avatar-bug#post-1013</link>
<pubDate>Fri, 06 Feb 2009 11:56:54 +0000</pubDate>
<dc:creator>Perry</dc:creator>
<guid isPermaLink="false">1013@http://bbshowcase.org/forums/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;&#60;cite&#62;Perry - 4 minutes ago &#60;a href=&#34;&#38;quot;/forums/topic/avatar-upload-083-delete-avatar-bug#post-1012&#38;quot;&#34;&#62;&#38;nbsp;&#38;raquo;&#38;nbsp;&#60;/a&#62;&#60;/cite&#62;&#60;br /&#62;
My &#38;quot;use_default&#38;quot; is set to 1 near the top and when I try your code I get PHP error &#60;code&#62;Parse error: syntax error, unexpected ';' in /home/runece00/public_html/forums/bb-plugins/avatar/bb-avatar-upload.php on line 84&#60;/code&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Ok, Ignore that I wasn't looking at the code  &lt;img src="http://bbshowcase.org/forums/my-plugins/bb-smilies/default/icon_biggrin.gif" title=":D" class="bb_smilies" /&gt;  - Let me try again.
&#60;/p&#62;</description>
</item>
<item>
<title>Perry on "Avatar Upload (0.8.3) - Delete Avatar BUG."</title>
<link>http://bbshowcase.org/forums/topic/avatar-upload-083-delete-avatar-bug#post-1012</link>
<pubDate>Fri, 06 Feb 2009 11:52:25 +0000</pubDate>
<dc:creator>Perry</dc:creator>
<guid isPermaLink="false">1012@http://bbshowcase.org/forums/</guid>
<description>&#60;p&#62;My &#38;quot;use_default&#38;quot; is set to 1 near the top and when I try your code I get PHP error &#60;code&#62;Parse error: syntax error, unexpected ';' in /home/runece00/public_html/forums/bb-plugins/avatar/bb-avatar-upload.php on line 84&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>_ck_ on "Avatar Upload (0.8.3) - Delete Avatar BUG."</title>
<link>http://bbshowcase.org/forums/topic/avatar-upload-083-delete-avatar-bug#post-1011</link>
<pubDate>Fri, 06 Feb 2009 01:06:29 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">1011@http://bbshowcase.org/forums/</guid>
<description>&#60;p&#62;I suspect the code to display the default when nothing else is saved/specified is probably in the display portion of the code.&#60;/p&#62;
&#60;p&#62;make sure your 'use_default' is set to 1 near the top&#60;br /&#62;
and then compare yours to this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// Display the avatar image
function avatarupload_display($id, $force_db=0, $class=&#38;#39;avatar&#38;#39;)
{
	if ($a = avatarupload_get_avatar($id,1,$force_db))
	{	if ($a[1] &#38;amp;amp;&#38;amp;amp; $a[2]) {$dimensions=&#38;amp;quot;width=&#38;#39;$a[1]&#38;#39; height=&#38;#39;$a[2]&#38;#39;&#38;amp;quot;;}
		echo &#38;amp;quot;&#38;lt;img src=&#38;#39;$a[0]&#38;#39; $dimensions alt=&#38;#39;$a[4]&#38;#39; class=&#38;#39;$class&#38;#39; /&#38;gt;&#38;amp;quot;;
	} else {
		$config = new avatarupload_config();

		if ($config-&#38;gt;default_avatar[&#38;#39;use_default&#38;#39;] == 1)
		{
			// Use a &#38;amp;quot;genric&#38;amp;quot; default avatar
			echo &#38;#39;&#38;lt;img src=&#38;amp;quot;&#38;#39;.$config-&#38;gt;default_avatar[&#38;#39;uri&#38;#39;].&#38;#39;&#38;amp;quot; width=&#38;amp;quot;&#38;#39;.$config-&#38;gt;default_avatar[&#38;#39;width&#38;#39;]
			.&#38;#39;&#38;amp;quot; height=&#38;amp;quot;&#38;#39;.$config-&#38;gt;default_avatar[&#38;#39;height&#38;#39;].&#38;#39;&#38;amp;quot; alt=&#38;amp;quot;&#38;#39;.$config-&#38;gt;default_avatar[&#38;#39;alt&#38;#39;].&#38;#39;&#38;amp;quot; class=&#38;amp;quot;&#38;#39;.$class.&#38;#39;&#38;amp;quot; /&#38;gt;&#38;#39;;
		} else {
			// Or use Identicons instead.  New users will have an identicon automatically
			// created when they join, but this is for existing users with no avatar.

			felapplyidenticon($id); // create identicon

			// now fetch it from the database
			if ($a = avatarupload_get_avatar($id,1,$force_db))
			{	if ($a[1] &#38;amp;amp;&#38;amp;amp; $a[2]) {$dimensions=&#38;amp;quot;width=&#38;#39;$a[1]&#38;#39; height=&#38;#39;$a[2]&#38;#39;&#38;amp;quot;;}
				echo &#38;amp;quot;&#38;lt;img src=&#38;#39;$a[0]&#38;#39; $dimensions alt=&#38;#39;$a[4]&#38;#39; class=&#38;#39;$class&#38;#39; /&#38;gt;&#38;amp;quot;;
			}
		}
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Perry on "Avatar Upload (0.8.3) - Delete Avatar BUG."</title>
<link>http://bbshowcase.org/forums/topic/avatar-upload-083-delete-avatar-bug#post-1010</link>
<pubDate>Fri, 06 Feb 2009 00:42:30 +0000</pubDate>
<dc:creator>Perry</dc:creator>
<guid isPermaLink="false">1010@http://bbshowcase.org/forums/</guid>
<description>&#60;p&#62;Hello _ck_&#60;/p&#62;
&#60;p&#62;You posted an extention to the Avatar Upload (0.8.3) plugin to allow users to delete their avatars. However, the code you posted does not set the avatar to the default when deleted. I tested your avatar system on this bbpress and it does, please can you provide me with the code that will do this.&#60;/p&#62;
&#60;p&#62;Link to your post: &#60;a href=&#34;http://bbpress.org/plugins/topic/avatar-upload/page/5/#post-1093&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/plugins/topic/avatar-upload/page/5/#post-1093&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Perry
&#60;/p&#62;</description>
</item>

</channel>
</rss>

