Hello!

I am trying to display profile picture in the page.tpl.php file.

Right now I have at the very top:

<?php
  global $user;
  profile_load_profile($user);
?>

Then I have where I want picture to display this code:

<?php if ($profile): print $profile['user_picture']; endif; ?>

What am I doing wrong? Thanks!

Comments

Anonymous’s picture

<?php
  global $user;
  $profile = profile_load_profile($user);
?>

Doug Gough
ImageX Media

Anonymous’s picture