All Projects → nrkbeta → Nrkbetaquiz

nrkbeta / Nrkbetaquiz

Licence: gpl-3.0
Require the reader to pass a quiz before being able to comment on an article

Projects that are alternatives of or similar to Nrkbetaquiz

Remove Comments Absolutely
WordPress Plugin to deactivate comments functions and remove areas absolute form the WordPress install
Stars: ✭ 86 (-57.43%)
Mutual labels:  wordpress, comments, wordpress-plugin
Gitium
Keep all your WordPress code on git with a simple plugin and a repo
Stars: ✭ 159 (-21.29%)
Mutual labels:  wordpress, wordpress-plugin
Wp Document Revisions
A document management and version control plugin that allows teams of any size to collaboratively edit files and manage their workflow.
Stars: ✭ 152 (-24.75%)
Mutual labels:  wordpress, wordpress-plugin
Co Cart
🛒 CoCart is a flexible, open-source solution to enabling the shopping cart via the REST API for WooCommerce.
Stars: ✭ 198 (-1.98%)
Mutual labels:  wordpress, wordpress-plugin
Themeforest Wp Theme Approval Checklist
A comprehensive list of rejection messages which you should avoid to get your WordPress theme approved quickly in Themeforest
Stars: ✭ 150 (-25.74%)
Mutual labels:  wordpress, wordpress-plugin
Stackable
Page Builder Blocks for WordPress. An Amazing Block Library for the new WordPress Block Editor (Gutenberg).
Stars: ✭ 151 (-25.25%)
Mutual labels:  wordpress, wordpress-plugin
Wp Graphql Gutenberg
Query gutenberg blocks with wp-graphql
Stars: ✭ 158 (-21.78%)
Mutual labels:  wordpress, wordpress-plugin
Gdpr
This plugin is meant to assist a Controller, Data Processor, and Data Protection Officer (DPO) with efforts to meet the obligations and rights enacted under the GDPR.
Stars: ✭ 141 (-30.2%)
Mutual labels:  wordpress, wordpress-plugin
Accelerated Mobile Pages
Automatically add Accelerated Mobile Pages (AMP Project) functionality on your WordPress.
Stars: ✭ 167 (-17.33%)
Mutual labels:  wordpress, wordpress-plugin
Wp Multi Network
A network management interface for global multisite administrators
Stars: ✭ 168 (-16.83%)
Mutual labels:  wordpress, wordpress-plugin
Syntaxhighlighter
WordPress plugin that makes it easy to post syntax-highlighted code snippets.
Stars: ✭ 194 (-3.96%)
Mutual labels:  wordpress, wordpress-plugin
Codestar Framework
A Simple and Lightweight WordPress Option Framework for Themes and Plugins
Stars: ✭ 147 (-27.23%)
Mutual labels:  wordpress, wordpress-plugin
Live Composer Page Builder
Free page builder plugin for WordPress http://livecomposerplugin.com
Stars: ✭ 143 (-29.21%)
Mutual labels:  wordpress, wordpress-plugin
Classifai
Enhance your WordPress content with Artificial Intelligence and Machine Learning services.
Stars: ✭ 188 (-6.93%)
Mutual labels:  wordpress, wordpress-plugin
Bootstrap Blocks Wordpress Plugin
Bootstrap Gutenberg Blocks for WordPress
Stars: ✭ 143 (-29.21%)
Mutual labels:  wordpress, wordpress-plugin
Pop
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder
Stars: ✭ 160 (-20.79%)
Mutual labels:  wordpress, wordpress-plugin
Gcf
Gutenberg Custom Fields... wait what?
Stars: ✭ 185 (-8.42%)
Mutual labels:  wordpress, wordpress-plugin
Wprecon
WPrecon (WordPress Recon), is a vulnerability recognition tool in CMS Wordpress, developed in Go and with scripts in Lua.
Stars: ✭ 135 (-33.17%)
Mutual labels:  wordpress, wordpress-plugin
Wp Toolbelt
A lightweight, multi-purpose, WordPress plugin with a focus on privacy and speed
Stars: ✭ 141 (-30.2%)
Mutual labels:  wordpress, wordpress-plugin
Models
WordPress plugin to create custom post types and taxonomies using JSON, YAML or PHP files
Stars: ✭ 167 (-17.33%)
Mutual labels:  wordpress, wordpress-plugin

NRKbeta Know2Comment

Require the user to pass a quiz about the story before being able to comment.

This plugin disables the comment form until a user has passed a quiz about the story he's about to comment on.

The plugin is made for Wordpress, but the JavaScript component can easily be implemented into other CMS systems as well.

Usage

  1. Download the plugin
  2. Rename the downloaded folder from nrkbetaquiz-master to nrkbetaquiz
  3. Upload it to your plugins-folder
  4. Enable the plugin in your wordpress backend
  5. Fill out the quiz questions and answers in the post admin interface
  6. Start using it!

Usage (outside of Wordpress)

If you're using a different content management system, you can still use the JavaScript component to enable this functionality on your site.

The component requires a DIV right before the container which holds your comment form. The DIV has two data-attributes: data-nrkbetaquiz and data-nrkbetaquiz-error. The DIV also needs the class nrkbetaquiz.

data-nrkbetaquiz-error is a string with the error message in case the user has answered the quiz wrongfully. data-nrkbetaquiz is an array with the following structure:

[{
    text: 'Who is the current president of the United States?'
    answers: ['Barack Obama', 'Donald Trump', 'Steve Bannon'],
    correct: 2
  }, {
    text: 'What is the radius of Earth?'
    answers: ['6 371 kilometers', '371 kilometers', '200 kilometers'],
    correct: 0
}]

Here's a full example of the implementation:

<script src="nrkbetaquiz.js"></script>
<div class="nrkbetaquiz"
  data-nrkbetaquiz="[{
      text: 'Who is the current president of the United States?'
      answers: ['Barack Obama', 'Donald Trump', 'Steve Bannon'],
      correct: 2
    }, {
      text: 'What is the radius of Earth?'
      answers: ['6 371 kilometers', '371 kilometers', '200 kilometers'],
      correct: 0
  }]"
  data-nrkbetaquiz-error="You fail">
</div>

<div id="YOUR_COMMENT_FORM_CONTAINER"></div>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].