KQMATH / moodle-mod_capquiz

:mushroom: Computer adaptive practice activity module for Moodle
https://moodle.org/plugins/mod_capquiz
GNU General Public License v3.0
4 stars 5 forks source link

Badge system disabled #55

Closed skrede closed 5 years ago

skrede commented 6 years ago

Fix the badge system and use it in CAPQuiz. The classes capquiz_badge_registry and capquiz_badge are responsible for this.

There seems to be a bug within moodle when badge type (column 'type' in the badge database table) is set to 'BADGE_TYPE_COURSE'. A malformed SQL query is attempted. This is solved by changing it to 'BADGE_TYPE_SITE', but this makes badges site wide and not course specific. Unsure what this is caused by.

Additionally, the images used for badges does not show when badges are created.

hgeorgsch commented 6 years ago

Stars have been implemented internally in capquiz, without any dependency on badges. Badges were proposed as a means to implement stars, and there is currently no other need for badges. Therefore badges will remain disabled until the CAP system in itself is fully functional.

hgeorgsch commented 5 years ago

CAPQuiz now transfers a grade to the moodle gradebook. Badges should not, as far as we can see, be an integral part of CAPQuiz, but defined course level using standard Moodle features.