I tried to follow the instructions for overriding the default user profile layout with your own.
I uploaded these files to my theme folder:
template.php
<?php
/**
* Catch the theme_item_list function, and redirect through the template api
*/
function phptemplate_user_profile($user, $fields = array()) {
// Pass to phptemplate, including translating the parameters to an associative array. The element names are the names that the variables
// will be assigned within your template.
return _phptemplate_callback('user_profile', array('user' => $user, 'fields' => $fields));
}
?>
user_profile.tlp.php
<div class="custom_profiles">
<div class="fields">City: <?php print $user->profile_city ?></div>
<div class="fields">Country: <?php print $user->profile_country ?></div>
<div class="fields">POstcode: <?php print $user->profile_postcode ?></div>
</div>
My profile pages are now empty. There's a helpful line in the source code that says:
Does anyone know how to fix this? Where did I go wrong? What am I missing?
I know there are several threads about this, but I can't puzzle it together. They only add to my confusion