Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.3
-
Fix Version/s: None
-
Component/s: Quiz
-
Labels:None
-
Database:Any
-
Difficulty:Moderate
-
Affected Branches:MOODLE_19_STABLE
Description
Since Tim hunt wrote today (http://moodle.org/mod/forum/discuss.php?d=113802#p500215) that there was no feature request for this in spite of so many wanting this, I'm taking the "freedom" of putting this in, without searching.
There are many people that have wished for this feature. People that want to easily demonstrate how good Moodle is (and quiz is one of the very good things). Teachers that would like to give prospective students a chance to do a diagnostic test before signing up.
(It would be good to have the possibility even for testing/demonstrating other modules like forum, glossary, wiki)
What would it do?
When a guest clicks on a quiz:
it checks if the quiz is allowed for guests
NO- gives the usual message
Yes:
If self registration is allowed, points out the advantage of registering and offers a link to that.
else
Says that it is creating a temporary ID: guest{no} with pw:{no}{no}{no}=an unused number
the the person can use for 1 hour/day/week that the person can use while doing the quiz (and to come back during that period)
THEN the quiz engine would work as usual, saving results and so forth, but not influencing the gradebook etc for real IDS.
Jeff, particularly for feature requests, there is no point selecting every Affects Version. Just pick the latest released version.
Also, to not that the right way to implement this is nothing to do with authentication. We can do it entirely within the quiz module (from Moodle 2.0 onwards). We just need to change:
1. Any remaining places where it assumes there is only one open attempt per user. Drop that assumption if the current user if guest.
2. If the current user is guest, store the attempt id of this user's attempt in the session if there is one.
3. When showing the list of this user's past attempts, and the start/continue attempt button; when the current user is guest, only use the attempt(s) whose id is stored in the session.
4. (Not sure if this is necessary or a good idea) arrange for guest attempts to be deleted once the user has logged out and the attemptid is gone from that user's session. (Could be done on cron.)
5. Make sure that the mod/quiz/index.php, quiz results block, and quiz reports do not get broken by this. (One option would be to set preview=1 for these attempts, even though they are not really previews.) Another option would be to use preview=2 and give that a new meaning.
The real question for me is, should guest attempts show up in the quiz reports or not?
Patches welcome on this, but only if they are for Moodle 2.0. I am unlikely to have time to work on this myself any time soon.