UPDATES EasyBlog 6.0.11 Released! Update to the latest version 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

setFieldValue

adrien · ·
10:00 PM Friday, 19 June 2015
None
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.


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
The replies under this section are restricted to logged in users or users with an active subscription with us