WatuPRO Basic Bar Chart

From version 5.0.5 the quiz plugin WatuPRO comes with a basic bar chart shortcode that can be used to display a chart in the final page of the quiz.

Here is an example of the chart:

watupro-barchart

This basic chart does not require the Reporting Module. Below is a more detailed explanation how to use the shortcode:

Please note this shortcode can be used only in the quiz output box. At the moment it won’t work anywhere else including certificates.

Using the shortcode

The shortcode to be included in the final screen is [watupro-basic-chart]

It can be used without any attributes in which case will produce a chart like in the image above. You can however use several attributes to customize it:

show  – this attribute defines whether to show both charts, only the points chart, or only the percentages chart. The possible values of this parameter are: ‘both’, ‘points’, ‘percent’.

your_color – the color of the bar with user’s stats (your points, your % correct answer). Defaults to blue. Can accept color as a word or as hexadecimal value.

avg_color – the color of the bar with average stats (avg. points, avg % correct answer). Defaults to gray. Can accept color as a word or as hexadecimal value.

The following attributes are not documented in the Help page because using them improperly can cause on-screen errors:

your_points_text – defines the text written under “Your points” bar. Defaults to “Your points: %s”. You can change it but it must always include the “%s” variable.

avg_points_text – defines the text written under “Avg. points” bar. Defaults to “Avg. points: %s”. You can change it but it must always include the “%s” variable.

your_percent_text – defines the text under “Your % correct” bar. Defaults to “You: %d%% correct”. Must always include the “%d” variable.

avg_percent_text – defines the text under “Avg. % correct” bar. Defaults to “Avg. %d%% correct”. Must always include the “%d” variable.

Here is an example usage including several arguments:

[watupro-basic-chart show="points" your_color="red" avg_color="#00FF00" your_points_text="You: %s points" avg_points_text="Avg.from all users: %s points"]

WatuPRO 5.0.2.4 Critical Bug Fix for WordPress 4.4

Yesterday’s WordPress upgrade to 4.4 is causing a database error when submitting a quiz in most WatuPRO versions and some MySQL versions. This is NOT a security issue but it can cause critical malfunction. So we highly recommend to update to the latest version ASAP.

We are sending version 5.0.2.4 via a newsletter today. If you have not received it, feel free to send us email.

If you have customized the plugin in some way and don’t want to update you can replace only lib/watupro.php where the changes are done. In any other case please update the whole plugin.

Turn Multiple-Answer Gaps Into Drop-downs (WatuPRO Intelligence Module v. >= 5.0.2)

You know that the Intelligence module of WatuPRO allows you to create “fill the gaps” questions. Each of the “gaps” (blanks) can have multiple correct answers when you use the following format:

The apple can be {{{green|red|yellow}}}

In the above example if the user fills green, or red, or yellow in the generated text field, their answer will be correct.

From version 5.0.2 the same format can be used for different purpose by selecting the following checkbox on the Edit Question page:

gaps-dropdownsWhen this is selected, all the gaps that have more than one answer within the question will be turned into drop-down selector. The drop-down selector will have one option for each answer given. The first answer that you have given is the only correct answer. But of course, it will not be shown first – the selections will be randomized so the user will not know which is the correct answer.

So if we use the above example, the correct answer will be “green” and red / yellow will not be correct.

This setting is per-question so it will affect all the blanks within the selected question.