Berichten gepost door Ray Morris

Out of curiosity, how does moodle define "complete"?

If you look at Quiz Administration > Edit Settings, you'll find these settings under "Activity Completion":


Require view    Student must view this activity to complete it
Require gradeHelp with Require gradeStudent must receive grade to complete this activity

Expect completed onHelp with Expect completed on[Date]

Next week, Moodle 2.7.1 will be released and you may see two more options added:

[X] When they get a passing grade [X] or When all of the available attempts are used (meaning they WON'T pass)


(That's an option I added, but it's awaiting final approval by Tim and the integrator, so it may or may not make it in time.)

All the different types of activities have at least the same completion options that Quiz has. Some types, such as SCORM, allow you to select other options as well.


For information about setting completion options, see:

http://docs.moodle.org/27/en/Activity_completion


For nitty-gritty technical details, see:

http://docs.moodle.org/dev/Activity_completion_API

Gemiddelde van de beoordelingen:  -

A simple plugin can do it.  Moodle has a completion API and a messaging API.  All you need is a plugin that hooks completion and calls messaging. I'm going to present the other side of Rick's question "how do you define completion" and say that you should NOT worry about that at this point.  Moodle has a complete completion system that takes care of that.  You can use the completion API and the GUI settings for completion to decide when an activity is complete. That's a completely separate issue from sending notifications when completion occurs.


That said, Moodle is somewhat advanced, tricky to learn to code for. You don't "change the code", you write modular plugins.  That's important.  It makes things far easier in the long term, but there is definitely a learning curve.


I'm attaching a plugin I wrote which does more than what you want. You should be able to turn it into what you want primarily by deleting code. The attached allows you to specify a list of users who will be notified whenever someone completes.  You'll get rid of the list and instead have the message sent to $ue->userid , the person who just completed.


Secondly, the attached sends the notification a COURSE is completed. In db/events.php , you'll change the hook on course_complete to instead catch the activity completion event.


Gemiddelde van de beoordelingen:  -

For those having trouble with the above, we will have an alternative available within about 60 days that does not require any core changes.  We will be coding for Moodle 2.7.  It might work back to 2.3 or so, but we'll be testing on 2.7 and above.  Keep an eye on this forum for future updates.



Gemiddelde van de beoordelingen:  -

Eric is right. Login https is more secure than http, partly because credentials which probably work for other systems are much more sensitive than a transient session ID. We should be very clear that the proposal is to remove the "medium security" option and force users to choose between "low security" and "high security".  Not that any site running Moodle is actually "high security", but that's slowly being improved.

There are occasionally issues with https only, for example last week Chrome had an issue with popups and https, IE has a long standing issue where it doesn't close https connections which results in a minor "DOS", etc.  For these reasons, there certainly may be cases where an admin does not wish to use TLS for everything, or where that simply is not an option, where it breaks things.  My career is primarily in internet security, and from my viewpoint there are some advantages of using TLS for everything*, all the time, but it just doesn't quite work sometimes with real-world browsers and all.


* In the general case, there is also the argument that marking everything as "secure" by using TLS weakens security by blurring the line between what's confidential and what's not. Similar to the fact that marking every document in your office "confidential" guarantees that employees become accustomed to ignoring the designation. Better to have your public pages https://www.site.com and your credit card payment form on https://secure.site.com, running on a secured server, the argument goes. There is some merit to that.


Gemiddelde van de beoordelingen: Useful (1)

Binghampton has a module for rendering quizzes to PDF and also importing attempts from Scantron forms or similar.

https://github.com/bumoodle/moodle-quiz_papercopy/tree/WIP_BU_78_WEBKIT


I'm working on adjustments needed for compatibility with Moodle 2.7:

https://github.com/MorrisR2/moodle-quiz_papercopy/tree/update_for_moodle_27


BU has indicated they plan to do some further work on it this summer.

Gemiddelde van de beoordelingen:  -