I want to create a custom profile page. I have done everything that the documentation has said: I am running drupal 6 and put the following into my template.php file.
/**
* Catch the theme_user_profile 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.
/* potential need for other code to extract field info */
return _phptemplate_callback('user_profile', array('user' => $user, 'fields' => $fields));
}
Then i created a new user-profile.tpl.php and put it in my template folder. For some reason the template file is not working.
Any advice would be appreicated.
Comments
No need for the callback
You shouldn't need a callback on this in template.php (unless needing to pass specific vars) -- Just add your custom user-profile.tpl.php file to your theme and it'll get picked up.