Monthly Archives: June 2020

Overwrite Test Attributes from Shortcode in WatuPRO

Some of the attributes of the quizzes in WatuPRO can be overwritten directly by passing shortcode parameters to the main watupro shortcode. When this is done, they have priority over the settings you have chosen in “Edit Quiz” page.

This allows you to publish multple versions of the same quiz in different pages of your site, if for some reason you need this. (Note that the automated links that are created in My Quizzes pages and the shortcodes which show lists of quizzes will randomly link to one of the versions. If this is undesired you should create copies of the quiz instead).

Here are the attributes which can currently be overwritten:

difficulty_level – To show only questions from the given difficulty level. Example usage: [watupro 5 difficulty_level=”Easy”]

category_id – to show only questions from selected category ID

tags – to limit questions per tag. Multiple tags can be passed, separated by comma.

pull_random – to pull X random questions from the quiz.

random_per_category – to pull X random questions per question category.

time_limit – to set a time limit in minutes, decimals allowed.

pagination – to overwrite the pagination setting of the quiz. Possible values (numeric):

  • 0 – each question on its own page
  • 1 – all questions on one page
  • 2 – one page per question category
  • 3 – custom number of questions per page. In this case also set the attribute custom_per_page to the number that you want. Example: [watupro 5 pagination=3 custom_per_page=10]

require_login – 0 or 1 to force require login off or on regardless of the quiz setting

show_last_result=1 – passing this attribute will make the quiz page show the last quiz result if the logged in user has already completed the quiz at least once. At the bottom of their result they will see a “Try again” button. Clicking on that button allows retaking the quiz.

Powerful Question Bank Features in WatuPRO 6.3.8

This feature requires the Intelligence module.

From version 6.3.8 the feature that allows you to reuse questions in the quiz plugin WatuPRO just got dramatically better. (Learn the difference between copying, reusing and import/export of questions here)

Before this version you could only choose which tests to reuse questions from and it used all questions from them. This continues to be the default behavior but now you have much more flexibility. Let’s shortly dive in:

How To Use It

Go to the Manage Questions page of your quiz and select the checkbox to reuse questions. It will open a form that allows you to select the quizzes you want to reuse questions from.

By default it includes all the questions from these quizzes into the current quiz. This works perfectly as a simple question bank. You can still select to pull X random questions from the whole bunch of questions, pull X random questions per question category, or even choose different number of questions from each question category. This happens on Edit quiz -> Advanced Settings tab.

This allows you to control the questions in one or more tests used as question banks. Any changes you do to these questions will be used on the fly on all quizzes that reuse them. This different to copying questions which creates separate copies in each quiz.

Selecting Specific Questions

Till now you could not choose only some of the questions from the source quizzes (except the option to pull a random number). If you wanted specific questions you had to use the Copy feature.

From version 6.3.8 of the plugin you can use the checkbox “Use only selected questions” (shown on the image above) to select exactly which questions you want to reuse.

Note that from the moment you select the checkbox and save your quiz will have no questions at all. After saving all the questions from all source tests will appear on the page in a table very similar to the table that is shown on the Manage Questions page of a regular quiz.

You have to select which questions you want to use (using the checkboxes at the leftmost column) and save using the button at the bottom of the table. From this point further your quiz will be using the selected questions.

There is no Delete link here: if you want to remove a question from the quiz simply unselect the checkbox and save. You can edit or delete the questions only in the quizzes where they are created (the question banks).

Limitations

  • At the moment it’s not possible to reorder the questions in the target quiz. If you don’t use randomization the questions will be shown by the order given in the question banks.
  • To deactivate a question simply un-select it and save so it won’t be used.
  • You can not set a priority of the question for the target quiz. The priority and all other question attributes are give in the question bank.