Hello there,
I spent some time to learn it so I will let this thread to someone else that need to manipulate Seblod custom user content anywhere like me.
To get user content:
$SeblodUser = JCckContent::getInstance(array( 'joomla_user' , $userId));
$someValue = $SeblodUser->get('some_field', 0);<br>
To set and save custom user content:
Padlock closed fields:
$SeblodUser = JCckContent::getInstance(array( 'joomla_user' , $userId));
$itemfield=array(
'yourfieldname1'=>'yourcontent1',
'yourfieldname2'=>'yourcontent2',
);
$data=$sebloduser->save('more',$itemfield);
<br>
Padlock open fields:
$SeblodUser = JCckContent::getInstance(array( 'joomla_user' , $userId));
$itemfield=array(
'yourfieldname1'=>'yourcontent1',
'yourfieldname2'=>'yourcontent2',
);
$data=$sebloduser->save('more2',$itemfield);
<br>
You can learn more about JCckContent class in: /public_html/libraries/cms/cck/content.php
Regards,