By Fagault Eric on Monday, 30 January 2017
Posted in General Issues
Likes 0
Views 133
Votes 0
Hello,
I search in which tables are stored information such as "gender" the "location" ...
Can you guide me??
Best regards.
Eric
Hello Eric,

EasySocial stores all user's profile data under the table #__social_fields_data but I am not sure if this is what you really want to get? Perhaps if you could elaborate on what you are trying to achieve here?
·
Monday, 30 January 2017 22:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
I would like to display the Gender and the City in the stream when the flus displays "xxx is friend with yyy"
Best regard.
Eric
·
Monday, 30 January 2017 22:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Instead of querying the database table directly, you should use the API that we provide in the user object. Here is an example,

[gist]
// $userId needs to be the id of the user
$user = ES::user($userId);

// The FIELD_CODE can be obtained / generated from http://take.ms/jo2yq
echo $user->getFieldData('FIELD_CODE');

[/gist]
·
Monday, 30 January 2017 23:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello thank you very much.

The field code is "Gender" for gender?
For example:

Echo $ user-> getFieldData ('GENDER');

Best regards.
Eric
·
Tuesday, 31 January 2017 17:29
·
0 Likes
·
0 Votes
·
0 Comments
·
The field code is based on what was set in the custom fields settings, see http://take.ms/jo2yq
·
Tuesday, 31 January 2017 17:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank You
·
Tuesday, 31 January 2017 22:29
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem
·
Tuesday, 31 January 2017 23:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post