User Profile Page

Last modified: August 23, 2009 - 15:19

<?php if($user->picture): ?>
<div class="picture">
  <img src="/<?php print $user->picture ?>" />
</div>
<?php endif; ?>
/** If you are using this snippet with Drupal version 4.7.x or 5.x use the
* following line to display a user picture instead
* <?php  if($user->picture) {print theme('user_picture', $user);}?>
*/
<div class="custom_profiles">
  <div class="fields">City: <?php print check_plain($user->profile_city); ?></div>
  <div class="fields">Country: <?php print check_plain($user->profile_country) ;?></div>
  <div class="fields">Postcode: <?php print check_plain($user->profile_postcode); ?></div>
</div>

<?php if($user->profile_postcode) { ?>
<div class="fields">Postcode: <?php print check_plain($user->profile_postcode) ?></div>
<?php }?>

 
 

Drupal is a registered trademark of Dries Buytaert.