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

Version Description

(October 4, 2014) = * Minor Bug Fixes

Download this release

Release Info

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

Code changes from version 3.2.1 to 3.2.2

includes/mlw_newCaptcha.php DELETED
@@ -1,18 +0,0 @@
1
- <?php
2
- $string = '';
3
- for ($i = 0; $i < 5; $i++) {
4
- $string .= chr(rand(97, 122));
5
- }
6
-
7
- $_SESSION['captcha'] = $string; //store the captcha
8
-
9
- $image = imagecreatetruecolor(165, 50); //custom image size
10
- $color = imagecolorallocate($image, 113, 193, 217); // custom color
11
- $white = imagecolorallocate($image, 255, 255, 255); // custom background color
12
- imagefilledrectangle($image,0,0,399,99,$white);
13
- imagettftext ($image, 30, 0, 10, 40, $color, '', $_SESSION['captcha']);
14
-
15
- header("Content-type: image/png");
16
- imagepng($image);
17
-
18
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/mlw_qmn_credits.php CHANGED
@@ -103,11 +103,9 @@ function mlw_generate_about_page()
103
  <p style="text-align: center;">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 <a href="http://mylocalwebstop.com/shop/">WordPress Store</a> for details! </p>
104
  </div>
105
  <div id="mlw_quiz_changelog" style="display: none;">
106
- <h3><?php echo $mlw_quiz_version; ?> (October 2, 2014)</h3>
107
  <ul>
108
- <li>* Added New Captcha Question Type</li>
109
- <li>* Fixed Number Question Type Validation Bug</li>
110
- <li>* Fixed Validation Wrong Border Bug</li>
111
  </ul>
112
  </div>
113
  <div id="mlw_quiz_requested" style="display: none;">
103
  <p style="text-align: center;">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 <a href="http://mylocalwebstop.com/shop/">WordPress Store</a> for details! </p>
104
  </div>
105
  <div id="mlw_quiz_changelog" style="display: none;">
106
+ <h3><?php echo $mlw_quiz_version; ?> (October 4, 2014)</h3>
107
  <ul>
108
+ <li>* Minor Bug Fixes</li>
 
 
109
  </ul>
110
  </div>
111
  <div id="mlw_quiz_requested" style="display: none;">
includes/mlw_quiz.php CHANGED
@@ -884,9 +884,6 @@ function mlw_quiz_shortcode($atts)
884
  $mlw_total_score = 0;
885
  $mlw_question_answers = "";
886
  isset($_POST["total_questions"]) ? $mlw_total_questions = intval($_POST["total_questions"]) : $mlw_total_questions = 0;
887
-
888
- //Integration Action
889
- do_action('mlw_qmn_load_results_page');
890
 
891
  //Update the amount of times the quiz has been taken
892
  $mlw_taken = $mlw_quiz_options->quiz_taken;
@@ -1432,6 +1429,9 @@ EOC;
1432
  global $wpdb;
1433
  $table_name = $wpdb->prefix . "mlw_results";
1434
  $results = $wpdb->query( $wpdb->prepare( "INSERT INTO " . $table_name . " (result_id, quiz_id, quiz_name, quiz_system, point_score, correct_score, correct, total, name, business, email, phone, user, time_taken, time_taken_real, quiz_results, deleted) VALUES (NULL, %d, '%s', %d, %d, %d, %d, %d, '%s', '%s', '%s', '%s', %d, '%s', '%s', '%s', 0)", $mlw_quiz_id, $mlw_quiz_options->quiz_name, $mlw_quiz_options->system, $mlw_points, $mlw_total_score, $mlw_correct, $mlw_total_questions, $mlw_user_name, $mlw_user_comp, $mlw_user_email, $mlw_user_phone, get_current_user_id(), date("h:i:s A m/d/Y"), date("Y-m-d H:i:s"), $mlw_quiz_results) );
 
 
 
1435
  }
1436
  else
1437
  {
884
  $mlw_total_score = 0;
885
  $mlw_question_answers = "";
886
  isset($_POST["total_questions"]) ? $mlw_total_questions = intval($_POST["total_questions"]) : $mlw_total_questions = 0;
 
 
 
887
 
888
  //Update the amount of times the quiz has been taken
889
  $mlw_taken = $mlw_quiz_options->quiz_taken;
1429
  global $wpdb;
1430
  $table_name = $wpdb->prefix . "mlw_results";
1431
  $results = $wpdb->query( $wpdb->prepare( "INSERT INTO " . $table_name . " (result_id, quiz_id, quiz_name, quiz_system, point_score, correct_score, correct, total, name, business, email, phone, user, time_taken, time_taken_real, quiz_results, deleted) VALUES (NULL, %d, '%s', %d, %d, %d, %d, %d, '%s', '%s', '%s', '%s', %d, '%s', '%s', '%s', 0)", $mlw_quiz_id, $mlw_quiz_options->quiz_name, $mlw_quiz_options->system, $mlw_points, $mlw_total_score, $mlw_correct, $mlw_total_questions, $mlw_user_name, $mlw_user_comp, $mlw_user_email, $mlw_user_phone, get_current_user_id(), date("h:i:s A m/d/Y"), date("Y-m-d H:i:s"), $mlw_quiz_results) );
1432
+
1433
+ //Integration Action
1434
+ do_action('mlw_qmn_load_results_page');
1435
  }
1436
  else
1437
  {
includes/mlw_update.php CHANGED
@@ -6,7 +6,7 @@ function mlw_quiz_update()
6
  {
7
 
8
  //Update this variable each update. This is what is checked when the plugin is deciding to run the upgrade script or not.
9
- $data = "3.2.1";
10
  if ( ! get_option('mlw_quiz_master_version'))
11
  {
12
  add_option('mlw_quiz_master_version' , $data);
6
  {
7
 
8
  //Update this variable each update. This is what is checked when the plugin is deciding to run the upgrade script or not.
9
+ $data = "3.2.2";
10
  if ( ! get_option('mlw_quiz_master_version'))
11
  {
12
  add_option('mlw_quiz_master_version' , $data);
mlw_quizmaster2.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Quiz Master Next
5
  Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
6
- Version: 3.2.1
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
3
  /*
4
  Plugin Name: Quiz Master Next
5
  Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
6
+ Version: 3.2.2
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: quiz, test, score, exam, survey, contact, form, email, answer, question
5
  Requires at least: 3.8.1
6
  Tested up to: 4.0
7
- Stable tag: 3.2.1
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.
@@ -104,6 +104,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
104
 
105
  == Changelog ==
106
 
 
 
 
107
  = 3.2.1 (October 2, 2014) =
108
  * Added New Captcha Question Type
109
  * Fixed Number Question Type Validation Bug
4
  Tags: quiz, test, score, exam, survey, contact, form, email, answer, question
5
  Requires at least: 3.8.1
6
  Tested up to: 4.0
7
+ Stable tag: 3.2.2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.
104
 
105
  == Changelog ==
106
 
107
+ = 3.2.2 (October 4, 2014) =
108
+ * Minor Bug Fixes
109
+
110
  = 3.2.1 (October 2, 2014) =
111
  * Added New Captcha Question Type
112
  * Fixed Number Question Type Validation Bug