new developper may be ....

new developper may be ....

by steve Durvin -
Number of replies: 0

Hello everybody ...

I install moodle 1.4   3 days ago and integrate hotpot module esterday.

So, I had a probleme with hot potatoes htm files whitch contains <img> reference . when moodle load the htm page it links the image in the root directory of moddle and not in the user directory where the pix are...

So i modify the hotpot.php page line 154 to replace the path of any 'src=' with the add of this line :

   $alldata[$i]=str_replace("src=\"", "src=\"$CFG->wwwroot/mod/hotpot/pix.php?file=/$cid/", $alldata[$i]);

I 'm not sure the method is really the best but it work and i didnt know PHP 4 days ago ....

Excuse my poor English but i'm French...;-

Average of ratings: -