Or better yet, use the following code, which will also work in case you use the private file system:<br>$img_tag = '<img src="' . file_create_url($user->picture) . '"
/>';<br><br><br><div class="gmail_quote">2009/8/17 Seth Freach <span dir="ltr"><<a href="mailto:sfreach@gmail.com">sfreach@gmail.com</a>></span><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're looking for:<br>
<br>
<?php<br>
global $user;<br>
$img_tag = '<img src="' . base_path() . $user->picture . '"
/>';<br>
?><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'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 width="90%" size="4">
--
[ 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>