Moodle Plugins directory: Restriction by single quiz question | Moodle.org
Restriction by single quiz question
Availability restriction ::: availability_quizquestion
Maintained by
Tim Hunt,
Shamim Rezaie,
Benjamin Schröder,
Martin Hanusch
This is a Moodle conditional availability rule, which makes it possible
to show or hide another resource, based on the state of one particular question
in one quiz.
Latest release:
367 sites
64 downloads
30 fans
Current versions available: 1
This is a Moodle conditional availability rule, which makes it possible to show or hide another resource, based on the state of one particular question in one quiz. So, if you want show a particular help document to students who got Question 2 in the quiz wrong, well this plugin lets you do that.
At the moment, this only supports non-random questions, but it may be possible to extend it in the future.
Useful links
Contributors
Tim Hunt (Lead maintainer)
Shamim Rezaie: Developer
Benjamin Schröder: Developer
Martin Hanusch: Developer
Please login to view contributors details and/or to contact them
Great plugin! I hope you get a chance to update it.
I started working on this some time ago https://github.com/timhunt/moodle-availability_quizquestion/commit/a0dc93223a55b23d4b49adc87d194157423447ed, but I ran out of time before it was actually working: https://github.com/timhunt/moodle-availability_quizquestion/actions/runs/2012129139.
I have now made filter_embedquestion work, and the fixes required here are probably similar. However, what I don't have at the moment is time to work on it.
I made a start at https://github.com/timhunt/moodle-availability_quizquestion/commit/a0dc93223a55b23d4b49adc87d194157423447ed#diff-68cf389f000a345b3f9a3fa48127930c19fe5ff4e108d37b835754cc2eef0c86, but this does not work yet. I think the failing automated tests point roughly towards what needs to be fixed.
If anyone else is able to work on this, that would be very helpful.
If there is anyone else who can help with this, it would be greatly appreciated. As previously stated, we can't upgrade to Moodle 4 without it. Unfortunately, we're new to this, so don't have the necessary expertise. Best to all, regardless.
@Jeff, are you able to test the lastest version on the main branch in git?
(Other, geeker, methods exist. With git version control system, there are always a million ways to do anything.)
I did a thorough check through its many instances in one of our Courses and the Plugin worked great, once each instance was reset. Unfortunately, every Restriction did need to be reset to the specific Question desired. The reference to the Activity the Question was contained within remained intact, just not the actual question itself.
Sincere thanks for everything; you've certainly got your hands full! You're everywhere!!
FYI, all sorts of things have gotten weird with my upgrade to 4.04 since I Reset the Course in my attempt to fix the 403 Forbidden error I've been getting when I try to add/edit certain questions, (like one quiz still showing an Attempt has been made after the Course was completely Reset; and the Course Summary block no longer showing any courses now), so I'm going to try another upgrade from 3.11. I need to get to it shortly, so if that works for you in terms of testing the upgrade code for this, happy to do it. If not, it's not a big deal for me to reset the Single Question Restrictions again.
Thanks again!!