UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible 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 online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

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