I know there is a way to direct the image from the user page to the usernode. However it would be great if any data from the user page could be easily transferred not only to the usernode but also to any of the user node profiles.

Comments

aclight’s picture

Maybe I'm not understanding what you're trying to do, but you should be able to load the user object from your nodeprofile.tpl.php equivalent file by doing something like:


$user->uid = $node->uid;
$user = user_load(array('uid' => $user->uid));
print_r($user);

You can use profile_load_profile() in place of user_load() if you are just looking for information in the user's profile (profile module profile, not nodeprofile profile). profile_load_profile() may be faster if you are using LDAP or some other authentication mechanism because user_load() will contact the external authentication sources (or at least the LDAP server) and that can be kind of slow.

AC

fago’s picture

Status: Active » Closed (won't fix)

yes, you can use this to get the user object

$user = usernode_get_user(node_load($nid));

there will be no further data in the default view. just customize the page so that it fits to your needs.

Axel_V’s picture

thanks I'll have a look at it but currently I'm fighting with many little detail problems. Trying to solve one after the other and not to loose my head...
cheers, xl