Find unanswered student questions in Moodle forums
Moodle has no list of forum questions still waiting for a teacher. Our free forumreport_unanswered shows them, oldest first, in any forum.
Short answer: in a busy Q&A or course questions forum, a question that nobody answers slips down the list and stays unanswered. Moodle’s forum shows unread posts, but it has no list of the questions still waiting for a teacher. Our free plugin, forumreport_unanswered, adds that report to every forum.
This is the seventeenth plugin in our series: one plugin for each Moodle plugin type, each one teaching DevLMS Studio, our AI plugin builder, how that type works. We checked the Moodle plugins directory first: it lists no forum report plugins at all, only Moodle’s own summary report.
How to use it
In a forum, open Reports. The report lists the discussions students started that are still open, oldest first, with who started each one, how long it has been waiting, how many replies it has and when the last one came. Choose what to show:
- No reply from a teacher (the default): classmates may have replied, but no teacher has.
- No reply at all: nobody has replied yet.
Moodle labels every forum report link “Reports”, so in forums that also show Moodle’s own summary report there are two links with that name. It supports Moodle 4.5 LTS to 5.3. The code is on GitHub.
Choices we made
- “Teacher” means anyone who can see the report: teachers, non-editing teachers and managers by default. Admins can change that with one permission, without touching code.
- Discussions teachers started are left out. An announcement nobody replied to is not a question waiting for an answer.
- Locked discussions and discussions not shown yet are left out. Deleted replies do not count as answers.
- Separate groups are respected. A tutor who only sees their groups sees only their groups’ questions, plus those for all participants.
How a forum report works
From Moodle 5.3’s forum code and its summary report:
- A forum report is a page of its own. The forum adds a link to it for anyone with the report’s view permission, and that permission must be named exactly after the plugin.
- The page checks the user is allowed in the forum, then reads the forum’s own discussions and posts. It stores nothing, so it has no personal data to export or delete.
We tested it with PHPUnit (8 tests, including groups and a check that students cannot open it). We also changed the code on purpose to count deleted replies, then to stop leaving out teachers’ discussions, and confirmed a test fails each time. Browser tests have a teacher switching between the two lists.
Need a plugin like this for your own Moodle?
Describe it in DevLMS Studio and watch it built and tested in a real Moodle, or ask our team for a fixed price.
Open DevLMS Studio