I was referring to this snippet here (http://drupal.org/node/26478) and even looked on the thread for help and didn't find my problem.
I have phptemplate installed and I put this in my active theme folder:
/**
* Catch the theme_profile_profile function, and redirect through the template api
*/
global $user;
if($user->uid) // check to see if the user is logged in
{
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.
/* potential need for other code to extract field info */
return _phptemplate_callback('user_profile', array('user' => $user, 'fields' => $fields));
}
}
I also created a user_profile.tpl.php with this:
if($user->picture):

print $user->picture ">
endif;
Name: print $user->profile_name
Age: print $user->profile_age
Bio: print $user->profile_bio
When I upload these files to my active theme folder, I get this error:
warning: Cannot modify header information - headers already sent by (output started at /home/tintmag/public_html/community/themes/madness/template.php:11) in /home/tintmag/public_html/community/includes/common.inc on line 192.