Require the reader to pass a quiz before being able to comment on an article
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.
nrkbetaquiz-masterto
nrkbetaquiz
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
DIVright before the container which holds your comment form. The
DIVhas two data-attributes:
data-nrkbetaquizand
data-nrkbetaquiz-error. The
DIValso needs the class
nrkbetaquiz.
data-nrkbetaquiz-erroris a string with the error message in case the user has answered the quiz wrongfully.
data-nrkbetaquizis 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: