#Moodle Tip on Reading Messages Students Send (Updated)

Special thanks to Josh Davis for sharing this interesting approach. Just last month, I found myself wishing for an easy way to read all the messages students were sending to each other in our middle school situation, and this solution would have been handy to implement!

Here's the problem as Josh described it on the MoodleMayhem.org email list:
Just thought I'd share with you some PHP I wrote to help solve a problem I was having.  I am running a moodle for my middle school classes and I want them to be able to use the messaging feature, but not abuse the system.  So I wrote a quick and dirty php file to allow me to see all the messages on the system at a glance.  Yes, I am a bit of a control freak in my class.  My moodle only has 150 users who aren't super active with messaging (yet) so this works fine for me but may not work so well for larger ones.  This isn't secure, because anyone who guesses the URL of this php file can read every message, but I plan on fixing that as I improve it.  Also, I know VERY LITTLE about PHP coding so I'm sure there are better ways to do this
Here's the code he shared as a link you can download. Note you'll need to edit out everything but the code.

Thanks, Josh!

Update: Be sure to read the comments and check out Rusty Meyners tip without any special coding:
Rusty provided another link with more details. Give it a shot!

Update #2: Jeff Kitterman pointed out there is a Moodle Admin report that does this same thing without coding, etc. You can read about the Admin->Report->Message Log Report online.

Get Blog Updates via Email!
Enter your email address:
Delivered by FeedBurner

Everything posted on Miguel Guhlin's blogs/wikis are his personal opinion and do not necessarily represent the views of his employer(s) or its clients. Read Full Disclosure


Unknown said…
Miguel, try the following URL, adjusted for your Moodle. No PHP tricks needed - only Role with privilege to read chats.

Josh Davis said…
Wow, that could have saved me some time!
Unknown said…
Oopsie! Turns out not quite that simple. Here is a link to forum discussion and PHP script that I apparently installed and forgot:


Link to the file in question:

I seem to have dropped it into my /var/www/moodle/message
folder two years ago and forgotten it.

My bad :)

Popular posts from this blog

Rough and Ready - #iPad Created Narrated Slideshow

Old Made New: Back to Bunsen Labs Linux (Updated)

The Inside Scoop: EdTech 2020 Virtual Conference #edtech #zoom