1. dolphin054
  2. General
  3. Monday, April 11 2016, 01:36 PM
Hi
I am trying to get data using your api in to the form (RSForm). Used your recommendation from older post in this forum https://www.easy-profile.com/support/read-easy-profile-fileds-in-other-extensions.html#reply-6720 , but nada, the data not shown.
where i am wrong?

//<code>
<?php require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser();
echo $user->email; ?>
//</code>


Please help me.
p.s , regular Jumla integration work fine.:

//<code>
$user = JFactory::getUser();
return $user->get('email');
//</code>
admin Accepted Answer
Admin
Hi,
maybe:
you use
echo $user->email;
instead
return $user->email;
  1. more than a month ago
  2. General
  3. # 1
dolphin054 Accepted Answer
Hi,
i am using "echo $user->email;"
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
regular Jumla integration work fine.:

try to use return like Joomla integration.

echo or return are not a part of our APIs, these a PHP commands.
  1. more than a month ago
  2. General
  3. # 3
dolphin054 Accepted Answer
Easy Profile Support wrote:

regular Jumla integration work fine.:

try to use return like Joomla integration.

echo or return are not a part of our APIs, these a PHP commands.


Oh, I see, well i tested this also, and there is same problem, no data are viewed (Field not populated).
When i am trying to populate the field by this code:


//<code>
$user = JFactory::getUser();
return $user->get('email');
//</code>


everything working fine.
Only while i am trying to integrate Easy profile api, somehow nothing appear.
I sow i the posts , that someone already has similar problem, the issue is, that i tested different form creators, and the easy profile api not worked on no one worked :-(
  1. more than a month ago
  2. General
  3. # 4
dolphin054 Accepted Answer
dolphin br wrote:

Easy Profile Support wrote:

regular Jumla integration work fine.:

try to use return like Joomla integration.

echo or return are not a part of our APIs, these a PHP commands.


Oh, I see, well i tested this also, and there is same problem, no data are viewed (Field not populated).
When i am trying to populate the field by this code:


//<code>
$user = JFactory::getUser();
return $user->get('email');
//</code>


everything working fine.
Only while i am trying to integrate Easy profile api, somehow nothing appear.
I sow i the posts , that someone already has similar problem, the issue is, that i tested different form creators, and the easy profile api not worked on no one worked :-(




P.S I AM USING Joomla 3.5.1 + Easy form 1.3.18
  1. more than a month ago
  2. General
  3. # 5
dolphin054 Accepted Answer
See attached images.

Thanks
  1. more than a month ago
  2. General
  3. # 6
admin Accepted Answer
Admin
Hi,
obviously does not work, you do not remove
<?php ?>
statements.
  1. more than a month ago
  2. General
  3. # 7
admin Accepted Answer
Admin
More clear, put this:
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser();
return $user->email;


Keep in mind that we not provide support for RSForm syntax!
  1. more than a month ago
  2. General
  3. # 8
dolphin054 Accepted Answer
Easy Profile Support wrote:

More clear, put this:
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser();
return $user->email;


Keep in mind that we not provide support for RSForm syntax!


Good morning.
Well i tested the code with and without <? php> statement, and the result are the same - nothing :-(.
As i mentioned in previous posts, i tried different form creators, and the api didn't work :-( from some reason. Pleaseeeee, help meeee :-)
Actually i buy your extension because you create api to connect to different extensions...
  1. more than a month ago
  2. General
  3. # 9
admin Accepted Answer
Admin
Hi,
As i mentioned in previous posts, i tried different form creators, and the api didn't work
Our APIs works, but you need to have basic PHP knowledge.

sorry we can't help you, free support is limited. We can only explain how to works our API. But we can't do this for you.
  1. more than a month ago
  2. General
  3. # 10
william-reed Accepted Answer
I was trying to figure this out as well, their wiki does provide the right coding, it is how we put it into RSForm that is the problem.

This is what worked for me Go to the field you want to display the information into, In Default Value enter the following code


//<code>
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser();
return $user->email;
//</code>


The following code populates all the fields I need as well just by changing the field alias name.
  1. more than a month ago
  2. General
  3. # 11
admin Accepted Answer
Admin
Thanks William, we have not experience with RSForm and we did not know this RSForm behavior :D
  1. more than a month ago
  2. General
  3. # 12
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.