By Rosamunda on
Hi there!
Well, as the title says, I´m trying to override the whole user profile template.
This is what I´ve got so far:
<h1><?php print theme('username', $user); ?> <a class="btn btn-primary btn-mini" href="/user/<?php print $user->uid;?>/edit">edit my account</a> <a class="btn btn-danger btn-mini" href="/user/<?php print $user->uid;?>/profile/perfil">edit my profile node</a> <a class="btn btn-mini" href="/logout"><b>log out</b></a></h1>
<br><?php print $user_profile; ?>
The idea is to take over the profile to show no tabs:
USERNAME [edit account button] [edit nodeprofile button]
[everything else that´s usually inside the user profile]
My problem is that the code above, shows the logged in user username (and the edit buttons) instead of the profile owner´s.
$user_profile; is working ok, because the stuff that shows after the buttons is the profile owner´s.
How should I twist that to act as I want it to?
Thanks!!!
Rosamunda
Comments
In user-profile.tpl.php
In user-profile.tpl.php $account is user being viewed while $user is the user doing the viewing. See user-profile.tpl.php
Thanks nevets!!!!
Thanks nevets!!!!