Tuesday, August 7, 2012

Now you see it, now you don't - making the SpeakPipe icon selectively appear or disappear on your Moodle 1.9/2.x site.

Mashup: a creative combination or mixing of content from different sources. 

SpeakPipe is a cool Web application that allows the readers of your blog, website, Moodle site to send voice messages instead of text feedback.  If you are new to SpeakPipe, Madras Geek has written an excellent article on it here. Dorian Love also has an excellent post here on SpeakPipe.

I think that I have created a mashup of sorts by combining SpeakPipe embed code with Moodle pages. More so because I now know how to make the SpeakPipe icon appear or disappear based on the type of Moodle resource that is currently accessed by the user, or by the URL of a Moodle webpage.

Thanks to Howard Miller, I was introduced to the powerful yet humble me() function.After several hours of testing and Googling stuff, I finally got it working. Here's the code snippet of my Moodle theme's header.html file:

Ratings and Recommendations by outbrain