By Szklana on
Well I readed the node on this website about customising user profile.. i did like they said to do.. addes the code to template.php and created the file user_profile.tpl.php but anyway it still reads the tpl file from module user directory..
The other thing is that how should I use this?
print $account->name // this one display only name of user on what i`am logged in :S
or
print $user->name // this one dont display anything..
How should it look? Help me? :S
Comments
use it like this
use it like this
[div class="fields"][strong]Name: [/strong][ php print $account->profile_firstname.' '.$account->profile_secondname ][/div]
here ive created extra fields using the profile module
$accounts works with 6 and Im guessing that $user does the same but its drupal 5 (Im guessing)
oh place you user*.tpl.php in you theme folder not in the user module folder
It didn`t worked ;S I use
It didn`t worked ;S I use profile module, drupal 6.2... the file is in theme directory but the module is not reading it... it use all the time the tpl file from module folder and when I delete it it shows nothing :S
show me the link that you
show me the link that you were using in Drupal 6 all you need do is copy the tpl.php from the module folder and place that in your theme - you dont have to add any thing to the template.php unless you are doing something fancier
ie if you want to change the look of the user page you used the user-profile.tpl.php(im guessing this)
I use the profile module mainly for adding extra fields and havnt themed using any of its child tpl.php
hope that might help