Customising the user profile layout

Wyze1 - March 6, 2008 - 09:17

Hi guys

This does'nt work anymore in Drupal 6

/**
* 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));
}

Does anybody know what I can use instead of this on the template.php or have a tutorial of how to customize the user profile in D6.

Thanks in advance

Sorry... I did'nt read For

Wyze1 - March 6, 2008 - 10:21

Sorry... I did'nt read

For those who are struggling with this don't add the above code to your template.php

rename your .tpl file from user_profile.tpl.php to user-profile.tpl.php and you've got a winner...

In Open Source I Trust! Everybody Else Must Pay Cash!

thank you so much

mdgrech - August 7, 2008 - 23:46

I was struggling to customize user profile in drupal 6 for forever now

 
 

Drupal is a registered trademark of Dries Buytaert.