I had a sudden inspiration for how to solve the problem concerning graphics in hot potatoes activities not showing up. Since they still reside in the original directory, rather than along side the rewritten file in the /(course)/hotpot directory, they can't be found unless they are physically moved to the new location.
I've now included code that writes a tag into the new hotpot file. This causes the browser to look in the location specified by the base tag for other files.
It seems to work well on Win XP with Firefox, Netscape 7.0 and MSIE 6.0. Mac browsers weren't as cooperative for me.
I'd appreciate it if anyone using graphics in drag & drop activites (or other hotpot modules) could try out the attached fix and report back the results. This file replaces the one in moodle/mod/hotpot/
Will this also fix the insertion of a background image in Moodle exercises? I have had problems with these ... I was going to work on this problem with my exercises during the Christmas break.
Thanks! I'll give it a try ... maybe sooner than the Christmas holidays! Thanks again for all your work ... you are very much appreciated!
How can I replace $baseid = "<base href=\"$CFG->wwwroot/file.php/$cid/\">\r\n"; in hotpot.php so that the url is http://www.mydomain.com/moodle/file.php?file=/$cid/image.jpg ?
Right now the url for images when I post an activity is http://www.mydomain.com/moodle/file.php/$cid/image.jpg