Hey Guys,

I'm having a big problem.

I'm using the profile override statement as many of you are

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

and now when I try to click on another persons profile listing to go to their profile, it goes to their URL but all the content is still my own even though they have created content. EX: Even though the url says "localhost:8888/user/addie-black" it's administrator's content, because I'm logged in as administrator. If I were logged in as addie black, all users profiles that addie navigated to would be her own profile content (picture, bio, links.. everything.)

How can I fix this so that users can view other peoples profiles?

Perhaps it's something in my actual profile layout> http://pastie.textmate.org/225770

Thanks.

Jon.

Comments

JonGirard-1’s picture

Problem solved. Changed the $user variable to $account.