WintersportQuiz
Quiz voor het aanbevelen van skiegebieden
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/floris999/wintersportquiz/archive/refs/heads/main.zipDescription: WintersportQuiz is a WordPress plugin designed to recommend ski resorts based on user preferences through a quiz.
Author: Dintify
Author URI: https://floris999.github.io
Table of Contents
Description
WintersportQuiz is a WordPress plugin that provides a quiz to recommend ski resorts based on user preferences. Users answer a series of questions, and the plugin suggests the best ski resort for them.
Installation
- Upload the plugin files to the
/wp-content/plugins/wintersportquizdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Ensure the custom database tables are created by activating the plugin. The activation hook will call the
create_custom_tablesfunction.
Usage
- Add the quiz to a page or post using the shortcode
[wintersport_quiz]. - Users can take the quiz by answering a series of questions.
- The plugin will recommend a ski resort based on the user's answers.
Customization
JavaScript and CSS
- JavaScript: The plugin uses jQuery for handling form submissions and animations. The main JavaScript file is located in
assets/script.js. - CSS: The plugin's styles are defined in
assets/style.css.
Adding Questions and Answers
- Questions and answers are defined in a JSON file located at
vragen_antwoorden.json. - Edit the JSON file to add or modify questions and answers.
Controllers
- FormController: Handles form submissions and recommendations. Located in
controllers/FormController.php.
Changelog
1.0.0
- Initial release of WintersportQuiz.
License
This plugin is licensed under the MIT License.