By Anthony Glover on Tuesday, 03 June 2014
Posted in General Issues
Replies 1
Likes 0
Views 466
Votes 0
Hi everyone,

I'm trying to create users programatically. I'm using Joomla's standard functions to create the users no problems. However once the user is created setFieldValue(); won't work to set the easysocial data!

It looks like I need to run a function first to set the users profile type and create the easysocial fields? There seems to be a user creation API or some kind, but there is zero documentation on it.

A really quick rundown of how to assign an easy social profile type and create the easysocial values so setFieldValue starts working would be super helpful.
Hello Anthony,

You might want to take a look at the logics behind /components/com_easysocial/models/registration.php under the method @createUser . However, I really don't see an issue if the user is already created in Joomla. You just need to pass in the appropriate values via setFieldValue. Again, different fields expect different arguments, you need to check on these fields in /media/com_easysocial/apps/user/ . Most of the time, we format values before the user is created on the site under the @onBeforeRegister event.
·
Tuesday, 03 June 2014 23:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post