How To Copy WatuPRO Data from One Site To Another?

This is a frequently asked question about the quiz plugin WatuPRO.

If you want to copy only a single quiz it might be easier to export and import questions from the “Manage Questions” page. More info about export/import formats is available here.

On the other hand, if you want to copy all your quizzes, takings data, and so on, it’s much better to do it through phpMyAdmin. (See how to access phpMyAdmin on your host. If your hosting control panel is different you may need to ask your hosting support.). Here are the steps you need to do assuming WordPress is already installed on your new site.

  1. In your old site go to phpMyAdmin and export all tables that contain “watupro” in their name. When exporting, include structure and data. See how.
  2. Go to your new site, load phpMyAdmin and import the exported file there.
  3. Install WatuPRO on the new site. It will recognize the imported data.

Using WatuPRO for Polls (New Shortcodes From Reporting Module)

From version 4.3.7 the quiz plugin WatuPRO supports “poll-like” shortcodes through the Reporting module. The shortcodes render a simple bar chart showing how all users have answered a given question. Here’s an example from our open demo quiz: (note that it pulls random 3 of 5 questions so the frog question will not always be loaded) frog-question In this example the chart is shown immediately after answering the quiz. It can however be used everywhere, including in some custom made pages. The shortcode can show either how each answer distributes (for “single choice” and “multiplce choice” questions), or the distribution of correct / incorrect answers (for all other question types). You can get the shortcode for each question from add / edit question page: frog-question-edit Clicking on “How to configure” will take you to the help page which explains how you can change the colors or show “correct/incorrect” chart instead of distribution per answer. Note that this functionality requires the Reporting module.

An SQL Query

You like this so much that you want to add it in the optional “answer explanation” are of all your existing thousands of questions? You can do it with an SQL query:

UPDATE wp_watupro_question SET explain_answer = CONCAT(explain_answer, '<br>[', 'watupror-poll question_id="', ID, '"]');

Note that you may need to change “wp_watupro_question” depending on how the table prefix is named in your installation.

Social Sharing Addon for WatuPRO

Update: from WatuPRO version 4.6.3 this functionality is embedded in the plugin and you don’t need the social sharing add-on.

We hear you! The old “shareable final screen” feature wasn’t good enough especially for sharing quiz results on Facebook and Twitter.
So here we come with this free social sharing addon:

Download watupro-share plugin

Current version: 0.7
Requires WatuPRO 4.3.4.7 or newer version.

Currently it can generate Facebook and Twitter share buttons.

How To Use It?

Download the plugin from the link above, install from your WordPress Plugins -> Add New -> Upload page, and activate it.

For Facebook Sharing:

1. Go to the new “Social Sharing” page that will appear under your “Watu PRO” menu and set up your Facebook APP Id. If you don’t have any, get one here.

2. Make sure to select “Website” for “App Platform” on your app Settings page:

app-platform

3. Then add your site URL and allow the domain in “App Domains”:

app-site-url

4. Finally, use the shortcode

to display the sharing button in the “Final Screen” area of the “Add/Edit Quiz” page:

final-screen-share

Pressing the button will use the achieved grade title and grade description to be shared on Facebook. And the link will go back to the quiz page so users who follow will be able to take the quiz.

For Twitter Sharing:

Simply select “Show Tweet button” and fill the rest of the fields as you see fit:

twitter-sharing

About Images In Facebook

If the grade description contains an image, it will also be used when sharing. If there is more than one image, the first one will be used.

If you want to select a specific image from several that are included in the grade description, simply add CSS class watupro-share to it.

Enjoy and let us know your thoughts!