Supported Activities and Resources
The Ranking Activities AI plugin displays the rating interface (Like/Dislike buttons) to students when they access certain Moodle activities and resources. The rating buttons only appear in the modules listed below; any other module type will not show the rating interface.
When a student opens one of the supported activities or resources, the Like/Dislike buttons are rendered on the page, allowing them to submit feedback as described in the Student Guide.
Supported Modules
The list below matches the whitelist in local/datacurso_ratings/classes/hook_callbacks.php (22 modules as of version 1.0.7).
| # | Type | Moodle Name |
|---|---|---|
| 1 | assign | Assignment |
| 2 | book | Book |
| 3 | chat | Chat (removed from Moodle core in 5.0+) |
| 4 | choice | Choice |
| 5 | data | Database |
| 6 | feedback | Feedback |
| 7 | folder | Folder |
| 8 | forum | Forum |
| 9 | glossary | Glossary |
| 10 | h5pactivity | H5P |
| 11 | hvp | H5P – mod_hvp contributed plugin (distinct from h5pactivity) |
| 12 | imscp | IMS content package |
| 13 | lesson | Lesson |
| 14 | lti | External tool |
| 15 | page | Page |
| 16 | quiz | Quiz |
| 17 | resource | File |
| 18 | scorm | SCORM package |
| 19 | survey | Survey (removed from Moodle core in 5.0+) |
| 20 | url | URL |
| 21 | wiki | Wiki |
| 22 | workshop | Workshop |
Where the buttons are not shown
Even for a supported module, the rating buttons are not rendered when:
- The plugin is disabled site-wide (Enable plugin in courses) or disabled for the course (Enable ratings for this course).
- The user is not logged in or is a guest.
- The page is an editing or configuration page (
modedit.php,edit.php,mod_form.php, or anaction=edit/editsectionorupdaterequest). - The page uses the
embedded,print,redirectormaintenancelayout, or the site is still being installed. - The page is not a module page (
/mod/...) inside a module context.
Notes
- The plugin must be enabled in the general settings for the buttons to be visible.
chatandsurveyare listed for compatibility with Moodle 4.5; these modules no longer exist in Moodle 5.0 and later.hvprequires the third-partymod_hvpplugin;h5pactivityis the core H5P activity.