Marks in infobox

Marks in infobox

ដោយ mart van der niet នៅ
ចំនួនតប៖ 4

(Moodle 2.5+ (Build: 20130621)

I have disabled "Marks" in the review options (all types of review).

Now the marks do not show up at the end of the question (when using Adaptive mode), but in the grey box (see image) there is still a reference to "Marks out of ...".

Can I disable this? (want to keep the box, do not want the line to show)

 

Thanks in advance.

ឯកសារភ្ជាប់ marked.png
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ mart van der niet

Re: Marks in infobox

ដោយ Tim Hunt នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Particularly helpful Moodlers រូបភាព Peer reviewers រូបភាព Plugin developers

You can only do this by editing the code. The question engine has three states:

  1. Don't display anything
  2. Display just the max available
  3. Display the current mark and the max.

The quiz just uses options 2 and 3.

To change this, edit this line near the end of mod/quiz/locallib.php

        $options->marks = self::extract($quiz->reviewmarks, $when,

                self::MARK_AND_MAX, self::MAX_ONLY);

មធ្យមភាគនៃរង្វាយតម្លៃ:Useful (1)
ឆ្លើយតបទៅកាន់ Tim Hunt

Re: Marks in infobox

ដោយ mart van der niet នៅ

Changed it to

$options->marks = self::extract($quiz->reviewmarks, $when   );

Thanks!

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ mart van der niet

Re: Marks in infobox

ដោយ Tim Hunt នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Particularly helpful Moodlers រូបភាព Peer reviewers រូបភាព Plugin developers

That will probably give errors.

$options->marks = self::extract($quiz->reviewmarks, $when, self::MARK_AND_MAX, self::HIDDEN);

is probably better.

មធ្យមភាគនៃរង្វាយតម្លៃ: -