Embedding Quiz in a HTML Page

Embedding Quiz in a HTML Page

by Bala kumar -
Number of replies: 6
Hi ,
Our objective is to have test your understanding at the end of each page to test the student understanding level. we are displaying each lesson as a Label and under each lesson we will have 5- 7 web pages of content.

We need to embed the quiz questions directly to the end of each & every Web page resource. So that student can click on the particular page read through the stuff and take the quiz to check their understanding level. Could any one help me in embedding quiz questions directly to a Web page.

Thanks in Advance !...
Average of ratings: -
In reply to Bala kumar

Re: Embedding Quiz in a HTML Page

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Try the Lesson module.
In reply to Tim Hunt

Re: Embedding Quiz in a HTML Page

by Bala kumar -
We already tried the Lesson activity Tim. We need to embed our Quiz's directly to the end of HTMl page. could you pl,help in tweaking the code?



In reply to Bala kumar

Re: Embedding Quiz in a HTML Page

by Dom F -

Hi Bala

Did you ever find a solution? Im amazed something as imporant as inline quizzes seems such a difficult task for Moodle!

Suggestions welcome, I'll keep hunting...


Dom

In reply to Bala kumar

Re: Embedding Quiz in a HTML Page

by Moises Lizárraga -

Perhaps you can:


1) Create the Quiz,

2) Create the web page where you want to put the quiz.

3) Copy the quiz url

4)Use the following code where you want the quiz to appear:

<iframe src="Put the link to the quiz here" width="800" height="800" style="over-flow: scroll;"> </iframe>


You can change the width and height of the iframe to the desired size. That way you can have the quiz wherever you want.
In reply to Bala kumar

Re: Embedding Quiz in a HTML Page

by Itamar Tzadok -
Alternatively you could add a link to open the quiz in a popup. smile
In reply to Itamar Tzadok

Re: Embedding Quiz in a HTML Page

by Rodney Wolford -

To add some information to Moises' and Itamar's comments:

1) Make a Quiz using the quiz module. When completed, click to launch the quiz. Now look into your browser address bar and you will see the quizzes location, for example: http://YourSite/YourMoodle/mod/quiz/view.php?id=SomeNumber.

2) Copy that address from you browser address bar and place it in the appropriate html code at the end of your Moodle Lesson page. 

3) To place the link into your page, select edit on your page. This will open the TinyMCE editor.

4) Next, click the expansion box on the far left of the TinyMCE icon bar. This expands the icons available. You will see an icon that looks like this: <> Click that option, and it will place you into the html code for your page.

5) Scroll down to the place you want the quiz link to appear and enter the appropriate html code. It could be something like Moises suggested:

<iframe src="Put the link to the quiz here" width="800" height="800" style="over-flow: scroll;"> </iframe>

or you could also make a button:

<form method="post" align="center" action="http://YOUR_SITE/mod/quiz/view.php?id=SomeNumber"> <input id="id_submitbutton" value="Test Name" type="submit" /></form>

You can take it even one step further by placing these quizzes in topic areas at the bottom of your page and then turning them into orphans. That makes them invisible to the user and only accessible through your links. You can also use this same method to place links in your quizzes, if needed, to return to another place in your site.

This may not be completely correct, depending on how your moodle site is set up, but hopefully it will give some additional direction to help you achieve what you want to achieve.

Regards,

Rod