Not entirely sure what you're looking at there, but first take a look at the $node object to see what you have available for those fields. There would presumably be a UID or somesuch you could use to load a user object if you need to grab more details.<div>
<br></div><div><br><div><br><div class="gmail_quote">On Fri, May 7, 2010 at 8:24 AM, Xavier Bestel <span dir="ltr"><<a href="mailto:xavier.bestel@free.fr">xavier.bestel@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi again,<br>
<br>
So I've build this CCK node with various fields, some of them are<br>
userreferences. I want to access some values from PHP (in a custom CCK<br>
computedfield), but it doesn't seem to work:<br>
<br>
- I can access e.g. the date from my field_date using<br>
$node->field_date[0]['value'];<br>
<br>
- If I try to access a user from field_proprio, I get nothing. I tried<br>
$node->field_proprio[0]['value'] and<br>
$node->field_proprio_uid[0]['value'] but none of them work.<br>
<br>
Could anyone tell me how I can access a user, or which bit of the<br>
copious Drupal doc I should look at ?<br>
<br>
Thanks,<br>
Xav<br>
<font color="#888888"><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br><br>
</div></div>