Moodle
  1. Moodle
  2. MDL-17892

quiz access for unregistered users (maybe even other modules: forum, glossary, wiki, anything?)

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor 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
    • Rank:
      4935

      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.

        Activity

        Hide
        Tim Hunt added a comment -

        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.

        Show
        Tim Hunt added a comment - 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.
        Hide
        Ray Lawrence added a comment -

        "The real question for me is, should guest attempts show up in the quiz reports or not? "

        No, IMO. We'll be into the territory of "I want them to take the test without logging on but I want to to record who got which scores... which sound like a recipe for much confusion to me.

        Show
        Ray Lawrence added a comment - "The real question for me is, should guest attempts show up in the quiz reports or not? " No, IMO. We'll be into the territory of "I want them to take the test without logging on but I want to to record who got which scores... which sound like a recipe for much confusion to me.
        Hide
        Jeff Forssell added a comment -

        I was this in a forum post today:

        "I beg to disagree: grades for guest users are not meaningless. About half of my class prefer anonymous login. I still want to see how this half performs and what they did not understand. Therefore, I hard changed the code in moodle in order to allow full guest access to quizzes. To avoid confusion, I only write one page quizzes and hide the safe button. This works fine for me."

        Show
        Jeff Forssell added a comment - I was this in a forum post today: "I beg to disagree: grades for guest users are not meaningless. About half of my class prefer anonymous login. I still want to see how this half performs and what they did not understand. Therefore, I hard changed the code in moodle in order to allow full guest access to quizzes. To avoid confusion, I only write one page quizzes and hide the safe button. This works fine for me."
        Hide
        Jeff Forssell added a comment -

        " I was" was supposed to be "I saw" in the post above.

        Show
        Jeff Forssell added a comment - " I was" was supposed to be "I saw" in the post above.
        Hide
        Klaus Schramm added a comment -

        As a teacher, I have more than one interest in this feature:

        1. Students in my class who are sensitive about their personal data should be able to practice anonymously.
        2. Students at the university who have not yet decided if they want to take the class should be allowed a peek into the requirements without signup procedure.
        3. Non-students (internet) who are curious about the teaching method should be able to play around and enjoy the online options, perhaps get inspired and adopt moodle for their purposes.

        For situations 1 to 3 I prefer guest access rather than some dummy account.
        For situation 1 I want to have the results of anonymous quizzes because this information goes back into the teaching (e.g.: typical mistakes are corrected in the next lecture).

        Therefore, I will (eventually) try to change the 2.0 version of moodle to accomodate guest access for quizzes.

        Best regards,
        Klaus Schramm

        Show
        Klaus Schramm added a comment - As a teacher, I have more than one interest in this feature: 1. Students in my class who are sensitive about their personal data should be able to practice anonymously. 2. Students at the university who have not yet decided if they want to take the class should be allowed a peek into the requirements without signup procedure. 3. Non-students (internet) who are curious about the teaching method should be able to play around and enjoy the online options, perhaps get inspired and adopt moodle for their purposes. For situations 1 to 3 I prefer guest access rather than some dummy account. For situation 1 I want to have the results of anonymous quizzes because this information goes back into the teaching (e.g.: typical mistakes are corrected in the next lecture). Therefore, I will (eventually) try to change the 2.0 version of moodle to accomodate guest access for quizzes. Best regards, Klaus Schramm
        Hide
        Joseph Rézeau added a comment -

        Any progress on this feature (with 21 votes)?

        Show
        Joseph Rézeau added a comment - Any progress on this feature (with 21 votes)?
        Hide
        Tim Hunt added a comment -

        Just because it has a lot of votes does not mean it is possible.

        Show
        Tim Hunt added a comment - Just because it has a lot of votes does not mean it is possible.
        Hide
        Joseph Rézeau added a comment -

        Tim:

        Just because it has a lot of votes does not mean it is possible.


        Yes, of course. In 1.9 there was a workaround, which has disappeared in moodle 2.
        If this feature is definitively deemed as impossible, then it would make sense to remove the possibility to give the "attempt" capability to guest in Quiz, to make things more clearer.
        Joseph

        Show
        Joseph Rézeau added a comment - Tim: Just because it has a lot of votes does not mean it is possible. Yes, of course. In 1.9 there was a workaround, which has disappeared in moodle 2. If this feature is definitively deemed as impossible, then it would make sense to remove the possibility to give the "attempt" capability to guest in Quiz, to make things more clearer. Joseph
        Hide
        Didier Jodin added a comment -

        Sorry for this probably naive question : why has it become impossible ?
        The "preview" option in Moodle 1.9 was very useful.
        Quiz access for uneregistered users was a good way
        to "advertise", and many of them became actual students after that preview...

        Show
        Didier Jodin added a comment - Sorry for this probably naive question : why has it become impossible ? The "preview" option in Moodle 1.9 was very useful. Quiz access for uneregistered users was a good way to "advertise", and many of them became actual students after that preview...
        Hide
        Tim Hunt added a comment -

        It has not become impossible.

        (Ab)using preview to let guests attempt quizzes works just as badly/well in 2.x as it did in 1.9.

        You just have to hope that two different guests to not try to attempt the quiz at the same time.

        Show
        Tim Hunt added a comment - It has not become impossible. (Ab)using preview to let guests attempt quizzes works just as badly/well in 2.x as it did in 1.9. You just have to hope that two different guests to not try to attempt the quiz at the same time.
        Hide
        Didier Jodin added a comment -

        I guess there is something I didn't do, then.
        I'm using Moodle 2.2, upgraded from Moodle 1.9
        In Moodle 1.9, the capability "mod/quiz:preview" was given to guests.
        (And they could preview the quizzes).
        I checked if the capability was still given after the update : yes, it is.

        However, no "quiz preview" option when connected as a guest...

        Show
        Didier Jodin added a comment - I guess there is something I didn't do, then. I'm using Moodle 2.2, upgraded from Moodle 1.9 In Moodle 1.9, the capability "mod/quiz:preview" was given to guests. (And they could preview the quizzes). I checked if the capability was still given after the update : yes, it is. However, no "quiz preview" option when connected as a guest...
        Hide
        Tim Hunt added a comment -

        Actually, judging by Joseph's comment above, this is no longer possible in Moodle 2.x. I don't know which change stopped it 'working'.

        I can only repeat what I said above: Patches welcome on this, .... I am unlikely to have time to work on this myself any time soon.

        Show
        Tim Hunt added a comment - Actually, judging by Joseph's comment above, this is no longer possible in Moodle 2.x. I don't know which change stopped it 'working'. I can only repeat what I said above: Patches welcome on this, .... I am unlikely to have time to work on this myself any time soon.
        Hide
        Juan Jung added a comment - - edited

        Hello all,

        Any development on this issue? I have tried different permutations for 'guest' permissions (at the site level, with course and quiz set to inherit), with no success.

        It seems the possibility to have guest users preview quizzes is indeed no longer available. Therefore, the page at http://docs.moodle.org/22/en/Capabilities/mod/quiz:attempt should be updated. It contains contradictory information.

        Show
        Juan Jung added a comment - - edited Hello all, Any development on this issue? I have tried different permutations for 'guest' permissions (at the site level, with course and quiz set to inherit), with no success. It seems the possibility to have guest users preview quizzes is indeed no longer available. Therefore, the page at http://docs.moodle.org/22/en/Capabilities/mod/quiz:attempt should be updated. It contains contradictory information.
        Hide
        Steve Bilton added a comment -

        This type of feature would be incredibly valuable to me and I'm certain many others.
        Although this feature was requested for 1.9, Moodle 2+ should include this funcationality to expand on it's existing features.

        I understand moodle is created to associate records for all users including guests, but why not have multple simultaneous guest accounts within moodle.

        The system can then assign a session to one of the guest accounts (same username and passwords would be nice), then get moodle to automatically choose which guest ID to use. Surely this can be done based on existing session cookies for 'guest' accounts?
        i.e. IF a guest (guest1) account is currently logged in and a new guest (guest2) logs in (with the same user details) THEN give NEW Guest guest 2 ID account. Is this a workable solution?

        You could say have 10 guest accounts if you are likely to have 10 concurrent guests. Obviously the number of accounts can be expanded if required, perhaps a setting in moodle config within the guest user settings.

        Anyway, this feature gets my vote!

        Thanks

        Show
        Steve Bilton added a comment - This type of feature would be incredibly valuable to me and I'm certain many others. Although this feature was requested for 1.9, Moodle 2+ should include this funcationality to expand on it's existing features. I understand moodle is created to associate records for all users including guests, but why not have multple simultaneous guest accounts within moodle. The system can then assign a session to one of the guest accounts (same username and passwords would be nice), then get moodle to automatically choose which guest ID to use. Surely this can be done based on existing session cookies for 'guest' accounts? i.e. IF a guest (guest1) account is currently logged in and a new guest (guest2) logs in (with the same user details) THEN give NEW Guest guest 2 ID account. Is this a workable solution? You could say have 10 guest accounts if you are likely to have 10 concurrent guests. Obviously the number of accounts can be expanded if required, perhaps a setting in moodle config within the guest user settings. Anyway, this feature gets my vote! Thanks
        Hide
        Miro Ilias added a comment -

        I vote for this feature. I wish to have anonymous quiz.

        Show
        Miro Ilias added a comment - I vote for this feature. I wish to have anonymous quiz.
        Hide
        Andrzej Szandala added a comment -

        I vote for this feature. I want to have anonymous quiz.

        Show
        Andrzej Szandala added a comment - I vote for this feature. I want to have anonymous quiz.
        Hide
        Glenys Hanson added a comment -

        My objective is to showcase my Hot Potatoes exercises to teachers and students. I've felt that this is more and more an uphill battle in Moodle. I haven't moved to Moodle 2 yet. If this could be implemented for all activities, I'd revised my decision to leave my beloved Moodle community.

        Show
        Glenys Hanson added a comment - My objective is to showcase my Hot Potatoes exercises to teachers and students. I've felt that this is more and more an uphill battle in Moodle. I haven't moved to Moodle 2 yet. If this could be implemented for all activities, I'd revised my decision to leave my beloved Moodle community.
        Hide
        Eibel Thomas added a comment -

        I really need quiz-attempts for guests, to let students self-check their actual knowledge anonymously, before they enter a course or register in moodle, respectively.
        For me it would be great to

        • let a guest user 'preview' the quiz (as I can see it as teacher)
        • for sure, guest users attempts should not influence each other
        • the guest user may see his/her result right after the attempt
        • if the guest user leaves the quiz (e.g. "Finish review" or "Start a new preview" or logs out (what guest won't do possibly), all associated data may be deleted immediately
        • the guests attempt shall not influence the grade book anyhow (e.g. it should not show up in the grade-book)

        Would be very helpful for me .
        Is this much work?

        Best Regards,
        Thomas Eibel

        Show
        Eibel Thomas added a comment - I really need quiz-attempts for guests, to let students self-check their actual knowledge anonymously, before they enter a course or register in moodle, respectively. For me it would be great to let a guest user 'preview' the quiz (as I can see it as teacher) for sure, guest users attempts should not influence each other the guest user may see his/her result right after the attempt if the guest user leaves the quiz (e.g. "Finish review" or "Start a new preview" or logs out (what guest won't do possibly), all associated data may be deleted immediately the guests attempt shall not influence the grade book anyhow (e.g. it should not show up in the grade-book) Would be very helpful for me . Is this much work? Best Regards, Thomas Eibel
        Hide
        Tim Hunt added a comment -

        This issue was assigned to me automatically, however I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue.

        For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment

        Show
        Tim Hunt added a comment - This issue was assigned to me automatically, however I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue. For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment
        Hide
        Charles Velson Horie added a comment -

        I also should like to have guest access, matching the reasons the Eibel Thomas gives. Sorry, I cannot find the vote button to add further incentive to get it tackled.

        Show
        Charles Velson Horie added a comment - I also should like to have guest access, matching the reasons the Eibel Thomas gives. Sorry, I cannot find the vote button to add further incentive to get it tackled.

          People

          • Votes:
            38 Vote for this issue
            Watchers:
            28 Start watching this issue

            Dates

            • Created:
              Updated: