Hi,

i'm looking for a function that returns the path (path only!) of the users profile picture by just giving the uid. does anyone have an idea how this could work?

best,
Frank

Comments

vinayras’s picture

$uid = "your user id";
$users = db_query("SELECT * FROM {users} WHERE uid=$uid");

$user = db_fetch_object($users);
echo $user->picture;

This will print picture path.

Hope this helps.

Vinay Yadav
PHP / Drupal Specialist
http://www.vinayras.com

fhelmschrott’s picture

Thanks Vinay, does this respect caching stuff and things? i'll give it a try.

sandeepyadav’s picture

Hello Vinay ji You are specialist in drupal good,
I have problem related to drupal gmap plz solve it if possible.
I want to draw user path on