By alxsvdr on
Hi all,
I am trying to retrieve one of the custom fields I just setup using the Profile module. For instance, I have created a profile_landing_page text field for each user.
How do I retrieve this field using PHP snippet? I tried $user->profile_landing_page with no success.
Any help greatly appreciated. Thanks,
Alex Saavedra
Comments
I found the way
Nevermind, I just figured out. It seems that
$uservariable is not loaded with all profile values by default. Thus I invokedprofile_load_profilefunction in order to access custom fields:Bye,
Alex Saavedra
How do you do it in Drupal 6.x?
How do you do it in Drupal 6.x?
What is the php code?
Sam308
I found the Drupal6 is the
I found the Drupal6 is the same - you'll need to know the userid of the account your trying to access.
For example, a bit of code I use to retrieve some profile fields is:
you should probably do some error checking, for example to make sure you actually have something in a field I use
Simon
how do you know which node is reading from?
Hi,
How do you get the node ID to associate with it's author profile? I tried but it didn't work.
Thanks