This is for Drupal 5 http://drupal.org/node/35728
and Im wondering how to get it to work in Drupal 6?

I guess the user_profile.tpl.php should be renamed to user-profile.tpl.php but that isn't enough.

Comments

Chippe’s picture

In Drupal 6 I just created the file user_profile.tpl.php and didn't do anything else.
Seems to work!

Edit: I guess it's a bug. Turn on the profile module and the user_profile.tpl.php works.
If you turn it off the user_profile.tpl.php still works until you turn it on and off again.

That explains why I thought I only had to create the user_profile.tpl.php

VM’s picture

Not a bug, you didn't clear the theme registry after you uploaded the new tpl

Chippe’s picture

Ohh, ok. Thanks for pointing it out.
How to clear the theme registry?

You mean remove the user_profile.tpl.php before unchecking the profile module?
it works..

tryitonce’s picture

Actually all it is is the underscore "_" and the hyphen "-".

Just change user_profile.tpl.php to user-profile.tpl.php.

You can find it somewhere in the documentation - but I also spend a day learning all sorts of things and how to read as well in the process.

As lawyers say - keep reading to the end ....

And then - of course you need to clear the cache ....

Good Luck

budda’s picture

Both user_profile.tpl.php and user-profile.tpl.php work okay for me!

What I can't currently get to work by just dropping a TPL file in is the actual users variables. Also, looking in modules/profile/ directory i cannot see a source user_profile.tpl.php file to take as a base. There is a profile-listing.tpl.php which seems similar/the same? Confused a little with this at present.

I've used the Zen theme with the registry cache re-builder option turned on during development of the theme. Very handy facility.

spyderpie’s picture

The user-profile.tpl.php files is located in modules/user .. not modules/profile .. just my two sense ;)