• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Extract custom fields from Jomsocial

Extract custom fields from Jomsocial 12 years 2 months ago #16379

  • asimeou
  • asimeou's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I am trying to extract data from a Jomsocial custom field so that it appears on a field in my form (autofill). All the usual Joomla fields work ok and the form auto completes these, but the problem field I have is FIELD_CITY which is a custom Jomsocial field. I cant seem to exract the information. Can anyone help?

$my = & JFactory::getUser();

foreach($fields as $i=>$field){
if($field->name=='namefieldname') $fields[$i]->default_value = $my->name;
if($field->name=='emailfieldname') $fields[$i]->default_value = $my->email;
if($field->name=='usernamefieldname') $fields[$i]->default_value = $my->username;
if($field->name=='cityfieldname') $fields[$i]->default_value = $myid->FIELD_CITY;

}
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!