7 years ago
3
Topic

We have a authentication plugin that will create the joomla user if not there.   Also have a user plugin to update the user information from external db using the onUserLogin function.   

Is there a way to create the seblod user in this function?  

I can update the joomla side of the user using simple $instance->email = new@email and $instance->save() calls.   Can I update and create seblod fields the same way?

Thanks for your help

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
0
Level 1

You can create a record in user content type using code, see manual

7 years ago
1
Level 1

Thanks Klas

Can you help me just a little, please.   I can use JFactory::getUser() and have access to user ID. How do I check for the Seblod user?

$Juser = JFactory::getUser();

$JuserID = $Juser->id;

$Suser = new JCckContent();

?? now what ??

With the example you provided I can create a joomla_user array with the $JuserID->create() function, How can I verify the user does not exist before I create and store a new one.

Thanks!

4229 Posts
Kadministrator
7 years ago
0
Level 2
Get a VIP membership