Bin-Blog logoBin-Blog

Learn about the latest in Web Development – as soon as I do.

Quizzin WordPress Plugin for Quiz Creation

By Binny V A • Nov 22nd, 2008 • Category: Blogging, Scripts, WordPress

WordPress Plugin Week

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…

Note 1: Quzzin is a beta plugin(as are most of the plugins released in the Plugin Week) – so watch out for bugs. And trust me, there will be quite a few.

Installation

  • Download the zipped file.
  • Extract and upload the folder to /wp-contents/plugins/ folder
  • Go to the Plugin management page of WordPress admin section and enable the Quizzin plugin
  • Go to the Quizzin Management page(Tools > Manage Quiz) to create or edit Quizzes
  • 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.

Quizzin WordPress Plugin - Manage

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.

Quizzin WordPress Plugin - Create

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.

Quizzin WordPress Plugin - New Question

Quizzin WordPress Plugin - Mange Questions in Quiz

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

I have created a WordPress Quiz using the Quizzin plugin. Lets see how well you know wordpress. If you take the quiz, post your results in the comments field.

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!


65 Responses »

  1. Andy says:

    I’m having a problem with the Quizzin plugin on my site http://www.pharmtechguide.com.

    The problem is that it shows one quiz on the main page, and it works, but then the second quiz on the main page won’t work.

    If you click on the link on the non-functioning one and show it on only one page, then it works.

    But, if you choose the category menu, then none of the quizzes on the category menu work unless you select the individual quiz and show it on only one page.

    Any ideas on how to make this work?

    Thanks!

  2. Luis Fernando says:

    Hi!

    I just upgrade my wordpress to 2.8.8 and your plugin doesn’t work :S

    When i try to “Create New Quiz” i got the next message: You do not have sufficient permissions to access this page.

    I tried to fix with a lot of solutions in google but nothing works, if someone have a clue of the problem I appreciate your help…

    Greetings

  3. Luis Fernando says:

    I made a mistake with the version, is wordpress 2.8.6

    I found a solution here:

    http://projects.binnyva.com/forum/topic/error-creating-a-new-quiz-wordpress-285-apache-permission-not-granted

    You can download the latest and functional version here:
    http://projects.binnyva.com/forum/topic/error-creating-a-new-quiz-wordpress-285-apache-permission-not-granted

    Thanks anyway! :D

  4. Diana says:

    Very nice plugin! But I was looking for a plugin alike, more like a test not a quizz ?! Where can I ever find this?

    I´m used to insert the code directly into posts, really messy.

  5. Rogerio says:

    Thanks for plugin, its great!

    I have a problem to create a quiz using WP-MU 2.8.4 with FORCE_SSL_ADMIN

    If i disable FORCE_SSL_ADMIN its works

    could you help me ?

  6. Nimish says:

    Thanks for the plugin…
    Its great…Helped me a lot…
    Is there any thing you can do for Multiple answers option… ???

  7. Nawal says:

    It is really a nice plugin for Quiz. I have used it and working fine.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>