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.
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
Comment #1
aclight commentedMaybe 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:
You can use
profile_load_profile()in place ofuser_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 becauseuser_load()will contact the external authentication sources (or at least the LDAP server) and that can be kind of slow.AC
Comment #2
fagoyes, you can use this to get the user object
there will be no further data in the default view. just customize the page so that it fits to your needs.
Comment #3
Axel_V commentedthanks 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