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

Version Description

Upgrade to fix bug that made questions vanish.

Download this release

Release Info

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

Code changes from version 0.8 to 0.8.1

includes/mlw_main_page.php CHANGED
@@ -194,19 +194,10 @@ function quiz_wpss_mrt_meta_box2()
194
  <div>
195
  <table width='100%'>
196
  <tr>
197
- <td align='left'>0.8 (December 1, 2013)</td>
198
  </tr>
199
  <tr>
200
- <td align='left'>* Added Spam Prevention Techniques To Backend</td>
201
- </tr>
202
- <tr>
203
- <td align='left'>* Added Ability To Reorder Questions</td>
204
- </tr>
205
- <tr>
206
- <td align='left'>* Added New Section On How-To Page</td>
207
- </tr>
208
- <tr>
209
- <td align='left'>* Bug Fixes</td>
210
  </tr>
211
  </table>
212
  </div>
194
  <div>
195
  <table width='100%'>
196
  <tr>
197
+ <td align='left'>0.8.1 (December 9, 2013)</td>
198
  </tr>
199
  <tr>
200
+ <td align='left'>* Fixed Disappearing Question Bug</td>
 
 
 
 
 
 
 
 
 
201
  </tr>
202
  </table>
203
  </div>
includes/mlw_quiz_admin.php CHANGED
@@ -8,7 +8,7 @@ Copyright 2013, My Local Webstop (email : fpcorso@mylocalwebstop.com)
8
 
9
  function mlw_generate_quiz_admin()
10
  {
11
- $data = "0.8";
12
  if ( ! get_option('mlw_quiz_master_version'))
13
  {
14
  add_option('mlw_quiz_master_version' , $data);
8
 
9
  function mlw_generate_quiz_admin()
10
  {
11
+ $data = "0.8.1";
12
  if ( ! get_option('mlw_quiz_master_version'))
13
  {
14
  add_option('mlw_quiz_master_version' , $data);
includes/mlw_quiz_install.php CHANGED
@@ -159,37 +159,33 @@ function mlw_quiz_activate()
159
  dbDelta($sql);
160
  }
161
 
162
- else
163
-
164
  {
165
- if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'comments'") != "comments")
166
- {
167
- $sql = "ALTER TABLE ".$table_name." ADD comments INT NOT NULL AFTER correct_answer";
168
-
169
- $results = $wpdb->query( $sql );
170
-
171
- $sql = "ALTER TABLE ".$table_name." ADD hints TEXT NOT NULL AFTER comments";
172
-
173
- $results = $wpdb->query( $sql );
174
-
175
- $update_sql = "UPDATE ".$table_name." SET comments=1, hints=''";
176
-
177
- $results = $wpdb->query( $update_sql );
178
- }
179
 
180
- if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'question_order'") != "question_order")
181
- {
182
- $sql = "ALTER TABLE ".$table_name." ADD question_order INT NOT NULL AFTER hints";
183
-
184
- $results = $wpdb->query( $sql );
185
-
186
- $update_sql = "UPDATE ".$table_name." SET question_order=0";
187
-
188
- $results = $wpdb->query( $update_sql );
189
-
190
- }
191
  }
192
-
 
 
 
 
 
 
 
 
 
 
 
 
193
  global $wpdb;
194
 
195
  $table_name = $wpdb->prefix . "mlw_results";
@@ -289,7 +285,7 @@ function mlw_quiz_activate()
289
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
290
  dbDelta($sql);
291
  }
292
- $data = "0.8";
293
  if ( ! get_option('mlw_quiz_master_version'))
294
  {
295
  add_option('mlw_quiz_master_version' , $data);
159
  dbDelta($sql);
160
  }
161
 
162
+ if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'comments'") != "comments")
 
163
  {
164
+ $sql = "ALTER TABLE ".$table_name." ADD comments INT NOT NULL AFTER correct_answer";
 
 
 
 
 
 
 
 
 
 
 
 
 
165
 
166
+ $results = $wpdb->query( $sql );
167
+
168
+ $sql = "ALTER TABLE ".$table_name." ADD hints TEXT NOT NULL AFTER comments";
169
+
170
+ $results = $wpdb->query( $sql );
171
+
172
+ $update_sql = "UPDATE ".$table_name." SET comments=1, hints=''";
173
+
174
+ $results = $wpdb->query( $update_sql );
 
 
175
  }
176
+
177
+ if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'question_order'") != "question_order")
178
+ {
179
+ $sql = "ALTER TABLE ".$table_name." ADD question_order INT NOT NULL AFTER hints";
180
+
181
+ $results = $wpdb->query( $sql );
182
+
183
+ $update_sql = "UPDATE ".$table_name." SET question_order=0";
184
+
185
+ $results = $wpdb->query( $update_sql );
186
+
187
+ }
188
+
189
  global $wpdb;
190
 
191
  $table_name = $wpdb->prefix . "mlw_results";
285
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
286
  dbDelta($sql);
287
  }
288
+ $data = "0.8.1";
289
  if ( ! get_option('mlw_quiz_master_version'))
290
  {
291
  add_option('mlw_quiz_master_version' , $data);
includes/mlw_quiz_options.php CHANGED
@@ -433,6 +433,10 @@ function mlw_generate_quiz_options()
433
  {
434
  ?>
435
  <h2>Quiz Options For <?php echo $mlw_quiz_options->quiz_name; ?><a id="opener" href="">(?)</a></h2>
 
 
 
 
436
  <?php if ($hasCreatedQuestion)
437
  {
438
  ?>
433
  {
434
  ?>
435
  <h2>Quiz Options For <?php echo $mlw_quiz_options->quiz_name; ?><a id="opener" href="">(?)</a></h2>
436
+ <div class="ui-state-error ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
437
+ <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
438
+ <strong></strong>If you are experiencing an error where your questions are missing and cannot add more, try deactivating and re-activating the plugin.</p>
439
+ </div>
440
  <?php if ($hasCreatedQuestion)
441
  {
442
  ?>
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: 0.8
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: 0.8.1
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: fpcorso
3
  Tags: quiz, test, score, survey
4
  Requires at least: 3.0.1
5
  Tested up to: 3.7.1
6
- Stable tag: 0.8
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
9
  Use this plugin to add multiple quizzes, tests, or surveys to your website.
@@ -47,6 +47,9 @@ Feel free to use the support option on the main page of the plugin or from the c
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 0.8 (December 1, 2013) =
51
  * Added Spam Prevention Techniques To Backend
52
  * Added Ability To Reorder Questions
@@ -129,6 +132,9 @@ Feel free to use the support option on the main page of the plugin or from the c
129
 
130
  == Upgrade Notice ==
131
 
 
 
 
132
  = 0.8 =
133
  Upgrade to enjoy several new features and minor bug fixes.
134
 
3
  Tags: quiz, test, score, survey
4
  Requires at least: 3.0.1
5
  Tested up to: 3.7.1
6
+ Stable tag: 0.8.1
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
9
  Use this plugin to add multiple quizzes, tests, or surveys to your website.
47
 
48
  == Changelog ==
49
 
50
+ = 0.8.1 (December 9, 2013) =
51
+ * Fixed Disappearing Question Bug
52
+
53
  = 0.8 (December 1, 2013) =
54
  * Added Spam Prevention Techniques To Backend
55
  * Added Ability To Reorder Questions
132
 
133
  == Upgrade Notice ==
134
 
135
+ = 0.8.1 =
136
+ Upgrade to fix bug that made questions vanish.
137
+
138
  = 0.8 =
139
  Upgrade to enjoy several new features and minor bug fixes.
140