Quiz And Survey Master (Formerly Quiz Master Next) - Version 4.6.2

Version Description

(October 21, 2015) = * Bug fix for browsers with JavaScript turned off

Download this release

Release Info

Developer fpcorso
Plugin Icon 128x128 Quiz And Survey Master (Formerly Quiz Master Next)
Version 4.6.2
Comparing to
See all releases

Code changes from version 4.6.1 to 4.6.2

mlw_quizmaster2.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Quiz And Survey Master
4
  * Description: Easily and quickly add quizzes and surveys to your website.
5
- * Version: 4.6.1
6
  * Author: Frank Corso
7
  * Author URI: http://www.mylocalwebstop.com/
8
  * Plugin URI: http://www.quizandsurveymaster.com/
@@ -10,7 +10,7 @@
10
  * Domain Path: /languages
11
  *
12
  * @author Frank Corso
13
- * @version 4.6.1
14
  */
15
  if ( ! defined( 'ABSPATH' ) ) exit;
16
  /**
@@ -28,7 +28,7 @@ class MLWQuizMasterNext
28
  * @var string
29
  * @since 4.0.0
30
  */
31
- public $version = '4.6.1';
32
 
33
  /**
34
  * QMN Alert Manager Object
2
  /**
3
  * Plugin Name: Quiz And Survey Master
4
  * Description: Easily and quickly add quizzes and surveys to your website.
5
+ * Version: 4.6.2
6
  * Author: Frank Corso
7
  * Author URI: http://www.mylocalwebstop.com/
8
  * Plugin URI: http://www.quizandsurveymaster.com/
10
  * Domain Path: /languages
11
  *
12
  * @author Frank Corso
13
+ * @version 4.6.2
14
  */
15
  if ( ! defined( 'ABSPATH' ) ) exit;
16
  /**
28
  * @var string
29
  * @since 4.0.0
30
  */
31
+ public $version = '4.6.2';
32
 
33
  /**
34
  * QMN Alert Manager Object
php/class-qmn-quiz-manager.php CHANGED
@@ -480,8 +480,8 @@ class QMNQuizManager
480
  * @return string The content for the results page section
481
  */
482
  public function display_results($qmn_quiz_options, $qmn_quiz_questions, $qmn_quiz_answers, $qmn_array_for_variables) {
483
- $result = submit_results($qmn_quiz_options, $qmn_quiz_questions, $qmn_quiz_answers, $qmn_array_for_variables);
484
- $results_array = json_decode( $result );
485
  return $results_array['display'];
486
  }
487
 
480
  * @return string The content for the results page section
481
  */
482
  public function display_results($qmn_quiz_options, $qmn_quiz_questions, $qmn_quiz_answers, $qmn_array_for_variables) {
483
+ $result = $this->submit_results($qmn_quiz_options, $qmn_quiz_questions, $qmn_quiz_answers, $qmn_array_for_variables);
484
+ $results_array = $result;
485
  return $results_array['display'];
486
  }
487
 
php/class-qmn-tracking.php CHANGED
@@ -143,18 +143,29 @@ class QMNTracking
143
  $data['inactive_plugins'] = $plugins;
144
 
145
  $theme_data = wp_get_theme();
146
- $theme = $theme_data->Name . ' ' . $theme_data->Version;
147
- $data['theme'] = $theme;
148
 
149
  $mlw_stat_total_quiz = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_quizzes" );
150
  $mlw_stat_total_active_quiz = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_quizzes WHERE deleted=0" );
151
  $mlw_stat_total_questions = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_questions" );
152
  $mlw_stat_total_active_questions = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_questions WHERE deleted=0" );
 
 
153
 
154
  $data["total_quizzes"] = $mlw_stat_total_quiz;
155
  $data["total_active_quizzes"] = $mlw_stat_total_active_quiz;
156
  $data["total_questions"] = $mlw_stat_total_questions;
157
  $data["total_active_questions"] = $mlw_stat_total_active_questions;
 
 
 
 
 
 
 
 
 
158
 
159
  $this->data = $data;
160
  }
143
  $data['inactive_plugins'] = $plugins;
144
 
145
  $theme_data = wp_get_theme();
146
+ $data['theme'] = $theme_data->Name;
147
+ $data['theme_version'] = $theme_data->Version;
148
 
149
  $mlw_stat_total_quiz = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_quizzes" );
150
  $mlw_stat_total_active_quiz = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_quizzes WHERE deleted=0" );
151
  $mlw_stat_total_questions = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_questions" );
152
  $mlw_stat_total_active_questions = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_questions WHERE deleted=0" );
153
+ $mlw_stat_total_results = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_results" );
154
+ $mlw_stat_total_active_results = $wpdb->get_var( "SELECT COUNT(*) FROM ".$wpdb->prefix."mlw_results WHERE deleted=0" );
155
 
156
  $data["total_quizzes"] = $mlw_stat_total_quiz;
157
  $data["total_active_quizzes"] = $mlw_stat_total_active_quiz;
158
  $data["total_questions"] = $mlw_stat_total_questions;
159
  $data["total_active_questions"] = $mlw_stat_total_active_questions;
160
+ $data["total_results"] = $mlw_stat_total_results;
161
+ $data["total_active_results"] = $mlw_stat_total_active_results;
162
+
163
+ $data['original_version'] = get_option('qmn_original_version');
164
+ $data['current_version'] = get_option('mlw_quiz_master_version');
165
+
166
+ $data['quiz_options'] = $wpdb->get_results( "SELECT quiz_name, system, randomness_order, loggedin_user_contact, show_score, send_user_email, send_admin_email, contact_info_location, user_name, user_comp,
167
+ user_email, user_phone, comment_section, question_from_total, total_user_tries, pagination, timer_limit, question_numbering, last_activity, require_log_in, limit_total_entries, disable_answer_onselect, ajax_show_correct, quiz_views, quiz_taken FROM ".$wpdb->prefix."mlw_quizzes WHERE deleted=0" );
168
+
169
 
170
  $this->data = $data;
171
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://mylocalwebstop.com/downloads/donation-service-payment/
4
  Tags: quiz, survey, test, score, exam, questionnaire, email, answer, question, certificate, points, results, math
5
  Requires at least: 3.8.1
6
  Tested up to: 4.3
7
- Stable tag: 4.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,13 +16,8 @@ Easily and quickly add quizzes and surveys to your website.
16
  You can check out the sample quiz with various questions types here: [Sample Quiz](http://quizandsurveymaster.com/quiz/sample-quiz/)!
17
  You can check out the sample survey with pagination here: [Sample Survey](http://quizandsurveymaster.com/quiz/sample-survey/)!
18
 
19
- = Keep Updated =
20
- Keep up with our latest news, updates, and more by [subscribing to our mailing list](http://quizandsurveymaster.com/subscribe-to-our-newsletter/)!
21
-
22
  = Features =
23
 
24
- The easiest and most flexible way to add multiple quizzes, tests, and surveys forms to your website. This plugin allows for unlimited quizzes or surveys each with unlimited amount of questions. The plugin allows you to create the quiz, add it to any page using a customized shortcode, allows the user to take the quiz, and then saves the results. You can set up what the user sees after he or she takes the quiz based on the user's score. You can also have the plugin create a certificate for the user as well!
25
-
26
  = Have Unlimited Quizzes, Tests, Surveys, etc.. =
27
  Each of your quizzes and surveys can have **unlimited** questions and each of those questions can have **unlimited** answers! Your questions can contain **HTML** to show images, Youtube videos and more.
28
 
@@ -44,9 +39,6 @@ After the user takes a quiz or survey, you can have the plugin email you and the
44
  = Very Flexible =
45
  Your quiz or survey can be graded with an incorrect/correct system or a points-based system. Or not at all. You ask for contact information at the beginning or the end and you decide which contact fields are required. You can decide to use all the questions or only a select few chosen at random. You can also set the number of questions per page or have all the questions on one page.
46
 
47
- = Useful For Businesses =
48
- The plugin features useful **statistics** that show how many times each quiz has been viewed and taken and plots the data on several different **graphs** so you can see how the quizzes are doing at a glance. Also, the plugin includes an **audit trail** that logs every action done on the admin side so you can keep up with who is doing what!
49
-
50
  = Categories =
51
  You can assign categories to your questions. You can then show the user their score in a **particular** category or an average score of the categories.
52
 
@@ -64,7 +56,6 @@ You can assign categories to your questions. You can then show the user their sc
64
  * Can enable **hints** for questions
65
  * Can show user why the answer is the correct answer
66
  * Questions can be in predetermined order or random
67
- * **Leaderboards** for every quiz which can be used as shortcode or in included widget
68
  * Keep track how long a user takes on the quiz or survey
69
  * Able to set up time limits on the quiz or survey
70
  * Create and display math formulas
@@ -104,12 +95,6 @@ While Quiz And Survey Master is fully functional and is packed full of features
104
  = How do you use that feature? =
105
  We have begun creating documentation for the plugin. You can view the documentation here: [Documentation](http://quizandsurveymaster.com/documentation/) If you still have any trouble, feel free to use the widget on the quiz dashboard within the plugin to contact me and I will help you.
106
 
107
- = I need a lot of help setting up my quiz, what can you do to help? =
108
- We now offer a premium support plan that offers priority response, technical support, custom styling and more! For details, visit our support page: [Quiz And Survey Master Premium Support](http://quizandsurveymaster.com/support-levels/)
109
-
110
- = I have an idea, how do I contact you? =
111
- Feel free to use the widget on the help page within the plugin or from our [contact page](http://quizandsurveymaster.com/contact-us/).
112
-
113
  = I want to edit the output for %QUESTIONS_ANSWERS%. Can I do that? =
114
 
115
  Yes, it is possible to edit the output of the variable %QUESTIONS_ANSWERS%. When editing your quiz, go to the “Text” tab. Once on the “Text” tab scroll almost all the way down the page and you will see a text area that allows you to edit the contents of %QUESTIONS_ANSWERS%.
@@ -134,6 +119,9 @@ This is usually a theme conflict. You can [checkout out our common conflict solu
134
 
135
  == Changelog ==
136
 
 
 
 
137
  = 4.6.1 (October 20, 2015) =
138
  * Bug fix for rare bug preventing IE usage on a small number of sites
139
 
@@ -174,9 +162,3 @@ Upgrade to use new dynamic form submission, from email addresses, reply-to optio
174
 
175
  = 4.5.5 =
176
  Upgrade to use 5 new style templates as well as a variety of bug fixes
177
-
178
- = 4.5.4 =
179
- Upgrade to fix scroll to top pagination bug and leaderboard widget bug
180
-
181
- = 4.5.3 =
182
- Upgrade to fix a issue with reseting the stats for Quiz Taken and Quiz Views. It was reseting to 1 instead of 0.
4
  Tags: quiz, survey, test, score, exam, questionnaire, email, answer, question, certificate, points, results, math
5
  Requires at least: 3.8.1
6
  Tested up to: 4.3
7
+ Stable tag: 4.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
  You can check out the sample quiz with various questions types here: [Sample Quiz](http://quizandsurveymaster.com/quiz/sample-quiz/)!
17
  You can check out the sample survey with pagination here: [Sample Survey](http://quizandsurveymaster.com/quiz/sample-survey/)!
18
 
 
 
 
19
  = Features =
20
 
 
 
21
  = Have Unlimited Quizzes, Tests, Surveys, etc.. =
22
  Each of your quizzes and surveys can have **unlimited** questions and each of those questions can have **unlimited** answers! Your questions can contain **HTML** to show images, Youtube videos and more.
23
 
39
  = Very Flexible =
40
  Your quiz or survey can be graded with an incorrect/correct system or a points-based system. Or not at all. You ask for contact information at the beginning or the end and you decide which contact fields are required. You can decide to use all the questions or only a select few chosen at random. You can also set the number of questions per page or have all the questions on one page.
41
 
 
 
 
42
  = Categories =
43
  You can assign categories to your questions. You can then show the user their score in a **particular** category or an average score of the categories.
44
 
56
  * Can enable **hints** for questions
57
  * Can show user why the answer is the correct answer
58
  * Questions can be in predetermined order or random
 
59
  * Keep track how long a user takes on the quiz or survey
60
  * Able to set up time limits on the quiz or survey
61
  * Create and display math formulas
95
  = How do you use that feature? =
96
  We have begun creating documentation for the plugin. You can view the documentation here: [Documentation](http://quizandsurveymaster.com/documentation/) If you still have any trouble, feel free to use the widget on the quiz dashboard within the plugin to contact me and I will help you.
97
 
 
 
 
 
 
 
98
  = I want to edit the output for %QUESTIONS_ANSWERS%. Can I do that? =
99
 
100
  Yes, it is possible to edit the output of the variable %QUESTIONS_ANSWERS%. When editing your quiz, go to the “Text” tab. Once on the “Text” tab scroll almost all the way down the page and you will see a text area that allows you to edit the contents of %QUESTIONS_ANSWERS%.
119
 
120
  == Changelog ==
121
 
122
+ = 4.6.2 (October 21, 2015) =
123
+ * Bug fix for browsers with JavaScript turned off
124
+
125
  = 4.6.1 (October 20, 2015) =
126
  * Bug fix for rare bug preventing IE usage on a small number of sites
127
 
162
 
163
  = 4.5.5 =
164
  Upgrade to use 5 new style templates as well as a variety of bug fixes