Locked in Moodle, Cannot update profile.

More
14 years 9 months ago - 14 years 9 months ago #11 by Antonio Durán
Replied by Antonio Durán on topic Re: Locked in Moodle, Cannot update profile.
Yes, I think so.

I remember that Jomsocial calls the "User created" event before filling his user info in Jomsocial tables.
So, when Joomdle calls Moodle to create the user, Jomsocial profile info is not yet available.

Thus, first time the user logs in after registration, his details won't be available in Moodle, until he saves Jomsocial profile again.

I guess you could fix this behaviour forcing the profile sync on user login, so when the user logs in after registration, his moodle profile is synced from Jomsocial.

To try this, add:
JoomdleHelperContent::call_method ("create_joomdle_user", $user);

in function onLoginUser, in /plugins/user/joomdlehooks.php
after:
if ($mainframe->isAdmin())
return;

If you try, please tell us how it goes.
Last edit: 14 years 9 months ago by Antonio Durán.

Please Log in or Create an account to join the conversation.