Users uploaded to Moodle don't create user in Joomdle

  • Jose Miguel Garcia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #1 by Jose Miguel Garcia
Users uploaded to Moodle don't create user in Joomdle was created by Jose Miguel Garcia
Hi everyone, hope someone can help me with my problem

I have a Joomdle site where I'm constantly uploading useres; I do it via Moodle, uploading a CSV to have a cohort assigned to the user; the users I upload this way aren't automatically created in Joomla, so I go to the users tab in Joomdle, filter the user list to show 'Not Joomdle users' and manually sync them, first to Joomla then to Joomdle.

After that, I upload a new CSV, this time to Joomla, with the users profile details in CB

My problem is that the manually syncing users is getting awfully slow. I have more than 6,000 users now, and when I go to Joomdle to try to manually sync, sometimes even the site stops responding, so I haven't been able to upload (or sync) many new users, and it's getting me into trouble

I wish to know if anyone can tell me if:

1. I can have Moodle to automatically create the Joomla and Moodle user when I upload the CSV file (please, please, please do)
2. Or else (damn) is there a way to sync the create the users to Joomla/Joomdle without doing it manually via the users tab? I don't know, uploading -yet- another CSV somewhere?
3. Is there a way, a configuration so my Joomla adminstration don't go slow when I filter the users to show 'Not joomdle users'?
4. Even better than all above, is there a way for me to do all that process simplier? Now that I've written it down, I think I really having a lot of steps and proccess to upload users to my site.

Any help would be great.

My site specs:

Joomla: 2.5.6
Joomdle: 0.82
Moodle 2.3

Thanks!

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

More
13 years 6 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Users uploaded to Moodle don't create user in Joomdle
Hi.

Problem is Moodle does not trigger the user_created event when uploading users to Moodle via CSV. I have seen people complaining about this before.

The easiest way to do what you want would be to find the place in Moodle code where it creates uploaded users, and add the call to trigger the event. I don't remember which file it was.

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

  • Jose Miguel Garcia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #3 by Jose Miguel Garcia
Replied by Jose Miguel Garcia on topic Users uploaded to Moodle don't create user in Joomdle
Thanks Antonio, I'll see if I can find the trigger and do the trick; I'll tell you if it works, in case there's a possibility to add it in future versions.

Saludos!

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

More
13 years 6 months ago #4 by Chris
This would be a moodle hack then. I think at best would be a notice somewhere in the wiki / tips & tricks saying which part of the code should anybody wish to hack the moodle files. Alternatively, would be to put in a request to the moodle team so that the user_created event (moodle code) is called during the csv upload procedure.

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

More
13 years 5 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Users uploaded to Moodle don't create user in Joomdle
Yes, it would be a hack.

And yes, ideally Moodle should add it to their code, so maybe we should put a request....

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

More
13 years 5 months ago #6 by D N
Anyone make any progress on this? I am stuck on this one and it is a huge requirement for a current project...

Thanks

-dn

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

  • Jose Miguel Garcia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 5 months ago #7 by Jose Miguel Garcia
Replied by Jose Miguel Garcia on topic Users uploaded to Moodle don't create user in Joomdle
Hi again,

I didn't found where to modify the code in Moodle (I'm not a programmer, I'm just very curious, but sometime cuting the wrong wire has brought real problems). Anyway, stumbling in the forums, I found this solution: When uploading the users in Moodle from a CSV, I didn't add an 'auth' column; so I added it on my next batch of users, with 'joomdle' as auth method (of course, with the Authentication Plugin Joomdle enabled in Moodle), and everything worked like a charm! The users were automatically added to Joomla and Joomdle, whitout delays or slow server response, and then I just upload the CSV with user details in Joomla.

I just didn't found out this on the documentation though, and it would have saved me a lot of time, blood and tears. Maybe it would be a good idea to add this to the wiki.

Hope this helps, and thanks to everyone!

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

More
13 years 5 months ago #8 by D N
Well thanks - for the idea and the quick response.

However, that didn't work for me. Odd.....I get feedback on the upload screen that says auth plugin not supported here under my authentication row - BUT it does save the user with Authentication -> Joomdle.

However, I get a user with a Moodle account and a Joomdle account but no Joomla sync.

I will triple check all again and see what I get.....

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

More
13 years 5 months ago #9 by Antonio Durán
Replied by Antonio Durán on topic Users uploaded to Moodle don't create user in Joomdle
Thanks for the info, Jose Miguel. Can you tell us which Moodle version are you using?

I remember having seen the "auth plugin not supported here" when I tried this some time ago, but maybe something has changed in recent versions.

If we find out how to make it work, we can add it to the wiki, as I am sure it will help others.

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

More
13 years 5 months ago - 13 years 5 months ago #10 by D N
Jose Miguel listed his versions in the first entry....

Joomla: 2.5.6
Joomdle: 0.82
Moodle 2.3

I am continuing to experiment with various combinations of fields including auth, enrol, cohort, etc....to see if I can also find one that works as he suggested.

FYI - I am using 2.2.2


***Small Update****

I have just successfully completed a user upload on another instance that utilizes Jomsocial user profiles. I noticed that Jose Miguel utilizes CB in his instance - so I wonder if this is not something about odd about core profiles or user objects......

Adding Jomsocial did not help with the original instance - so I am starting from scratch with a brand new install Joomla and Joomdle.......
Last edit: 13 years 5 months ago by D N.

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