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

Version Description

Upgrade for bug fixes.

Download this release

Release Info

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

Code changes from version 2.6.3 to 2.6.4

includes/mlw_dashboard.php CHANGED
@@ -144,7 +144,7 @@ function mlw_generate_quiz_dashboard(){
144
  }
145
  </style>
146
  <div class="wrap">
147
- <h2>Quiz Master Next Version <?php echo $mlw_quiz_version; ?><?php _e("Dashboard", "mlw_qmn_text_domain"); ?><a id="opener" href="">(?)</a></h2>
148
 
149
  <?php echo mlw_qmn_show_adverts(); ?>
150
  <!--Display Widget Boxes-->
144
  }
145
  </style>
146
  <div class="wrap">
147
+ <h2>Quiz Master Next Version <?php echo $mlw_quiz_version; ?> <?php _e("Dashboard", "mlw_qmn_text_domain"); ?><a id="opener" href="">(?)</a></h2>
148
 
149
  <?php echo mlw_qmn_show_adverts(); ?>
150
  <!--Display Widget Boxes-->
includes/mlw_qmn_credits.php CHANGED
@@ -91,7 +91,7 @@ function mlw_generate_about_page()
91
  <p>Version 2.6.1 sets all the database tables up to support unicode which means that your quizzes can support special characters and non-latin languages.</p>
92
  <br />
93
  <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Our Premium Add-Ons!</h2>
94
- <p>We have 3 new premium add-ons in our WordPress Store: Export Results (exports your quiz results), Extra Shortcodes (gives you extra shortcodes to use), and Advertisement Be Gone (gets rid of blue-border ads). Visit our <a href="http://mylocalwebstop.com/shop/">WordPress Store</a> for details! </p>
95
  <br />
96
  <h3>Changelog For <?php echo $mlw_quiz_version; ?></h3>
97
  <ul>
91
  <p>Version 2.6.1 sets all the database tables up to support unicode which means that your quizzes can support special characters and non-latin languages.</p>
92
  <br />
93
  <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Our Premium Add-Ons!</h2>
94
+ <p>We have 4 new premium add-ons in our WordPress Store: 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>
95
  <br />
96
  <h3>Changelog For <?php echo $mlw_quiz_version; ?></h3>
97
  <ul>
includes/mlw_quiz.php CHANGED
@@ -1150,7 +1150,7 @@ EOC;
1150
 
1151
  global $wpdb;
1152
  $table_name = $wpdb->prefix . "mlw_results";
1153
- $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, time_taken, time_taken_real, quiz_results, deleted) VALUES (NULL, %d, '%s', %d, %d, %d, %d, %d, '%s', '%s', '%s', '%s', '%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, date("h:i:s A m/d/Y"), date("Y-m-d H:i:s"), $mlw_quiz_results) );
1154
  }
1155
  else
1156
  {
1150
 
1151
  global $wpdb;
1152
  $table_name = $wpdb->prefix . "mlw_results";
1153
+ $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) );
1154
  }
1155
  else
1156
  {
includes/mlw_quiz_install.php CHANGED
@@ -214,6 +214,8 @@ function mlw_quiz_activate()
214
  email TEXT NOT NULL,
215
 
216
  phone TEXT NOT NULL,
 
 
217
 
218
  time_taken TEXT NOT NULL,
219
 
214
  email TEXT NOT NULL,
215
 
216
  phone TEXT NOT NULL,
217
+
218
+ user INT NOT NULL,
219
 
220
  time_taken TEXT NOT NULL,
221
 
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 = "2.6.3";
10
  if ( ! get_option('mlw_quiz_master_version'))
11
  {
12
  add_option('mlw_quiz_master_version' , $data);
@@ -281,6 +281,17 @@ function mlw_quiz_update()
281
  $results = $wpdb->query( "ALTER TABLE ".$wpdb->prefix . "mlw_quizzes CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci" );
282
  $results = $wpdb->query( "ALTER TABLE ".$wpdb->prefix . "mlw_results CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci" );
283
 
 
 
 
 
 
 
 
 
 
 
 
284
  update_option('mlw_quiz_master_version' , $data);
285
  if(!isset($_GET['activate-multi']))
286
  {
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 = "2.6.4";
10
  if ( ! get_option('mlw_quiz_master_version'))
11
  {
12
  add_option('mlw_quiz_master_version' , $data);
281
  $results = $wpdb->query( "ALTER TABLE ".$wpdb->prefix . "mlw_quizzes CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci" );
282
  $results = $wpdb->query( "ALTER TABLE ".$wpdb->prefix . "mlw_results CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci" );
283
 
284
+
285
+ global $wpdb;
286
+ $table_name = $wpdb->prefix . "mlw_results";
287
+ //Update 2.6.4
288
+ if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'user'") != "user")
289
+ {
290
+ $sql = "ALTER TABLE ".$table_name." ADD user INT NOT NULL AFTER phone";
291
+ $results = $wpdb->query( $sql );
292
+ $update_sql = "UPDATE ".$table_name." SET user=0";
293
+ $results = $wpdb->query( $update_sql );
294
+ }
295
  update_option('mlw_quiz_master_version' , $data);
296
  if(!isset($_GET['activate-multi']))
297
  {
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: 2.6.3
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
@@ -124,7 +124,7 @@ function mlw_qmn_show_adverts()
124
  $mlw_advert_text = "";
125
  if ( get_option('mlw_advert_shows') == 'true' )
126
  {
127
- $mlw_random_int = rand(0, 6);
128
  switch ($mlw_random_int) {
129
  case 0:
130
  $mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for details!";
@@ -147,6 +147,9 @@ function mlw_qmn_show_adverts()
147
  case 6:
148
  $mlw_advert_text = "Setting up a new site? Let us take care of the set-up so you back to running your business. Check out our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for more details!";
149
  break;
 
 
 
150
  default:
151
  $mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
152
  }
3
  /*
4
  Plugin Name: Quiz Master Next
5
  Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
6
+ Version: 2.6.4
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
124
  $mlw_advert_text = "";
125
  if ( get_option('mlw_advert_shows') == 'true' )
126
  {
127
+ $mlw_random_int = rand(0, 7);
128
  switch ($mlw_random_int) {
129
  case 0:
130
  $mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for details!";
147
  case 6:
148
  $mlw_advert_text = "Setting up a new site? Let us take care of the set-up so you back to running your business. Check out our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for more details!";
149
  break;
150
+ case 7:
151
+ $mlw_advert_text = "Need a page so your users can see their results from all the quizzes they have taken? Try our new User Dashboard add-on. Check out our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for more details!";
152
+ break;
153
  default:
154
  $mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
155
  }
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, survey, contact, form, email, answer, question
5
  Requires at least: 3.7
6
  Tested up to: 3.9.1
7
- Stable tag: 2.6.3
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.
@@ -103,6 +103,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
103
 
104
  == Changelog ==
105
 
 
 
 
106
  = 2.6.3 (May 9, 2014) =
107
  * Bug Fixes
108
 
@@ -438,6 +441,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
438
 
439
  == Upgrade Notice ==
440
 
 
 
 
441
  = 2.6.3 =
442
  Upgrade for bug fixes.
443
 
4
  Tags: quiz, test, score, survey, contact, form, email, answer, question
5
  Requires at least: 3.7
6
  Tested up to: 3.9.1
7
+ Stable tag: 2.6.4
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.
103
 
104
  == Changelog ==
105
 
106
+ = 2.6.4 (May 12, 2014) =
107
+ * Bug Fixes
108
+
109
  = 2.6.3 (May 9, 2014) =
110
  * Bug Fixes
111
 
441
 
442
  == Upgrade Notice ==
443
 
444
+ = 2.6.4 =
445
+ Upgrade for bug fixes.
446
+
447
  = 2.6.3 =
448
  Upgrade for bug fixes.
449