General developer forum

 
 
Frankie's the name, Moodle's my game!
I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...
Group Particularly helpful Moodlers

Hi.

Remember Geoffrey Glass' Marginalia? The cool forum annotation tool for Moodle 1.9 and Moodle 2.0? Well, I got it working on my Moodle 2.5+ site.  I initially thought that it only worked with Moodle 2.0. I managed to get it to work in Moodle 2.5+ with some sleuthing and tinkering around. I think that it's a great tool for English tutors and teachers as you can annotate text and words within a standard Moodle 2.5 forum! Note: Most of the code is Copyright (c) 2005-2011 Geoffrey Glass and the United Nations.

Figure 1. Hooray! Got it working. Nice annotations with mousehovers!

which is pretty cool, except that when I click the edit or reply button on a post, the TinyMCE editor buttons do not show up, and the upload file's swf animated circle/windmill never stops. 

Figure 2. Hmm,I sinhk that somesinhk is not vorking, yah?

I'm attaching the code that I used for my Moodle 2.5+ site. If anyone can help me solve #1 and #2 side effects, I would be eternally grateful.
I intend to blog about Marginalia for Moodle 2.5+ soon, so it would be great if someone or the persons of the Moodle community could help me pinpoint the source code responsible for the side effects.

References

http://webmarginalia.net/ 
https://code.google.com/p/marginalia/
https://code.google.com/p/marginalia/downloads/detail?name=marginalia-m-2.0-b08.tgz
https://code.google.com/p/marginalia/downloads/detail?name=marginalia-demo-20090107.tgz
http://webmarginalia.net/
http://www.moodlenews.com/2011/a-gem-of-a-tool-for-english-teachers-marginalia-forum-web-annotation-tool-for-moodle-1-9-and-moodle-2-0/
http://www.moodlenews.com/2011/marginalia-and-nanogong-co-existing-in-your-moodle-1-9-forums-a-match-made-in-heaven/
http://www.slideshare.net/cindy.xin/marginalia-enhancing-the-moodle-discussion-forum
http://moodurian.blogspot.com/2011/06/tweaking-marginalia-for-better-visual.html

Installation tips for you
1. First, extract https://code.google.com/p/marginalia/downloads/detail?name=marginalia-demo-20090107.tgz code to your server
2. Next, extract https://code.google.com/p/marginalia/downloads/detail?name=marginalia-m-2.0-b08.tgz code (YourMoodlesite/mod/forum files and YourMoodle/blocks/marginalia files) to your server
3. Then apply the patch (or do the changes yourself manually) of https://dl.dropboxusercontent.com/u/17797520/moodle/marginalia_issue_36.patch
4. Lastly apply the patch
https://dl.dropboxusercontent.com/u/17797520/moodle/marginalia-m.patch
5. Goto Site Administration | Notifications to install the marginalia block
6. Create a forum
7. Change the dropdown box to "Shared Annotations" (see Figure 1 above).
8. Have fun!

Download Marginalia code from here: https://dl.dropboxusercontent.com/u/17797520/moodle/marginalia_tool_moodle25.rar
The download RAR file consists of:
(1) Marginalia block with patched code (done for yar!)
(2) /mod/forum code already patched for yar!
(3) /mod/forum original/vanilla/outta the box Moodle 2.5 code in case you mess up your forum code during installation. Just to be on the safe side, yah?

Me signing off now, and thinking that Marginalia for Moodle 2.5+ is one cool plugin for Teachers and lecturers who use Moodle for giving immediate feedback to students' forum work,
Cheers,
Frankie Kam

 
Average of ratings: -
Picture of Jamie Pratt
Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...
Group DevelopersGroup Documentation writers

Hi Frankie,

That looks like a really useful tool.

It sounds like the html editor and the file manager are failing to load probably because of a js error. If you have not already installed it you might get a hold of the firebug js debugger or similar and turn it and it's js console on and see if it reports  a js error.

Jamie

 
Average of ratings: -
Frankie's the name, Moodle's my game!
Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...
Group Particularly helpful Moodlers

Hi Jamie

You are a genius! I took your tip, installed Firebug 1.11.4 on my Firefox 17.0. When I got to the forum screen with the Marginalia annotations, I turned on the Firebug console with F12 and clicked on the Error tab. Sure enough something showed up:

TypeError: margin.mouseleave is not a function.

Hmm....! mouseleave? I know mouseover, but mouseleave? So I Googled around.
Apparantly, according to http://help.dottoro.com/ljewsllu.php,
mouseleave() works only on Internet Explorer!
But I am using Chrome. Which kinda explains the problems.

I then decided to prototype/experiment my way out of this problem and proceeded to change line 189 of 
file MoodleMarginalia.js from:
margin.mouseleave( function() { margin.removeClass( 'hover' ); } );

to
margin.mouseout( function() { margin.removeClass( 'hover' ); } );

Eureka. it works. Now both the HTMLeditor and File Manager load properly. 

Thanks!
Frankie Kam

 

 
Average of ratings: -
Picture of Jamie Pratt
Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...
Group DevelopersGroup Documentation writers

Nice work Frankie!

 
Average of ratings: -
Frankie's the name, Moodle's my game!
Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...
Group Particularly helpful Moodlers

For those who want to see it in 'action' on my Moodle 2.5.x site.

Cheers! Frankie Kam, Malaysia.

 
Average of ratings: -
Frankie's the name, Moodle's my game!
Re: I got Marginalia forum annotation tool working for Moodle 2.5+ site, BUT...
Group Particularly helpful Moodlers

For those who want to see it in 'action' on my Moodle 2.5.x site.

Cheers! Frankie Kam, Malaysia.

 
Average of ratings: -