Quizzin WordPress Plugin for Quiz Creation

Quizzin WordPress Plugin lets you add quizzes to your blog. This plugin is designed to be as easy to use as possible. Quizzes, questions and answers can be added from the admin side. This will appear in your post if you add a small HTML comment in your post.

Welcome to Plugin week – in Plugin week, I release a new WordPress Plugin each day, every day for one week. This is the sixth (and final) plugin in that series. The plugins released so far are…

After creating the quiz, create a new post and add the HTML comment [QUIZZIN 1] in it. Here the ‘1’ should be the ID of the quiz to be inserted.

Usin’ Quizzin Plugin

This plugin is pretty straight forward – after enabling the plugin, go to the Manage Quiz page(Manage > Manage Quiz). All the existing quizzes will be show here. You also have the option of creating a new quiz – or editing an existing one.

Click on the ‘Create new Quiz’ link to create a new quiz – you have to fill in three fields – the quiz name, the description and the Final Screen.

The ‘Final screen’ field is very important – you can customize the result of the quiz using this. Basically, what you fill in here will be shown when a user completes the quiz. You can use several variables here. For example, if you put in the text ‘%%SCORE%%’, it will be replaced by the score the user got in the quiz.

The other possible variables are…

Variable

Value

%%SCORE%%

The number of correct answers

%%TOTAL%%

Total number of questions

%%PERCENTAGE%%

Correct answer percentage

%%GRADE%%

1-10 value. 1 is 10% or less, 2 is 20% or less, and so on.

%%WRONG_ANSWERS%%

Number of answers you got wrong

%%RATING%%

A rating of your performance – it could be ‘Failed'(0-39%), ‘Just Passed'(40%-50%), ‘Satisfactory’, ‘Competent’, ‘Good’, ‘Excellent’ and ‘Unbeatable'(100%)

%%QUIZ_NAME%%

The name of the quiz

%%DESCRIPTION%%

The text entered in the description field.

Once you have filled out this form, you will be taken to the next page where you can manage your questions. Click on the ‘Create new Question’ to add your questions and answers. You have to select one of the answers as the correct one.

After you have added all the question, create a new post and add the HTML comment [QUIZZIN 1] – here the 1 should be the ID of the quiz to be inserted. That’s it – you should have a working quiz on your blog now.

See it in Action

Credits

Thanks to ‘The’ Anand for suggesting the idea of a Quiz plugin. Also, Mani Karthik provided a lot of encouragement to create the plugin.

As a matter of fact, Quizzin is the first plugin in the plugin week series. When those two suggested the Quiz plugin, my lazy brain immediately saw the benefits – I get 3 plugins for the price of one. Once the quiz plugin is created, just remove the correct answer option, limit the question to just one and record the answers – and you have a Poll plugin. To create a survey plugin, just remove the correct answer option and record the user’s input. You also need to create a interface to show the results. Voila – you have a survey plugin. That’s right – the Pollin Plugin and Surveys plugin are based on the Quizzin Plugin.

The eventr plugin was created for the Barcamp Kerala. Again, the credit for its suggestion goes to Anand. After that plugin was ready, I am sitting on four unreleased plugins(that is, two plugins and an idea for two more) – that’s when the thought of doing a plugin week hit me. The rest, as they say, is history.

Feedback

If you have any suggestions or notice any problems with the Quizzin WordPress plugin, post it in the Quizzin forum.

That’s it! Plugin week is over. 6 days, 6 plugins. Now, I have to go catch up on some much needed sleep. Happy Blogging!

Hi. I wonder if you have plans to extend the plugin in the future, to provide individual question feedback, add different question types, and allow users to compare their answers against the correct answers. This is very good as far as it goes, and it would be great if it went further. An area where few have ventured so far.

This worked so much better than expected. I love the fact that you can give an explanation about the correct answers. I also like that it marks which questions were answered correctly and which ones were marked incorrectly. I found that to make it look right, I needed to add a little bit of space in front of each possible answer.

Hi binny, I just stumbled over your blog searching for “how to use wordpress for creating a quiz”,am a friend of Mani Karthik..I just wanna say thanx to you coz after hours & hours of searching I found the right page on the internet & I just donno how to say thanx to you for this post n for this plugin Am going to set up a quiz on this coming tuesday it will be taken by my 2000 clg friends & I think am going to use ur plugin but can u say on which wp ver it will work coz its not compatible with 2.7 also it will be great for us if u guide us how we can setup that kind of quiz on lan network coz the quiz is going to take place on lan & also 1 important thing how to declare a final merit list of the top few players after all have finished the quiz so that we can distribute them prizes

your help will be really appreciated

& we will credit you & your plugin infront of our 2000 college friends
with proper respect & screenshots of your website’s home page…coz it would not have been possible without your plugin.Trust me…thanx in advance…may GOD BLESS YOU!!

reply as soon as possible on my mail ID
dont forget quiz is going to happen this tuesday i.e 7-4-09

I checked your plugin on old WP versions its working awesome and must tell you it is something that can be called as cool..

so the only problem I have now:

1.How to create a merit list of let say top 10 players.

2.How to set -1 for each wrong answer(“well I think it can be done after seeing your source code”)

3.Is it possible to create a login type of page per user who is going to take the quiz.
I mean a welcome page consisting of
username=”collegeid of the student”
password=”any default password set by us”
which will be used by the server to identify the winner.

4.wont there be a problem when simultaneously let say 10 people are opening the quiz page on their browser n taking up the quiz.will quiz work fine for everybody?

5. Am planning to set few systems as severs & installing wordpress locally in them & will be serving the quiz page from that server to every terminal.

Plz reply soon buddy, now our team depending on you!
if you do this you will help 1000 of us,reply soon.
& also mail me ur gtalk id.

I am trying to configure this plugin but am having some small problems. I have enabled the Admin over SSL function in the wp-config.php and the Quizzin plugin does not seem to work. I am able to enable the plugin, and then open the “create quiz” page but when I click the create quiz button it sends me to the login page.

The browser is switching from HTTPS to HTTP so I suspect that there might be an absolute reference in the code. I will try to have a poke around, but since you are most familiar I am hoping that you can go “oh yeah, I know where that is”.

Just installed in wpmu 2.7, and mostly works, except the final summary which is supposed to show the correct answers, your answers differently does not. I just see all the answers with an arrow icon next to each, and no background color difference.

Also, even with 1 question, the Next button appears, but does nothing, of course.

I have been trying out your quiz plugin and it is just great. Simple to use and easy to implement. Thank you.

I was curious if there were a way email the quiz results to one or more people. Would you consider adding this functionality? I will start looking through the code but I am not an expert with php. If you could point me in the right direction it would be wonderful.

your plugins is great, I’m very interested. I have downloaded it. 😀 if you don’t mind, my suggestion is how about to the next version, you put additional information that show the administrator who take the quiz or my be the person who wants to take the quiz must enter the name, email, etc. firstly 😆

Hi Binny,
I was looking for a quizz plugin to install on my wp blog and just found out your plugin which is great !
Just one suggestion if i may, would be to make sure to reset the answers once someone has submitted them to get the score; otherwise through several itireration anyone can get to the max. score.
Thanks again

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements — such as a “style” element in the “body” section instead of inside “head” — or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML’s rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML’s “self-closing” tags for “meta” and “link” in the “head” section of a HTML document may cause the parser to infer the end of the “head” section and the beginning of the “body” section (where “link” and “meta” are not allowed; hence the reported error).

The mentioned element is not allowed to appear in the context in which you’ve placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you’ve forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as ”

OK, so I worked out the problem. It’s not with the plug-in at all. It seems like the automatic installer in the current version of WordPress is playing up a little. Just install the plugin manually and it works fine.