By Tim on Friday, 24 January 2014
Posted in General Issues
Replies 4
Likes 0
Views 684
Votes 0
Is there a php function that will return the contents of a custom text box in a particular user's profile? for example getCustom(userID, fieldID)

I looked here but didn't see anything quite like that.
http://docs.stackideas.com/developers/users/users

Thanks!
Hi,

You can try, given a unique key of a field:

Foundry::user( $userid )->getFieldValue( $uniquekey );
·
Friday, 24 January 2014 09:28
·
0 Likes
·
0 Votes
·
0 Comments
·
ah, I think I found the right area. "custom fields" http://docs.stackideas.com/developers/custom_fields/getting_started .

now to try to understand it!
Tim
·
Friday, 24 January 2014 08:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Jason! I had some trouble when the name of the field had a hyphen (-) in it, but once I removed that, the command worked perfectly. thank you!
Tim
·
Saturday, 01 February 2014 07:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Great. We will cross check against the issue with hyphen.
·
Saturday, 01 February 2014 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post