Making the “Web’s best php shoutbox” even better for your Moodle site

2867

In my post on FreeEmbedChat, if you were observant enough, you would have noticed an interesting-looking block on the lower right-hand corner of my Moodle course page. That’s the section with the red border. Today’s post is about that intriguing block with the text “Whisper” inside it.

Post Pages - Post Inline - WIRIS

One the most useful feedback tools on my Moodle site is a little shoutbox by ShoutPro. The standard ShoutPro (version 1.5.2) allows you to create a shoutbox on your website. It just needs PHP and stores the posts in a flat file.

To be honest, ShoutPro was not my first choice of chat widgets for my Moodle site. Moodle’s Shoutbox was the first. Let me enlighten you with a little flashback. Eight months ago I was happily using the Shoutbox block for my Moodle 1.9.7 site.

I loved Shoutbox and it works fine with newly created Moodle 1.9.x sites. But my site was undergoing a state of flux with me installing any mod, block or filter that looked interesting or pedagogically valuable. So the next thing I knew was an install of Shoutbox would elicit lines of cryptic PHP error codes. So for almost a year I was living without my beloved Shoutbox. It was then that I discovered ShoutPro 1.5.2 and I installed it with gusto. With nearly 34,000 downloads of its installation zip file, ShoutPro’s tag line is “the web’s best php shoutbox”. I’m a believer. Here’s a list of its features.

ShoutPro was not only useful, but very popular among my students. In fact it was a little bit too popular. I say “was” because my students were using it to post all kinds of fun (read: meaningless, at times just thrash-talking each other) text posts. The main reason for this was that it allowed them to be anonymous. The interface allowed anyone to create a fictitious username to post a message. Some of the cheekier ones even used variations of my name to post on the shoutbox. It soon became a distraction among my student during my Computer Lab classes. I love my students and want the best for them, but this was too much!

I was in a dilemma. Having lost the ability to add a Shoutbox block eons ago due to some idiosyncrasy with my Moodle site, I had to depend on ShoutPro as a substitute to get text feedback from students who needed help. Never mind that others in the class were abusing it with mindless chatter, unfortunately the standard ShoutPro code allowed them to hide behind make-believe usernames. No way I could get mad at them for something that the technology allowed them to do. Notwithstanding the rule that you were supposed to pay attention to the lecturer in the compute lab, I allowed it and tolerated it simply because its main function was for my students to send feedback to me. Oh how I longed for a way to stop the fictitious usernames hiding.

Then soon came a time that I was determined to modify it – Moodler-ize it actually. So on August 13th 2011, I finally found out how to modify it so that it automatically used your Moodle username. All thanks to this post by Brian Lowe on a Moodle.org forum. Whoa! This was it. I dove head-first into the ShoutPro code and followed Brian’s instructions and code.

Read more at my blog here.

4 COMMENTS

  1. Two main updates to the zip download file since 31/8/2011.
    (1) A more stringent profanity censorship with a 263-word profanity word list included
    (2) It now works if you work/study in a different timezone as your Moodle server. Just make sure you edit the file config.php and set your $timeoffset to a different value than the default 0. so if your local time is 3:30 PM and the server time (that ShoutPro gives when this is set to 0) is 2:30 PM, then $timeoffset should be set to 1.
    For the full updated zip file as of 31st August 2011, download it from:
    http://i.minus.com/dnPWZxKuJcXcw.zip

  2. Two more updates to the improved ShoutPro chat widget – i.e., WhisperBox.

    Version B:
    Now your avatar appears in the chat stream. More Web 2.0ish. Tested only on Moodle 1.9.x.
    http://i.minus.com/dmSPy1Mhu51GI.zip
    (When you get to the minus.com link, right-click the mouse and choose ‘Save as’ or ‘Save target as’. That will get the file downloaded).

    Version C:
    Some enhancements to the visual layout of a chat post. Username and day/date/time stamp are in gray color. Day/date/time stamp is in smaller font. I like this one better, but a matter of personal taste. Again only tested on Moodle 1.9.x. Maybe someone can verify if it works on Moodle 2.x. 😉
    http://i.minus.com/dkdVbYpouOKSw.php

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.