I see that Moodle must has an identical user name and password in order for the Drupal user to see the courses they are registered for. I see how that is helpful, but a couple of questions. I want to offer Moodle courses to registered users on my Drupal site.
1. If my user clicks on the link to the course will he be automatically logged into Moodle?
2. Also can I automatically create the Moodle user and password for each Drupal user without requiring that they do this manually themselves?
3. Also how do I register them for the Moodle course? Would and admin log into Moodle and manually do each course registration or would the student?
4. Finally do you know of handy way that I could sell the courses with Ubercart. I think Ubercart will let me sell access to a link. Could I use that to see the link to the course registration?
Thanks for any help,
Jeff
Comments
Comment #1
agerson commented1. If my user clicks on the link to the course will he be automatically logged into Moodle?
No, this module does not support Single Sign On. They will be taken to the moodle login page, but after authenticating will go directly to the course page.
2. Also can I automatically create the Moodle user and password for each Drupal user without requiring that they do this manually themselves?
Not with this module. However, moodle supports bulk import / export of users. Or you can authenticate both drupal and moodle to LDAP.
3. Also how do I register them for the Moodle course? Would and admin log into Moodle and manually do each course registration or would the student?
Moodle is set up by default to allow students to enroll in courses themselves.
4. Finally do you know of handy way that I could sell the courses with Ubercart. I think Ubercart will let me sell access to a link. Could I use that to see the link to the course registration?
I do not know a way with ubercart. If they find out the URL to your moodle site they can bypass drupal. However, moodle does support paid access to courses. However, most of these are moodle questions and should be taken up with the folks at http://moodle.org/
Comment #2
webservant316 commentedthanks
Comment #3
kbrune commentedThis post is a few months old so I won't do an in-depth reply here... I just happened to run across this as I was searching for Moodle/Ubercart related topics. Here's how I did it...
Anyone reading this feel free to get in touch if you want help setting it up.
Further Details (as requested)...
That's it! I'm thinking of making this whole thing into a Moodle Lesson if there's enough interest. I'll include the details I left out here, for example...
If you're going to get in touch, please use my contact form instead of posting here if possible. I'll notice your communique much faster that way.
Happy teaching!
Comment #4
richardleslie commentedHi kbrune, I'm working on a Similar project and need pretty much the same setup. I'd love it if you could give me some specifics on how you set this up.
regards,
Richard
Comment #5
webservant316 commentedThat is cool. kbrune if you were able to document the detail and post it here that would be great!
Comment #6
c-c-m commentedThank you kbrune for your comprehensive guide. That's what I was looking for! (specially after realizing that moodle's integration seems to be abandoned or not well documented)
Unfortunately I followed steps 1-8 very carefully not to forget anything but it seems I did something wrong or the behaviour is different from what I expected. After following your instructions 1-8 I created a new user in drupal and I went to moodle's user list but I didn't see the recently created user in drupal. I manually ran cron in moodle and drupal, just in case although this last step doesn't seem to be required, (I haven't configured it on my local server) and refreshed the user list with no success.
I also tried to do it reversely (created a moodle's user) but I got the same bad results. No syncronization at all :(
I'm sure to have provided correct database's name, user and password, as well as the correct name for the table (users), and fields (name, pass and mail), what am I missing? what am I doing wrong? Did I misunderstood its behaviour?
Thank you
EDIT: I don't know if that matters, but I am using both drupal and moodle in a local server using ubuntu and LAMP server.
Comment #7
kbrune commentedA few ideas/clarifications...
Comment #8
c-c-m commentedThank you! I didn't understand how it works. I have tryed to log in with a Drupal username and it works (it asks me to add more fields -name, surname, city and country- but I think that could easily be solved by adding those fields to drupal profile and mapping the fields). It's a pitty, however, not to have a single login.
As far as I know (and as little as I know), other solutions could be to use LDAP integration (don't know exactly what this means) or OpenID (which I am not sure neither -I thought drupal had it on core, but I have found other modules as wel... )
EDIT: i added some profile fields, but since they are stored in different table and my sql knowledge is very poor, I do not know how to map the custom fields.
Comment #9
EvanDonovan commentedI just contacted kbrune to see if the documentation from #3 got posted anywhere on Moodle.org or Drupal.org. If it didn't, I will post it somewhere, since it looks great (haven't tried it yet).
I just added some tags & title to make this more visible to Google till then.
Comment #10
EvanDonovan commentedHere's an example query for doing the denormalization to pull the fields in that Moodle requires for a user:
Note that this uses Profile module for the user fields. If you use Content Profile, then you'll be using a different query, but analogous technique.
(Based on a query from http://www.transio.com/content/how-denormalize-normalized-table-using-sql.)
Comment #11
pere orgaI've just created a Drupal module that integrates Drupal Commerce with Moodle: http://drupal.org/node/1833212
Comment #12
webservant316 commentedwe eventually cancelled our Moodle integration effort and built this instead - http://drupal.org/project/scorm_cloud. SCORM Cloud is a premium service, but the price is very reasonable and the SCORM player second to none.