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

API Code for Custom Field is not working

Gene Teigland · ·
12:20 PM Thursday, 09 July 2015
None
I appreciate all the help so far but having an issue when trying to incorporate the code for a custom field.

On this link you have this:
http://stackideas.com/docs/easysocial/developers/users/users

On the bottom you have the topic:
Setting custom field value (1.2)
With directions for the code:
equire_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );
$my = Foundry::user();
$state = $my->setFieldValue( $key , 'some value here' );


I have integrated except replacing "some value here" with my key id and that data does not show.

Now I've been able to grab other data using your directions as indicated in this forum:
http://stackideas.com/forums/es-api-implementation-for-users

If you read that we were able to do this with unique code to grab the user id url string ...
See sample below:
$userIdRaw = JRequest::getVar('user_id');
$userId = strstr($userIdRaw, ':', true) ?: $userIdRaw;
echo Foundry::user($userId)->getName();


So here are the two issues (know that I've been able embed other data from you API ) but cannot with custom field.

1. I tried to just put in your code as I described above except replacing 'some value here' with my key id which in this case was key id "TEXTBOX-1" from custom field found in:
Profile types/Undergraduate/Education/College or University
The code you showed in your api did NOT work.

2. Ideally I would love to code to match what we are doing in the post http://stackideas.com/forums/es-api-implementation-for-users as I'm sharing this with cobalt users so they can see the great integration between your two products using your API.

Anyway i guess the first step is just trying to get the api to work and the hopefully customize the code so it matches what we are doing in the other post.

Thanks!
The replies under this section are restricted to logged in users or users with an active subscription with us