UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Displaying profile custom field data.

Richard · ·
12:03 AM Saturday, 15 March 2014
None
Hi there,

I'm trying to figure out how to call, and display custom field data in the user module.

<?php echo $user->getFieldValue( 'ADDRESS' ); ?>


I've the above with no success. Using the unique key in quotes returns a php error:

Catchable fatal error: Object of class SocialFieldsUserAddressObject could not be converted to string


I've tried creating a new gender custom field with a drop down for male and female and then used:

<?php echo $user->getFieldValue( 'GENDER_2' ); ?>


GENDER_2 being the unique key I assigned to the custom field. All it returns is
SocialTableFieldOptions


Address was just an example, I'm adding MANY different extra fields and I need a way to display the data that the user supplies during the registration process inside a module.

Could anyone offer some insights on how I can achieve this?

Example of what I'm trying to achieve:
Row of 5 recent users. I need to display their Name and Avatar (got that part figured out), I also need to display data from customfield1, customfield2 and customfield3 whether the data comes from a radio field, text field, drop down, etc.
The replies under this section are restricted to logged in users or users with an active subscription with us