Thanks Seth, I&#39;ll try this tomorrow and let you know if it works.<br><br>Cheers<br>Alex<br><br><div class="gmail_quote">On Mon, Aug 17, 2009 at 10:02 PM, Seth Freach <span dir="ltr">&lt;<a href="mailto:sfreach@gmail.com">sfreach@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  

<div bgcolor="#ffffff" text="#000000">
Alexander,<br>
Picture location is a field in the $user object.  This will probably
get you what you&#39;re looking for:<br>
<br>
&lt;?php<br>
global $user;<br>
$img_tag = &#39;&lt;img src=&quot;&#39; . base_path() . $user-&gt;picture . &#39;&quot;
/&gt;&#39;;<br>
?&gt;<br>
<br>
If you need a function to call, you could just wrap the above in a
function that takes a uid parameter and do a user_load on it instead of
using the global $user object.<br>
<br>
-Seth<br>
<br>
Alexander Arul wrote:
<blockquote type="cite"><div><div></div><div class="h5">Hi all, <br>
  <br>
I want to generate the user&#39;s picture path using code. I thought there
might be an API function like <b>function user_image_path($uid)</b>,
but nothing like that so far .. please point me in the right direction,
thanks :)<br>
  <br>
Cheers<br>
Arul<b>  </b><br>
  </div></div><pre><hr size="4" width="90%">
--
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]</pre>
</blockquote>
</div>

<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>