<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged random-avatar</title>
<link>https://www.question2answer.org/qa/tag/random-avatar</link>
<description>Powered by Question2Answer</description>
<item>
<title>Is there a possible conflict between Random Avatar and Badges plugin?</title>
<link>https://www.question2answer.org/qa/43768/there-possible-conflict-between-random-avatar-badges-plugin</link>
<description>

&lt;p&gt;It seems that there is a conflict between these two plugins. It happens that when a random avatar is created, an &quot;avatarblobid&quot; is assigned. If, for some reason, the user decides to change his avatar to &quot;NULL&quot;, the following function of the badges plugin checks if there is an &quot;avatarblobid&quot; and the user receives the badge without having actually uploaded the avatar&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;if (qa_opt('avatar_allow_upload') &amp;amp;&amp;amp; isset($useraccount['avatarblobid'])) {
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$badges = array('avatar');
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;qa_badge_award_check($badges, false, $userid);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Is there a simple way to avoid this conflict? Off course, one could add a new column to the users table for instance in the users table indicating whether it is a random avatar or not. However, I think that this a big change. Is it possible to change the test in order to avoid this?&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/43768/there-possible-conflict-between-random-avatar-badges-plugin</guid>
<pubDate>Sat, 14 Feb 2015 05:43:28 +0000</pubDate>
</item>
<item>
<title>[New Free Plugin] RA - Random Avatar</title>
<link>https://www.question2answer.org/qa/39812/new-free-plugin-ra-random-avatar</link>
<description>

&lt;p&gt;This&amp;nbsp;plugin randomly selects an avatar from a directory that contains avatar images and assigns it to new users during registration. This way users start with some &lt;em&gt;setup&lt;/em&gt;&amp;nbsp;already in place. New avatar images can be added to the directory.&lt;/p&gt;

&lt;p&gt;To make it short, just go the GitHub project and download it directly from there. There are also some notes in there that might be handy.&lt;/p&gt;

&lt;p&gt;Features:&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;Images are randomly selected from a directory&lt;/li&gt;

&lt;li&gt;Custom images can be added to the directory&lt;/li&gt;

&lt;li&gt;No need of core hacks or plugin overrides&lt;/li&gt;

&lt;li&gt;Simple installation&lt;/li&gt;&lt;/ul&gt;

&lt;div&gt;You can give it a try downloading it from the&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/pupi1985/q2a-random-avatar&quot;&gt;GitHub project page&lt;/a&gt;.&lt;/div&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/39812/new-free-plugin-ra-random-avatar</guid>
<pubDate>Sat, 18 Oct 2014 16:58:23 +0000</pubDate>
</item>
</channel>
</rss>