I am wondering how I would be able to call the profile picture to another area on the site. What is the function for the user picture under the profile tab? I want to be able to include it on the sidebar for the user when they login above their name.

Comments

vm’s picture

in the themes tpl.php files it is called:

 <?php print $picture ?>

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

michelle’s picture

theme('user_picture',$account);

I'm fairly sure it's the actual user object that's passed and not just the UID but this is off the top of my head so I could be wrong.

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

adiz’s picture

worked perfectly michelle... I added the quick print function viola!
thanks

--
Adiz

adiz’s picture

There is a new issue regarding this. When a user uploads a new photo that is not the default, it doesn't seem to pull it correctly to the area or, at all. The new image upload is working because on the account page you can view their newly uploaded photo, but not on the side bar as I wanted. Not sure what to do.

--
Adiz