Hello Susanna,
Could you show me the completion conditions for one of those HotPots?
Re: Course completion requirement for HotPot activities
Yes, here are the conditions for 'Cover letters - Introduction'. The actual completion indicator works fine.
Re: Course completion requirement for HotPot activities
Ah, I see. Thanks very much.
If you check "Require view" box, and then view the Completion report, does the text in the "Requirement" column change to "Viewing the page"?
Re: Course completion requirement for HotPot activities
Yes, it does. ("Viewing the hotpot", to be precise.)
Re: Course completion requirement for HotPot activities
Aha - thank you, Susanna!
Searching through the Moodle PHP code, I see that the "Viewing the __" string is declared in the following Moodle file:
- lang/en/completion.php
- Click here to view the PHP code
It is called "viewingactivity" and it is used in the "get_details()" method of the "completion_criteria_activity" object, which is in the following file:
- completion/criteria/completion_criteria_activity.php
- Click here to view the PHP code
As you can see from the PHP code, the only completion criteria that get displayed are for (1) viewing, or (2) achieving a certain grade. Any other completion criteria are ignored in this report. Therefore, I believe that this issue affects not only the HotPot module, but any module that uses criteria other than viewing or achieving a certain grade.
This seems less than satisfactory. I would have hoped and expected that the "get_details()" method would allow each activity module to add details of it's own custom completion criteria. However, as we have seen, currently only a couple of common criteria are recognized.
To get this report to behave as you expect, it would be necessary to modify the "completion_criteria_activity.php" file that I linked to earlier. As it is part of core module, it would take a lot of determination to get it changed. Furthermore, each activity module would then need to be altered to give details of its completion criteria. Another possibility is to commission your own report and add it as a plugin to your Moodle site. Neither path is short or easy.
Re: Course completion requirement for HotPot activities
At the top of the "completion_criteria_activity.php" file, I notice the following comments:
* @copyright 2009 Catalyst IT Ltd
* @author Aaron Barnes
This indicates that this report was created 10 years ago, when perhaps completion criteria were not as sophisticated as they are now. Therefore, I would say that this report, and possibly other scripts of that provide the completion criteria functionality, are in need of some modernization to make them aware of custom completion criteria.
Re: Course completion requirement for HotPot activities
Dear Gordon,
Thank you for examining the problem which, I see, is not linked to the HotPot module.
I will discuss the plugin solution with the school's expert. Thank you for the suggestions.
Susanna