Hello dear StackIdeas team,
I was reading the documentation about setFieldValue at
http://stackideas.com/docs/easysocial/developers/users/users
And wanted to use getFieldValue too.
I need to copy a user'ss address field content to an other user's address field so I tryed this and did not work. I know address fields are particualr as they hold multiple keys and values.
I wonder if it's missing some parameters or serialization...
Any tip welcome
I was reading the documentation about setFieldValue at
http://stackideas.com/docs/easysocial/developers/users/users
And wanted to use getFieldValue too.
I need to copy a user'ss address field content to an other user's address field so I tryed this and did not work. I know address fields are particualr as they hold multiple keys and values.
require_once JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' ;
$user1 = Foundry::user($userid1);
$address = $user1 ->getFieldValue( 'ADDRESS' );
$user2 = Foundry::user($userid2);
$user2->setFieldValue( 'ADDRESS' , $address );
I wonder if it's missing some parameters or serialization...
Any tip welcome