Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By syedasad on
I sent a mail to Cas Nuy, the developer of the Drupal/Moodle Integration module and requested him to update it to work with Drupal 4.7.3.
Guess what he does? He takes 2 days but sends me an email with the updated code. I am attaching it to this post.
I have seen several posts where people have been asking for an updated module. Please donate to Cas Nuy (cas@nuy.info) if you find this module useful.
I am sure, some of us will have our own wishlists which you may want Cas to incorporate in this module. Donations will ensure that this module remains updated.
Regards
Asad
Comments
No attachment support for forum topics?
How do I add the updated module as an attachment to this forum topic?
Till I am able to, please email me and I will email you the updated module.
Thanks
Asad
Get it here
Instead of bombarding Asad with emails I'm hosting the file here.
A little Bug
erichayes,
I had installed the module you host and i had to change a line in the moodle.module file.
Line 20 -
Before - $access = user_access('access Moodle');
After modify - $access = user_access('access moodle');
Just this 'M' in place of 'm' caused that i couldn't reach my Moodle install between Drupal
Excuse me for my English but i'm french speaker and school is very far,
Loutcholycos
Moodle external database module for Drupal 5.0 beta
I made some quick modifications to get this module working for Drupal 5.0 beta. This is a tarball of the module actually working.
I find that relative URL's for the (possibly local) moodle installation do not work, and require a full http://... URL.
You can get it here . Please note that this should only be a temporary expedient until drupal/moodle integration or other solutions are more thoroughly developed. See the DrupalEd Distribution Group at http://groups.drupal.org/drupaled-distro .
Please feel free to put it up next to the 4.7.4 version.
Victor Kane
http://awebfactory.com.ar
Victor Kane
http://awebfactory.com
Integration with 4.7.3 and Moodle 1.7
Will either of these modules work with Moodle 1.7 and Drupal 4.7.3? I've tried the Cas Nuy's module and I'm running into some issues (only Drupal Admin has login access, access goes straight to edit profile, and Moodle keeps opening outside of i-frame when I click on classes.) Any help would be GREATLY appreciated!
Edit- It was an error on my part. I re-installed the module and it works fine now. The only issue is that it will step out of the i-frame every now and then.
Hi. I have used the module
Hi.
I have used the module with Moodle 1.7 and have used it successfully with Drupal 4.7.3 (as well as 5.0).
In my installs, regular users are able to "moodle over". And the author sent me an update which includes opening Moodle in a pop-up window instead of an iframe.
Contact me if you like and we can test the step-by-step instruction list on clean installs if you like, which we could publish here.
Victor Kane
http://awebfactory.com.ar
Victor Kane
http://awebfactory.com
Working on 4.7.4?
Hello,
I installed this on a Drupal 4.7.4 install, with a clean moodle install in the Drupal dir, /moodle.
After applying the above fix changing uppercase M to lowercase m, the Moodle link appears in the navigation block for all users... but that's all.
Clicking on it brings you to the Moodle install, but not in an iFrame. It just leaves my Drupal site and brings me to the default Moodle page. It doesn't even log the user in.
I made the changes to the Moodle authentication options as outlined in the INSTALL.txt.
Am I missing something here? Do users need to create accounts on both sites, and then log into both? If so, what is the purpose of the Module?
If not, what can I do to help debug this?
Cheers and thanks in advance,
s.
Additional info
In the moodle database, under mdl_users,
I get email@address.com.1166842626
For every drupal user who tries to moodle through from drupal.
(I'm using the latest version of Moodle).
Cheers,
s.
How I got it working
0. You only create authenticated users (with moodle module access in access control) within Drupal, not within Moodle; change Moodle authentication method to external database, in general, follow the directions (points 1-7 in the bundled install help text file). Directions included below as a PS, just in case.
1. As stated in http://drupal.org/node/80982 you have to change 'access Moodle' to 'access moodle' in line 20 of moodle.module:
$access = user_access('access moodle');
2. Had to give access to authenticated user only; if I give access to more than one role, it doesn't work (unconfirmed, but try it if all else fails).
3. Step 7 (putting /moodle/ into the config field) didn't work for me: if I put '/moodle/' it took it as '/drupal/moodle/'; the settings instructions misguide when they say relative path (suppose they put moodle under drupal); so I put full path for it to work, for example:
http://example.com/moodle/
I also suspect that this is needed for the drupal and moodle session management to work, so on some machines I put in localhost, and on others the actual domain in order for the automatic login to work.
4. The first time you go into Moodle from Droodle, you are taken to your profile page; for future seamless logins to work, you must fill in First Name, Last Name, City, Country, Description, etcétera. These fields could be copied in automatically from somewhere specified in the moodle: Administration » Users » Authentication, but I haven't tried that.
After that it was smooth for me.
Please respond if you continue having trouble, and we can try it step my step.
Victor Kane
http://awebfactory.com.ar
PS The original bundled install help text:
INSTALLATION
======================
0. Install Moodle stand alone and verify it is working correct.
1. copy moodle.module to your /modules directory.
2. Copy index_dr.php to the root of your Moodle directory
3. Go to the admin section of Moodle (Stand alone mode), users
4. Set the authorisation module to External Database and fill in the credentials from your Drupal database
- auth_dbname => Database name of the Drupal database
- auth_dbuser => Database user you used when setting up Drupal
- auth_dbpass => Database password you used when setting up Drupal
- auth_dbtable => Usertable from Drupal , most likely 'users'
- auth_dbfielduser => Thefieldname containing the username most likley 'name'
- auth_dbfieldpass => Thefieldname containing the password most likley 'pass'
5. Keep the password format to PLAIN.
6. Initialise & activate the Moodle module within Drupal
7. Set the path to the moodle directory containing a final forward slash, so something like "/moodle/".
Existing users will have their authorisation method still set to the previous way of authorising.
Most likley this will be manual.
In order to adjust, you need to go to the Moodle Database, table mdl_user and change the field 'auth'of those users to 'db'.
Victor Kane
http://awebfactory.com
Hello to all I have just
Hello to all
I have just installed the Moodle module with help from this forum page.
However, is there a way of passing the access rights of a new user into moodle i.e. If you create a new administrator in Drupal, to make the same user in moodle an administartor??
Thanks
AMRIT
Loggin Attempts
Also, i have just started getting this message:-
Sorry, you have exceeded the allowed number of login attempts. Restart your browser.
It works when you restart the browser, but i dont want this to happen when other users are using it. Any ideas?
AMRIT
This opens a more general discussion
We are investigating other more standards conformant single sign on options, supported by both Drupal and Moodle. There are three which bear investigation (depends on your network):
1. CAS from Yale University (requires Java server or at least Tomcat). Supported through modules by both Drupal and Moodle.
2. LDAP, supported by both.
3. OpenID, which is well on its way to being supported by both: this looks the most promising.
The "restart your browser" has to do with the sessions, I have seen it, but mainly in the debugging stages. Will report on workaround, or way to impede this problem.
Victor Kane
http://awebfactory.com.ar
Victor Kane
http://awebfactory.com
Drupal 6.4 Port
Hi,
I have extended the original module so it becomes a real node (taxonomy & filtering now works).
It is tested against Drupal 1.8.2+ and Drupal 6.4.
It support more parameters to be passed from the users profile (including images) then the original code.
For this it expects a number of Drupal User profile fields:
profile_firstname
profile_lastname
profile_city
profile_country
User pictures/avatars are transferred and resized too.
It allows one to jump straight into a moodle course (just edit the Course nodes courseid).
This way every course could be wrapped in an individual Drupal node.
If you edit the node you can also add a short course description that Drupal also uses
to generate its teasers.
course.info:
course.install:
Moodle's index_dr.php:
readme.txt:
install.txt:
wvd_vegt
How can I get the module integration drupal 6 and moodle
hi, your very good article
How can I get the module integration
moodle and drupal 6. Only to find drupal 5
Excuse my English
Subscirbing, also looking for
Subscirbing, also looking for moodle/drupal integration on D6 out of the box..:)
greetings, Martijn