Hello everyone, (I am using moodle 2.4)
I am really close to having a nice "low-resources" solution to the problems of making graphs in Calculated and Formulas type quiz questions. See discussion in https://moodle.org/mod/forum/discuss.php?d=231118
A loose end, though, is the problem of "portability." What happens if the teacher changes moodle server? Or what if the machine that serves up the graphics changes address? It could be really bad. Imagine you made 100 questions with graphics. Fixing 100 links would be awful!
Right now the graphics links look like this:
http://halverchemphysics.net/moodle/jsxgraph1/GraphForMoodle1.html?graph=x*x
This would draw a parabola. The problem is that if the server address changes from "halverchemphysics" to "joesphysics", then this and all the other questions' links will have to be modified.
I tried to make the link be just
jsxgraph1/GraphForMoodle1.html?graph=x*x
And inside the moodle/question directory putting a symbolic link for jsxgraph1 pointing to the correct directory. This works in some situations, but it often fails because moodle will automatically add the "http://myphysics.net/moodle/" to the start of the link. (Is there a way to prevent that?)
A different approach would be to find a way to change all links from "myphysics" to "yourphysics" throughout an entire course. Is there any way to do that?
Any ideas???
Thanks,
Peter Halverson