Hello, I'm back.
I have managed to direct users to an RS Pro Form successfully. The RS Pro form pulls PHP variables 'Name' 'Username' & 'Email' from the EasyProfile DB successfully (using the code below), apart from one field.
//<code>
$user = JFactory::getUser();
return $user->get('name');
//</code>
//<code>
$user = JFactory::getUser();
return $user->get('username');
//</code>
//<code>
$user = JFactory::getUser();
return $user->get('email');
//</code>
I have a drop down field on my EasyProfile form called Year In (year-in) and I would like this to appear on the RS Form also like above, according to their website the code should look something like
//<code>
$db = JFactory::getDbo();
$db->setQuery("SELECT `column_name` FROM `#__table_name` WHERE `column_name`='value' LIMIT 1");
return $db->loadResult();
//</code>
So I have altered it to fit my DB column and table names;
//<code>
$db = JFactory::getDbo();
$db->setQuery("SELECT `year-joined` FROM `#__jsn_users` WHERE `year-joined`='value' LIMIT 1");
return $db->loadResult();
//</code>
Does look like it should work? It just shows a blank field on my RS Form.
I understand that this isn't exactly EasyProfile support directly however if you had the time to have a look I lwuld be most gratefull.
Thanks,
J