這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Quick Questionnaire

外掛說明

Create simple exercises directly in the editor by putting the possible answer(s) in double brackets.
A quick questionnaire must be an ordered or unordened list.

The following types of answers are possible:

Enter the correct answer in a textbox:

The correct answer has to be entered in a textbox.

<ul>
  <li>The capital of France is ...? {text{ Paris }}</li>
</ul>

You can also use a case insensitive textbox by using the itext property:

<ul>
  <li>The capital of France is ...? {itext{ Paris }}</li>
</ul>

Enter the correct answer in a textbox – multiple answers possible:

The correct answer has to be entered in a textbox.

<ul>
  <li>The capital of France or Italy is ...? {text{ Paris | Rome }}</li>
</ul>

Enter the correct answer in a textbox – regular expression:

If you have some regular expression skills, you can also specify this:

<ul>
  <li>The capital of France or Rome is ...? {reg{ /^(Paris|Rome)$/ }}</li>
</ul>

Check the correct answer in radio buttons:

All possible answers are divided by |, the correct answer has to be marked with a *.
The answers are displayed as radio boxes.

<ul>
  <li>The capital of France? {radio{ Paris* | London | Berlin }}</li>
</ul>

Check all possible answers in checkboxes:

Mark alle correct answers with a *.
The answers are displayed as checkboxes.

<ul>
  <li>Countries of Europe? {checkbox{ France* | Netherlands* | Canada }}</li>
</ul>

螢幕擷圖

  • Single select radio boxes
  • Multiple select checkboxes
  • Text input boxes
  • Edit the exercise in the editor is simple

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Quick Questionnaire

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Click on the new menu item “Quick Questionnaire” to create quick questionnaires

常見問題集

How can I change the look of the exercise?

Just override the classes you see in the qq.css file.

Change the options separator

By default the | is used to separate the radio and checkbox options, but you can override this by Defining the EASY_EXERCISE_SEPARATOR constant in wp-config.php.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Quick Questionnaire〉的開發相關工作。

參與者

將〈Quick Questionnaire〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.5

  • Fixed bug: not checking if varaible is array

2.4

  • Add question with a modal window

2.3

  • Only save the list content instead of the whole post content

2.2

  • Added custom block instead of expanding existing list block

2.0

  • Using Gutenberg blocks to enable quick questionnaire lists and show buttons
  • Renamed to quick questionnaire

1.19

  • Override answer separator by defining the QQ_SEPARATOR constant
  • New itext option as a case insensitive textbox
  • Wrap question inside span
  • Removed jQuery dependency

1.18

  • Renamed to Easy Exercise everywhere
  • Changed some CSS

1.17

  • Fixed bug: check for empty global $post variable in run_wptexturize filter

1.16

  • Adding correct answers to default rest API endpoint

1.15

  • Possible to get correct answers of all lists from API

1.14

  • Bug fixes

1.13

  • Added API endpoints to get exercises, check answers and show good answers

1.12

  • Wrap content inside DIV instead of BODY tag

1.11

  • Flush rewrite rules after (de)activation
  • Unregister post type after deactivation

1.10

  • Now working without using PHP sessions

1.9

  • Escape value attribute for radio and checkboxes

1.8

  • JSON stringify on client and json_decode with stripslahes on server – this makes apostrof work

1.7

  • Translation update

1.6

  • Changed name to Easy Exercise

1.5

  • Correctly handling of UTF-8
  • Fix global wptexturize remove, now only for this post type

1.4

  • Accented charachters
  • Prevent three dots rewrite to ellipisis by removing wptexturize from the the_content filter

1.3

  • Localization

1.2

  • Remove tags and category taxonomies (you can set them with register_taxonomy_for_object_type later)

1.1

  • Explicitly set type to text, radio, checkbox or reg.

1.0

  • First release.