Digital capability tool for civil servants. This is the open repository for anyone to reuse and edit as they see fit.
This project runs on standard LAMP (Linux/Apache/MySQL/PHP) stacks and doesn't have any other dependencies.
- Download and install the latest version of WordPress
- Create a new MySQL database and install WordPress
- Purchase a license for WatuPRO WordPress plugin and install/activate the plugin (OR try the lite version of Watu first)
- Download the files from this repository
- Install the custom theme, available in this repository under
wordpress/wp-content/themes/digitalquiz
- Install the custom reports plugin, available under
wordpress/wp-content/plugins/dfid-reports
- Copy
wordpress/wp-content/plugins/watupro-custom/lib/email_parser.php
toYOUR_NEW_WORDPRESS_PATH/wp-content/plugins/watupro/lib
- this enables the customisation of the email report sent out to quiz takers - Add a bit of custom code to WatuPro's main PHP file, as instructed in
wordpress/wp-content/plugins/watupro-custom/lib/additions_for_watupro.php
- Add a bit of custom code to WatuPro's main JavaScript file, as instructed in
wordpress/wp-content/plugins/watupro-custom/lib/additions_for_main.js
- Go to wp-admin and change the theme to digitalquiz
- You should now be able to open the site with no errors
-
Create a quiz on
/wp-admin/admin.php?page=watupro_exams
-
Create a new Digital quiz page and add the following shortcode:
[watupro QUIZ_ID]
(whereQUIZ_ID
is the id of the quiz you previously created, probably 1 if this is the first quiz) -
Create a new Welcome page and set it to be displayed on the frontpage (from wp-admin/ Settings/ Reading); you can add your welcome copy to this page, as well as a link to the Digital quiz page you previously created
-
We recommend creating separate Question Categories in Watu and name the first one "A. Introductory Questions". The first category (if it's named that way) is being ignored in the scoring report. Should you want to use a different name, make sure you replace it in:
YOUR_NEW_WORDPRESS_PATH/wp-content/plugins/watupro/lib/email_parser.php
YOUR_NEW_WORDPRESS_PATH/wp-content/themes/digitalquiz/dist/js/app.min.js
YOUR_NEW_WORDPRESS_PATH/wp-content/themes/digitalquiz/src/js/app.js
-
The custom reports are available in wp-admin under the Reports section
The theme's CSS is built with SASS and using Gulp as a build tool. To make any changes, make sure you set things up first:
- Install nodeJS
- Go in theme root directory
- Install Bower and Gulp (if global is not working try local install)
npm install -g bower
npm install -g gulp
- Install dependencies
npm install
bower install
- Start gulp runner
gulp watch
Happy coding :).
#Questions
Add any questions about the development or installation of the quiz to Issues here.