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 offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Remove Extra Characters from API embed

Gene Teigland · ·
11:43 PM Friday, 17 July 2015
None
First of all great job on your api for embedding ES fields into other pages. However I'm having an issue with extra characters showing up in the custom field type: Multi Dropdown List:

1. I have created this field in Profile types ES
http://www.awesomescreenshot.com/image/415864/822eef5a1f9c570ce3e036e1464d9e44

2. Im using your API (as given by your developer doc) to embed this into another page:
<?php $userId = JFactory::getApplication()->input->getInt('user_id');
$key = 'ARTMEDIUM';
$my = FD::user($userId);
$fieldData = $my->getFieldData($key);
echo $fieldData;
?>


3. However you will see in this screenshot that extra brackets and Quotes appear with this field type. This does not happen on other fields for example a text field. (Note: I'm good with the commas) but how do I remove the brackets and quotes.
http://www.awesomescreenshot.com/image/415870/7c200d024d9b02081b90b616fff904c7

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