By Fagault Eric on Friday, 28 June 2019
Posted in General Issues
Likes 0
Views 494
Votes 0
Hello,
In the file listing.php, I want to display some information of the members present in their file.
For that I did:

<?php
$EFIdUser = $user->id;
echo $EFIdUser;
$UserEmail = $EFIdUser->getFieldValue('JOOMLA_EMAIL');
echo $UserEmail;
?>


But I have an error message.

I also need to retrieve "users.layout.profiletitle" to display it.

Would you guide me?

Best regards.

Eric
Hi Eric,

For getting user's email, I believe you only can call as below:

$UserEmail = $user->email;


I also need to retrieve "users.layout.profiletitle" to display it.

Correct me if I am wrong here, do you mean, you want to retrieve the config of 'users.layout.profiletitle' yes? If yes, you can retrieve as below:
$this->config->get('users.layout.profiletitle')


Hope this helps
·
Friday, 28 June 2019 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
Thank you for your reply, and any apologies for my late response, I have been busy these past few days.

To display the email, this is correct.
To display the group, I used the code:

echo $this->config->get('users.layout.profiletitle');

As you suggest to me.
But it displays the value "1" whatever the group in which the user registered.
I attach screen copies.

Best regards.

Eric
·
Friday, 05 July 2019 05:01
·
0 Likes
·
0 Votes
·
0 Comments
·
I finally did:

echo $user->getProfile()->get('title');

It works
·
Friday, 05 July 2019 05:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Eric,

Ah, I have misunderstood your query regarding the profile title, as I thought you want the setting value (easysocial setting) to do some checking.
However, I am glad to hear your issue has resolved.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding and have a nice day ahead
·
Friday, 05 July 2019 10:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post