I am themeing my node-uprofile.tpl.php.

However I cannot seem to get how to print the user picture. I have tried all sorts of code, to no avail.

<?php  if($account->picture) {print theme('user_picture', $account);}?>
<?php
print $node->user->picture
?>
<?php if($account->picture): ?>
<div class="picture">
<img src="/<?php print $account->picture ?>">
</div>
<?php endif; ?>
 <?php print $picture ?>

Thank you

Comments

michelle’s picture

Status: Active » Fixed

The last one should work, assuming you've turned on displaying user pictures in posts in your theme. The first one will work if the $account variable is defined so check that you have that.

This really has nothing to do with APK. If neither of those helped, please make a forum post. You'll get a wider range of people able to help you.

Michelle

droople’s picture

Thank you the last one worked, I had turned off pictures for user profile.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.