title: how to make a profile picture plugin for joomla?
body: <p>I have made a website with joomla. Now I want users to add their own profile picture, so I use a plugin from mosets but it shows only the picture's name. I tried to modify that plugin but I could't. Here is my code:</p>
  
  <pre><code>jimport('joomla.image.image');
  jimport('mosets.profilepicture.profilepicture');
  $user = JFactory::getUser();
  $profilepicture = new ProfilePicture($user-&gt;get('id'));
  
  if( $profilepicture-&gt;exists() )
  {
      echo '&lt;img src="'.$profilepicture-&gt;getURL().'" alt="'.$user-&gt;get('name').'" /&gt;';
  }
  </code></pre>
  
  <p>using this code i can show profile picture but it shows a joomla error message spce.</p>