Importing Quizzes

Importing Quizzes

by Keith Pitchforth -
Number of replies: 7
> I've been attempting to upload questions. I think I have the correct
> format
>
> But I get different errors each time I attempt to do the upload:
> There are no questions in the import file
>
> If I copy and paste the examples in the help files, they work!
>
> Any ideas?
> Thanks
>
> Keith Pitchforth
Average of ratings: -
In reply to Keith Pitchforth

Re: Importing Quizzes

by Matt Campbell -
Could you give a little more detail?  What version of Moodle are you using?  What import routine are you using?  Where did you get the import file?  Do you have a copy of it that you can upload here for someone to look at?

Thanks,
Matt
In reply to Matt Campbell

Re: Importing Quizzes

by Keith Pitchforth -
Hi  Matt

Not very experienced in Moodle!
I've copied the link address from the hyper link
xampp/moodle/question/import.php?category=4

The version we're using is 1.6.1

Attached is a single question file

Thanks for your help
In reply to Keith Pitchforth

Re: Importing Quizzes

by Dr S Bhatia -
the appropriate format would be:

What is a primary source?{
~tomato ketchup
=an original piece of evidence
~a cheeky yound child
~a horse less than one year old}

upload the format i have typed in red as a text file ( and upload in gift format and it'll work like charm.
i am attaching a file for your convenience too. this willl tell u the right formats...it's a moodle doc only....not my creation. though your format should also work coz i have seen it work in some other quiz models though not in moodle , but the one above works flawlessly. don't forget the closing '}' mark.
In reply to Dr S Bhatia

Re: Importing Quizzes

by Dawn Totzke -
Keep in mind I'm a new to this Moodle Quiz Module -
I've read the documentation suggested in these postings.
I can finally get words to import - along with many unwanted characters - and all my questions come in as one question. What am I doing wrong?

figured out how to replace the apostrophe with the code provided
what about semi-colons?
Don't know what version of Moodle our CESA is running but they only started this summer.
I'm a mac user
should I be using text edit? then I only have 4 choices to save as: RTF, HTML, XML
Can't I just use word or excel? The questions are already typed in those formats.

Dawn
In reply to Dawn Totzke

Re: Importing Quizzes

by Dr S Bhatia -
....I can finally get words to import - along with many unwanted characters - and all my questions come in as one question. What am I doing wrong?

Hit 'enter' at the end of every question so as to leave a clear line between each question while preparing them in text format otherwise they will all get imported as one question.


I'm a mac user
should I be using text edit? then I only have 4 choices to save as: RTF, HTML, XML
Can't I just use word or excel? The questions are already typed in those formats.

Well, use the simplest text editor that you can and save as .txt
I THINK using Word should also be ok.....as long as you 'save as' text.
But best is plain text editor, such as "vi," "pico," or "Notepad."
In reply to Dr S Bhatia

Re: Importing Quizzes

by Dawn Totzke -
Thanks for the tip - I'll double check that it is saved as .txt. I do have a clear line in between each question (2 returns)