Giter Site home page Giter Site logo

Comments (6)

JasonEverling avatar JasonEverling commented on September 2, 2024

You can disregard this, it is configured in moodle core like that. I had to create a new function and edit quiz accessmanager and view/review pages to check before opening up the quiz review.

from moodle-quizaccess_ipaddresslist.

vadimonus avatar vadimonus commented on September 2, 2024

Excuse me for not responding for so long time. Moodle accessmanager does not allow special callbacks for review checks, but you can use setup_attempt_page function for checks.
example:
public function setup_attempt_page($page) {
$attemptid = $page->url->param('attempt');
if (empty($attemptid)) {
return;
}
$attemptobj = quiz_attempt::create($attemptid);
if ($attemptobj->is_finished()) {
check for ip here and throw exception on error

And why not to disable it quiz settings attempt review after quiz, but enable it immediately after quiz? Your students will be able to open quiz review only in 2 minutes after quiz is finished, so they would have no time to open it in other place

from moodle-quizaccess_ipaddresslist.

JasonEverling avatar JasonEverling commented on September 2, 2024

It's OK, I did find out it was a core moodle function in the way it works :( . I went ahead and used this method which is working great for now, added a new function and check. I will be refactorng to include a yes/no option on the core quiz itself.

https://github.com/bshp/moodle-bshp_patches/tree/master/mod/quiz

The reason we don't go that way, is because the teachers are paranoid that if a student is reviewing the quiz and another student is 1 foot away would look at their screen. So the class does not review it until everyone is finished.

from moodle-quizaccess_ipaddresslist.

vadimonus avatar vadimonus commented on September 2, 2024

I think you should create improvement ticket at tracker.moodle.org, describing the problem the same way you did it here. If core develpers decide, that this improvement should be done, i will help to prepare code to integration.

from moodle-quizaccess_ipaddresslist.

JasonEverling avatar JasonEverling commented on September 2, 2024

@vadimonus If you wanted to take a look at what I have done and maybe send me some feedback, creating features from scratch is new for me. Right now we are using the fix/mod/quiz branch to force all reviews, I would like to get this part integrated into our version though so that way the teacher has the option and is not forced. Here is the branch with the feature, last 6 commits. https://github.com/bshp/moodle/tree/feature/mod/quiz

from moodle-quizaccess_ipaddresslist.

JasonEverling avatar JasonEverling commented on September 2, 2024

@vadimonus Maybe a checkbox next to each restriction instead of a Yes/No, I couldn't figure that part out though

from moodle-quizaccess_ipaddresslist.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.