//This is a very rough importer for Open Office Impress(OOI) slides // Called import00I_0.3_18 created 5/04/2007 version for Moodle 1.8 // please rename import00_v3_18.php to importppt.php in moodle/mod/lesson //Chris Collman hacked from importppt.php the 6/7/2006 version ( refered to as importppt1.6) // Directions: // 1.Export an OOI presentation html document and put into an existing empty folder // 2.Rename html file with presentation name to img0.htm // 3. Copy Outline201.txt to the folder and edit so file names are same (ie max img slide number) // Save this as a txt file called outline00.txt must be in UTF-8 format if using notepad // TIP I created a Outline201.txt file in UTF-8 format with 201 lines and enclosed it for you to edit // There are a series of lines that look like this in outlineOO.txt // href="javascript:GoToSld('img0.htm');" // href="javascript:GoToSld('img1.htm');" // href="javascript:GoToSld('img2.htm');" // and so on for as many img files that are in the folder // THE ONLY REASON FOR THIS FILE IS THAT I DON'T KNOW PHP PROGRAMMING // // 4. Then zip the directory with all of the pages // the zip file is what you want to upload at the promp // There is a Zip file with 4 pages that should be ready to upload called TestImport.zip // TIP: // 1. You can upload one img*.jpg at a time, to replace an existing img*.jpg in Images_LessonName" folder // 2. Want to change all the images, but keep questions in a lesson? Say you have a new backgound slide. // Zip just the img*.jpg files in the web folder upload and unpack them in the correct "Images_LessonName" // Now all your pages have new images (remember to refresh your browser) // What does it do different from importppt1.6 ? // 1. Basically it takes the img0.jpg file and inserts it into a branch page. // 2. Only shows continue button on branch table to student // 3. In this version use the 1.8 file storage system for lesson // 4. ToDo v1.0 look for title in text.htm file and inserts as page title // 5. ToDo v1.0 change way it finds img.htm files. Maybe read dir, create array with old name and new name // sort array by new name (so it is img1, img2..img10 instead of img1, img10..), use old name for lookup // information. This would eliminate need for any outline file. // Note: Add any htm not text.html or any not img.htm should go to top of the list (ie OOI name) // What changes were made with similar look to importppt1.8 // Comments //1 gets OutlineOO.txt, looks for jpg images (this file must be UTF-8 format) // Comments //2 deletes all references to answer (choices student can make) to rid previous and continue buttons // Comments //3 Reverted to current 1.8 importppt saving of images file structure, so no change. //