Closed (fixed)
Project:
Advanced Profile Kit
Version:
5.x-1.0-alpha5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2008 at 12:32 UTC
Updated:
16 Dec 2008 at 18:12 UTC
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
Comment #1
michelleThe 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
Comment #2
droople commentedThank you the last one worked, I had turned off pictures for user profile.