Moodle 2.7 Lesson - Last grade page

Moodle 2.7 Lesson - Last grade page

by Sarah Jane -
Number of replies: 1

I have searched everywhere to how I can hide, remove or bypass the last page in the lesson activity.  The only constant is being told to change the language. This isn't helpful. I see that many people have requested the same thing between 2008 - 2016 but other than the language I do not see a solution.

Can anyone advise how I can drop this last page.  If this option requires me to upgrade my moodle version then happy to do this - this one thing is driving me bonkers.

Hope someone can help.


Sarah

Average of ratings: -
In reply to Sarah Jane

Re: Moodle 2.7 Lesson - Last grade page

by Sarah Jane -

I believe I have found the solution after hours of searching I came across this discussion:  https://moodle.org/mod/forum/discuss.php?d=316357


try replacing the 4 lines

lesson_add_fake_blocks($PAGE, $cm, $lesson, $timer);
    echo $lessonoutput->header($lesson, $cm, $currenttab, $extraeditbuttons, $lessonpageid, get_string("congratulations", "lesson"));
    echo $lessoncontent;
    echo $lessonoutput->footer();

at the end of the mod/lesson/view.php file with just one line

   redirect(new moodle_url('/course/view.php', array('id'=>$course->id)));


Warnings:

  • don't suppress the curly brace at the end of this file !
  • this will remove the congratulation page for all lessons on your website


I am still testing this but so far so good.