A while back, I posted some suggestions in the tracker on how to improve the messaging function of Moodle in 2.0 (MDL-16000). I got impatient and a little bored at work, so I sat down and wrote a simple admin report that can show you the last x many messages sent to users on the system. I use it all the time to track down bullying and misuse of the messaging system. Right now it's VERY simple (pagination sort of works, but is buggy and there's no filtering options available) but I thought I'd post it here for Moodle admins to check out, and for developers to have a squiz at.
This is my second Moodle contribution (my first being a theme) and I found the documentation not very helpful for basic things like database calls and getting user information, but I think I did alright(?). I'm seeking feedback on my code and the report's usability, plus perhaps a few feature requests. On my chopping block:
- Filter results by username, role or by keywords
- Tighter integration with Moodle code
- Choose how many messages to display etc.
- Fix the sorting
- Fix the pagination code
- Clean up the code
- Add a custom admin page so this code won't have to piggyback the simpletest report
Plus a few other things. Installation is simple. Just unzip the zip at the root of Moodle and then run the report from the administration box.
Let me know what you think, how I could improve it and whatever else you think would be relevant or useful. Cheers