You can now preview your quiz while in the admin side by going to the new Preview tab on the Quiz Settings page!
+
Require Users To Be Logged In
+
You can now require users to be logged in to access your quiz. Set this up from the options tab. You can customize the text it shows to non-logged in users on the Text tab.
-
Design Changes
-
This version made several design changes to various pages as we continue to redesign our plugin. We also made many design changes in our code!
+
Limit Total Entries
+
You can now limit the amount of total entries to your quiz. For example, you could say only 10 people can complete the survey. Edit this setting from the options tab. You can customize the text it shows once it reaches the limit on the text tab.
+
+
LaTeX/Tex Support For Mathematics
+
You can now use LaTex/Tex to show mathematic symbols and formulas such as square root, fractions, exponents, and more. You can place your math in any question, answer, or text on the quiz! For help with LaTeX, check out this tutorial.
We Are On GitHub Now
We have had several users ask for this so we thought we would try it out. We now love github! Be sure to make suggestions or contribute.
@@ -109,16 +112,13 @@ function mlw_qmn_setTab(tab) {
We have several new premium add-ons in our WordPress Store: MailPoet Integration (subscribes users to your MailPoet list), MailChimp Integration (subscribes users to your Mailchimp list), Export Results (exports your quiz results), Extra Shortcodes (gives you extra shortcodes to use), User Dashboard (allow users to see the results from all the quizzes they have taken), and Advertisement Be Gone (gets rid of blue-border ads). Visit our WordPress Store for details!
-
(November 20, 2014)
+
(November 22, 2014)
-
* Added Preview Mode (Beta)
-
* Several Design Changes To Quizzes Page
-
* Minor Design Changes To Quiz Settings Page
-
* Added Completion Time To Quiz Results Page
-
* Added Time Taken To Quiz Result Details Page
-
* Created New Hook On Quiz Settings Page
-
* Broke Apart Quiz Settings Backend Into Smaller Functions That Hook Into New Hook
-
* Created New Backend Alert Manager Class To Replace Archaic Old Error System
+
* Added The Ability To Require Users To Be Logged In To Access Quiz
+
* Added Ability To Limit Total Amount Of Entries
+
* Added Ability To Show Mathematic Formulas Using Tex Or LaTex
+
* Set Up Parameters For Action 'mlw_qmn_load_results_page' To Pass Results Id And Quiz Settings
+
* Minor Design Change To Quizzes Page
@@ -130,7 +130,6 @@ function mlw_qmn_setTab(tab) {
Importing Questions
Stats For Each Quiz
-
Force Login/Register Option
Categories
More Social Media Integration
Show Question Amount On Pagination
@@ -139,11 +138,9 @@ function mlw_qmn_setTab(tab) {
Progress Bar For Timer
Ability To Redirect User Instead Of Showing Results Page
Multi-Delete Option For Quiz Results
-
Spam Prevention
Graphical Click Aware Questions
Results Bar Graph For Users Taking Polls
Head To Head Comparison Questions
-
Enhanced Leaderboard
Different Social Media Sharing Text For Different Social Media
Ability To Highlight Incorrect Answers
Set Default Question Type
diff --git a/includes/mlw_quiz.php b/includes/mlw_quiz.php
index 2133f421e..c93c692be 100644
--- a/includes/mlw_quiz.php
+++ b/includes/mlw_quiz.php
@@ -33,6 +33,18 @@ function mlw_quiz_shortcode($atts)
break;
}
+ //Check if user is required to be checked in
+ if ( $mlw_quiz_options->require_log_in == 1 && !is_user_logged_in() )
+ {
+ $mlw_message = htmlspecialchars_decode($mlw_quiz_options->require_log_in_text, ENT_QUOTES);
+ $mlw_message = str_replace( "%QUIZ_NAME%" , $mlw_quiz_options->quiz_name, $mlw_message);
+ $mlw_message = str_replace( "%CURRENT_DATE%" , date("F jS Y"), $mlw_message);
+ $mlw_display = $mlw_message;
+ $mlw_display .= wp_login_form( array('echo' => false) );
+ return $mlw_display;
+ $mlw_qmn_isAllowed = false;
+ }
+
//Check to see if there is limit on the amount of tries
if ( $mlw_quiz_options->total_user_tries != 0 && is_user_logged_in() )
{
@@ -105,6 +117,9 @@ function mlw_quiz_shortcode($atts)
wp_enqueue_script( 'jquery-ui-tooltip' );
wp_enqueue_script( 'jquery-ui-tabs' );
?>
+
@@ -1245,6 +1282,12 @@ function mlw_options_option_tab_content()
+
+
+
+
+
+
@@ -2332,4 +2375,4 @@ function mlw_options_preview_tab_content()
\ No newline at end of file
+?>
diff --git a/includes/mlw_update.php b/includes/mlw_update.php
index 3805312c1..c2115bd66 100644
--- a/includes/mlw_update.php
+++ b/includes/mlw_update.php
@@ -6,7 +6,7 @@ function mlw_quiz_update()
{
//Update this variable each update. This is what is checked when the plugin is deciding to run the upgrade script or not.
- $data = "3.4.1";
+ $data = "3.5.1";
if ( ! get_option('mlw_quiz_master_version'))
{
add_option('mlw_quiz_master_version' , $data);
@@ -254,6 +254,36 @@ function mlw_quiz_update()
$results = $wpdb->query( $update_sql );
}
+ //Update 3.5.1
+ if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'require_log_in'") != "require_log_in")
+ {
+ $sql = "ALTER TABLE ".$table_name." ADD require_log_in INT NOT NULL AFTER last_activity";
+ $results = $wpdb->query( $sql );
+ $update_sql = "UPDATE ".$table_name." SET require_log_in='0'";
+ $results = $wpdb->query( $update_sql );
+ }
+ if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'require_log_in_text'") != "require_log_in_text")
+ {
+ $sql = "ALTER TABLE ".$table_name." ADD require_log_in_text TEXT NOT NULL AFTER require_log_in";
+ $results = $wpdb->query( $sql );
+ $update_sql = "UPDATE ".$table_name." SET require_log_in_text='Enter Text Here'";
+ $results = $wpdb->query( $update_sql );
+ }
+ if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'limit_total_entries'") != "limit_total_entries")
+ {
+ $sql = "ALTER TABLE ".$table_name." ADD limit_total_entries INT NOT NULL AFTER require_log_in";
+ $results = $wpdb->query( $sql );
+ $update_sql = "UPDATE ".$table_name." SET limit_total_entries='0'";
+ $results = $wpdb->query( $update_sql );
+ }
+ if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'limit_total_entries_text'") != "limit_total_entries_text")
+ {
+ $sql = "ALTER TABLE ".$table_name." ADD limit_total_entries_text TEXT NOT NULL AFTER limit_total_entries";
+ $results = $wpdb->query( $sql );
+ $update_sql = "UPDATE ".$table_name." SET limit_total_entries_text='Enter Text Here'";
+ $results = $wpdb->query( $update_sql );
+ }
+
global $wpdb;
$table_name = $wpdb->prefix . "mlw_questions";
diff --git a/mlw_quizmaster2.php b/mlw_quizmaster2.php
index 143bb2454..a6116fe97 100644
--- a/mlw_quizmaster2.php
+++ b/mlw_quizmaster2.php
@@ -3,7 +3,7 @@
/*
Plugin Name: Quiz Master Next
Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
-Version: 3.4.1
+Version: 3.5.1
Author: Frank Corso
Author URI: http://www.mylocalwebstop.com/
Plugin URI: http://www.mylocalwebstop.com/
diff --git a/readme.txt b/readme.txt
index dddaaa9ce..511272ffe 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: quiz, test, score, exam, survey, contact, form, email, answer, question
Requires at least: 3.8.1
Tested up to: 4.0
-Stable tag: 3.4.1
+Stable tag: 3.5.1
License URI: http://www.gnu.org/licenses/gpl-2.0.html
The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.
@@ -37,10 +37,15 @@ The plugin features useful **statistics** that show how many times each quiz has
= Saves The Results For Later Use =
The plugin will **save** the results, the user's answers, the user's comments, and more!
+= Math Formulas =
+You can use Tex or LaTex in questions, answers, and text fields for your quiz. For assistance with LaTex, review this tutorial: [LaTeX](http://www.andy-roberts.net/writing/latex/mathematics_1)
+
= Other Useful Features =
* Allow the user to share the results on *social networks*
* Show all questions on one page or have only one question per page
+* Require user to be logged in
+* Limit amount of total entries to quiz or survey
* Allows for you to create **certificates** for the user
* Can set amount of tries a user has to take the quiz
* Can enable **comment boxes** for each question and/or comment section at the end of the quiz
@@ -104,6 +109,13 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
== Changelog ==
+= 3.5.1 (November 25, 2014) =
+ * Added The Ability To Require Users To Be Logged In To Access Quiz
+ * Added Ability To Limit Total Amount Of Entries
+ * Added Ability To Show Mathematic Formulas Using Tex Or LaTex
+ * Set Up Parameters For Action 'mlw_qmn_load_results_page' To Pass Results Id And Quiz Settings
+ * Minor Design Change To Quizzes Page
+
= 3.4.1 (November 20, 2014) =
* Added Preview Mode (Beta)
* Several Design Changes To Quizzes Page
@@ -534,6 +546,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
== Upgrade Notice ==
+= 3.5.1 =
+Upgrade to require users to be logged in, limit amount of total entries, and show mathematic formulas!
+
= 3.4.1 =
Upgrade for new preview mode, many design changes, and more!