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

Version Description

Upgrade to enjoy several new features and minor bug fixes.

Download this release

Release Info

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

Code changes from version 0.7.2 to 0.8

includes/mlw_dashboard.php CHANGED
@@ -10,7 +10,7 @@ function mlw_generate_quiz_dashboard(){
10
  $mlw_quiz_version = get_option('mlw_quiz_master_version');
11
 
12
  ///Creates the widgets
13
- add_meta_box("wpss_mrts", 'Quiz Weekly Stats', "mlw_dashboard_box", "quiz_wpss");
14
  add_meta_box("wpss_mrts", 'Help', "mlw_dashboard_box_two", "quiz_wpss2");
15
  add_meta_box("wpss_mrts", 'Quiz Total Stats', "mlw_dashboard_box_three", "quiz_wpss3");
16
  ?>
10
  $mlw_quiz_version = get_option('mlw_quiz_master_version');
11
 
12
  ///Creates the widgets
13
+ add_meta_box("wpss_mrts", 'Quiz Daily Stats', "mlw_dashboard_box", "quiz_wpss");
14
  add_meta_box("wpss_mrts", 'Help', "mlw_dashboard_box_two", "quiz_wpss2");
15
  add_meta_box("wpss_mrts", 'Quiz Total Stats', "mlw_dashboard_box_three", "quiz_wpss3");
16
  ?>
includes/mlw_help.php CHANGED
@@ -85,6 +85,12 @@ function mlw_generate_help_page()
85
  the section labeled Message Templates. In this section you will see a text box for the Message Displayed Before Quiz and the text box for the Message Displayed After Quiz. By customizing these boxes, you will
86
  edit the text shown to the user before the quiz and after the quiz has been taken. Once finished, click the Save Templates button.
87
  </div>
 
 
 
 
 
 
88
  <h3><a href="#">How To Add Your Quiz To A Post Or Page</a></h3>
89
  <div>
90
  First go to the Quizzes page. Once there, copy the shortcode for your quiz from the Quiz Shortcode column. It should look similar to [mlw_quizmaster quiz=1]. Once you have copied your shortcode, go edit the post or
85
  the section labeled Message Templates. In this section you will see a text box for the Message Displayed Before Quiz and the text box for the Message Displayed After Quiz. By customizing these boxes, you will
86
  edit the text shown to the user before the quiz and after the quiz has been taken. Once finished, click the Save Templates button.
87
  </div>
88
+ <h3><a href="#">How To Set-Up Your Quiz For A Correct/Incorrect System</a></h3>
89
+ <div>
90
+ First, go to the Quizzes page. From there, click edit on the quiz you would like to edit. Once the Quiz Options page loads, click on the Quiz Options tab. Ensure that the "Which system is this quiz graded on?"
91
+ option is set to Correct. Now, go back to the Quiz Question tab. When you add or edit a question, fill in the question and the answers. Leave the points fields at 0, and then select the correct answer using
92
+ the radio buttons to the right of the answers. Fill out the rest of the question options any way you need to. Your quiz will now be graded on a correct or incorrect system.
93
+ </div>
94
  <h3><a href="#">How To Add Your Quiz To A Post Or Page</a></h3>
95
  <div>
96
  First go to the Quizzes page. Once there, copy the shortcode for your quiz from the Quiz Shortcode column. It should look similar to [mlw_quizmaster quiz=1]. Once you have copied your shortcode, go edit the post or
includes/mlw_main_page.php CHANGED
@@ -194,14 +194,20 @@ function quiz_wpss_mrt_meta_box2()
194
  <div>
195
  <table width='100%'>
196
  <tr>
197
- <td align='left'>0.7.2 (November 24, 2013)</td>
198
  </tr>
199
  <tr>
200
- <td align='left'>* Bug Fixes</td>
 
 
 
201
  </tr>
202
  <tr>
203
  <td align='left'>* Added New Section On How-To Page</td>
204
  </tr>
 
 
 
205
  </table>
206
  </div>
207
  <?php
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>
213
  <?php
includes/mlw_quiz.php CHANGED
@@ -29,7 +29,7 @@ function mlw_quiz_shortcode($atts)
29
 
30
 
31
  //Load questions
32
- $sql = "SELECT * FROM " . $wpdb->prefix . "mlw_questions" . " WHERE quiz_id=".$mlw_quiz_id." AND deleted='0'";
33
  $mlw_questions = $wpdb->get_results($sql);
34
 
35
 
@@ -39,6 +39,7 @@ function mlw_quiz_shortcode($atts)
39
  $mlw_user_comp = $_POST["mlwUserComp"];
40
  $mlw_user_email = $_POST["mlwUserEmail"];
41
  $mlw_user_phone = $_POST["mlwUserPhone"];
 
42
 
43
  /*
44
  The following code is for displaying the quiz and completion screen
@@ -142,7 +143,7 @@ function mlw_quiz_shortcode($atts)
142
  $mlw_display .= "<table>";
143
  $mlw_display .= "<thead>";
144
 
145
- //See if the site wants to ask for anything, then ask for it
146
  if ($mlw_quiz_options->user_name != 2)
147
  {
148
  $mlw_display .= "<tr valign='top'>";
@@ -234,6 +235,8 @@ function mlw_quiz_shortcode($atts)
234
  $mlw_display .= "<textarea cols='70' rows='15' id='mlwQuizComments' name='mlwQuizComments' ></textarea>";
235
  $mlw_display .= "<br />";
236
  }
 
 
237
  $mlw_display .= "<input type='hidden' name='complete_quiz' value='confirmation' />";
238
  $mlw_display .= "<input type='submit' value='".$mlw_quiz_options->submit_button_text."' />";
239
  $mlw_display .= "<span name='mlw_error_message_bottom' id='mlw_error_message_bottom' style='color: red;'></span><br />";
@@ -243,6 +246,8 @@ function mlw_quiz_shortcode($atts)
243
  //Display Completion Screen
244
  else
245
  {
 
 
246
  //Variables needed for scoring
247
  $mlw_points = 0;
248
  $mlw_correct = 0;
@@ -384,6 +389,11 @@ function mlw_quiz_shortcode($atts)
384
  "(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) " .
385
  "VALUES (NULL , " . $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."', 0)";
386
  $results = $wpdb->query( $insert );
 
 
 
 
 
387
  }
388
  return $mlw_display;
389
  }
29
 
30
 
31
  //Load questions
32
+ $sql = "SELECT * FROM " . $wpdb->prefix . "mlw_questions" . " WHERE quiz_id=".$mlw_quiz_id." AND deleted='0' ORDER BY question_order ASC";
33
  $mlw_questions = $wpdb->get_results($sql);
34
 
35
 
39
  $mlw_user_comp = $_POST["mlwUserComp"];
40
  $mlw_user_email = $_POST["mlwUserEmail"];
41
  $mlw_user_phone = $_POST["mlwUserPhone"];
42
+ $mlw_spam_email = $_POST["email"];
43
 
44
  /*
45
  The following code is for displaying the quiz and completion screen
143
  $mlw_display .= "<table>";
144
  $mlw_display .= "<thead>";
145
 
146
+ //See if the site wants to ask for any contact information, then ask for it
147
  if ($mlw_quiz_options->user_name != 2)
148
  {
149
  $mlw_display .= "<tr valign='top'>";
235
  $mlw_display .= "<textarea cols='70' rows='15' id='mlwQuizComments' name='mlwQuizComments' ></textarea>";
236
  $mlw_display .= "<br />";
237
  }
238
+ $mlw_display .= "<span style='display: none;'>If you are human, leave this field blank or you will be considered spam:</span>";
239
+ $mlw_display .= "<input style='display: none;' type='text' name='email' id='email' />";
240
  $mlw_display .= "<input type='hidden' name='complete_quiz' value='confirmation' />";
241
  $mlw_display .= "<input type='submit' value='".$mlw_quiz_options->submit_button_text."' />";
242
  $mlw_display .= "<span name='mlw_error_message_bottom' id='mlw_error_message_bottom' style='color: red;'></span><br />";
246
  //Display Completion Screen
247
  else
248
  {
249
+ if (empty($mlw_spam_email))
250
+ {
251
  //Variables needed for scoring
252
  $mlw_points = 0;
253
  $mlw_correct = 0;
389
  "(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) " .
390
  "VALUES (NULL , " . $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."', 0)";
391
  $results = $wpdb->query( $insert );
392
+ }
393
+ else
394
+ {
395
+ $mlw_display .= "Thank you.";
396
+ }
397
  }
398
  return $mlw_display;
399
  }
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.7.2";
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";
12
  if ( ! get_option('mlw_quiz_master_version'))
13
  {
14
  add_option('mlw_quiz_master_version' , $data);
includes/mlw_quiz_install.php CHANGED
@@ -144,6 +144,8 @@ function mlw_quiz_activate()
144
  comments INT NOT NULL,
145
 
146
  hints TEXT NOT NULL,
 
 
147
 
148
  deleted INT NOT NULL,
149
 
@@ -173,7 +175,19 @@ function mlw_quiz_activate()
173
  $update_sql = "UPDATE ".$table_name." SET comments=1, hints=''";
174
 
175
  $results = $wpdb->query( $update_sql );
176
- }
 
 
 
 
 
 
 
 
 
 
 
 
177
  }
178
 
179
  global $wpdb;
@@ -275,7 +289,7 @@ function mlw_quiz_activate()
275
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
276
  dbDelta($sql);
277
  }
278
- $data = "0.7.2";
279
  if ( ! get_option('mlw_quiz_master_version'))
280
  {
281
  add_option('mlw_quiz_master_version' , $data);
144
  comments INT NOT NULL,
145
 
146
  hints TEXT NOT NULL,
147
+
148
+ question_order INT NOT NULL,
149
 
150
  deleted INT NOT NULL,
151
 
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;
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);
includes/mlw_quiz_options.php CHANGED
@@ -55,12 +55,13 @@ function mlw_generate_quiz_options()
55
  $mlw_edit_question_id = $_POST["edit_question_id"];
56
  $edit_comments = $_POST["edit_comments"];
57
  $edit_hint = $_POST["edit_hint"];
 
58
 
59
  //Edit question
60
  if ($edit_question_success == "confirmation")
61
  {
62
  $quiz_id = $_POST["quiz_id"];
63
- $update = "UPDATE " . $wpdb->prefix . "mlw_questions" . " SET question_name='".$edit_question_name."', answer_one='".$edit_answer_one."', answer_one_points='".$edit_answer_one_points."', answer_two='".$edit_answer_two."', answer_two_points='".$edit_answer_two_points."', answer_three='".$edit_answer_three."', answer_three_points='".$edit_answer_three_points."', answer_four='".$edit_answer_four."', answer_four_points='".$edit_answer_four_points."', answer_five='".$edit_answer_five."', answer_five_points='".$edit_answer_five_points."', answer_six='".$edit_answer_six."', answer_six_points='".$edit_answer_six_points."', correct_answer='".$edit_correct_answer."', comments='".$edit_comments."', hints='".$edit_hint."' WHERE question_id=".$mlw_edit_question_id;
64
  $results = $wpdb->query( $update );
65
  $hasUpdatedQuestion = true;
66
 
@@ -102,7 +103,7 @@ function mlw_generate_quiz_options()
102
  $quiz_id = $_POST["quiz_id"];
103
  $table_name = $wpdb->prefix . "mlw_questions";
104
  $insert = "INSERT INTO " . $table_name .
105
- " (question_id, quiz_id, question_name, answer_one, answer_one_points, answer_two, answer_two_points, answer_three, answer_three_points, answer_four, answer_four_points, answer_five, answer_five_points, answer_six, answer_six_points, correct_answer, comments, hints, deleted) VALUES (NULL , ".$quiz_id.", '" . $question_name . "' , '" . $answer_one . "', ".$answer_one_points.", '" . $answer_two . "', ".$answer_two_points.", '" . $answer_three . "', ".$answer_three_points.", '" . $answer_four . "', ".$answer_four_points.", '" . $answer_five . "', ".$answer_five_points.", '" . $answer_six . "', ".$answer_six_points.", ".$correct_answer.", '".$comments."', '".$hint."', 0)";
106
  $results = $wpdb->query( $insert );
107
  $hasCreatedQuestion = true;
108
 
@@ -122,7 +123,7 @@ function mlw_generate_quiz_options()
122
  global $wpdb;
123
  $table_name = $wpdb->prefix . "mlw_questions";
124
  $sql = "SELECT * FROM " . $table_name . " WHERE quiz_id=".$quiz_id." AND deleted=0";
125
- $sql .= " ORDER BY question_id ASC";
126
  $mlw_question_data = $wpdb->get_results($sql);
127
  $is_new_quiz = $wpdb->num_rows;
128
  }
@@ -373,7 +374,7 @@ function mlw_generate_quiz_options()
373
  idText.innerHTML = id;
374
  idHidden.value = id;
375
  };
376
- function editQuestion(id, question, answerOne, answerOnePoints, answerTwo, answerTwoPoints, answerThree, answerThreePoints, answerFour, answerFourPoints, answerFive, answerFivePoints, answerSix, answerSixPoints, correctAnswer, comments, hint){
377
  $j("#edit_question_dialog").dialog({
378
  autoOpen: false,
379
  show: 'blind',
@@ -401,6 +402,7 @@ function mlw_generate_quiz_options()
401
  document.getElementById("edit_answer_five_points").value = answerFivePoints;
402
  document.getElementById("edit_answer_six_points").value = answerSixPoints;
403
  document.getElementById("edit_hint").value = hint;
 
404
  if (correctAnswer == 1) document.getElementById("edit_correct_one").checked = true;
405
  if (correctAnswer == 2) document.getElementById("edit_correct_two").checked = true;
406
  if (correctAnswer == 3) document.getElementById("edit_correct_three").checked = true;
@@ -495,8 +497,8 @@ function mlw_generate_quiz_options()
495
  if($alternate) $alternate = "";
496
  else $alternate = " class=\"alternate\"";
497
  $question_list .= "<tr{$alternate}>";
498
- $question_list .= "<td><span style='font-size:16px;'>" . $mlw_question_info->question_id . "</span></td>";
499
- $question_list .= "<td class='post-title column-title'><span style='font-size:16px;'>" . $mlw_question_info->question_name ."</span><div><span style='color:green;font-size:12px;'><a onclick=\"editQuestion('".$mlw_question_info->question_id."','".$mlw_question_info->question_name."','".$mlw_question_info->answer_one."','".$mlw_question_info->answer_one_points."','".$mlw_question_info->answer_two."','".$mlw_question_info->answer_two_points."','".$mlw_question_info->answer_three."','".$mlw_question_info->answer_three_points."','".$mlw_question_info->answer_four."','".$mlw_question_info->answer_four_points."','".$mlw_question_info->answer_five."','".$mlw_question_info->answer_five_points."','".$mlw_question_info->answer_six."','".$mlw_question_info->answer_six_points."','".$mlw_question_info->correct_answer."','".$mlw_question_info->comments."','".$mlw_question_info->hints."')\" href='#'>Edit</a> | <a onclick=\"deleteQuestion('".$mlw_question_info->question_id."')\" href='#'>Delete</a></span></div></td>";
500
  $question_list .= "</tr>";
501
  }
502
 
@@ -766,6 +768,14 @@ function mlw_generate_quiz_options()
766
  cursor:hand;"/>
767
  </td>
768
  </tr>
 
 
 
 
 
 
 
 
769
  </thead>
770
  </table>
771
  <?php
@@ -995,10 +1005,6 @@ function mlw_generate_quiz_options()
995
  <input type="radio" id="radio20" name="sendAdminEmail" <?php if ($mlw_quiz_options->send_admin_email == 1) {echo 'checked="checked"';} ?> value='1' /><label for="radio20">No</label>
996
  </div></td>
997
  </tr>
998
- <tr valign="top">
999
- <th scope="row"><label for="adminEmail">What email should we send the answers to?</label></th>
1000
- <td><input name="adminEmail" type="email" id="adminEmail" value="<?php echo $mlw_quiz_options->admin_email; ?>" class="regular-text" /></td>
1001
- </tr>
1002
  <tr valign="top">
1003
  <th scope="row"><label for="commentSection">Would you like a place for the user to enter comments?</label></th>
1004
  <td><div id="commentSection">
@@ -1006,6 +1012,10 @@ function mlw_generate_quiz_options()
1006
  <input type="radio" id="radio22" name="commentSection" <?php if ($mlw_quiz_options->comment_section == 1) {echo 'checked="checked"';} ?> value='1' /><label for="radio22">No</label>
1007
  </div></td>
1008
  </tr>
 
 
 
 
1009
  </table>
1010
  <?php echo "</form>"; ?>
1011
  </div>
55
  $mlw_edit_question_id = $_POST["edit_question_id"];
56
  $edit_comments = $_POST["edit_comments"];
57
  $edit_hint = $_POST["edit_hint"];
58
+ $edit_question_order = $_POST["edit_question_order"];
59
 
60
  //Edit question
61
  if ($edit_question_success == "confirmation")
62
  {
63
  $quiz_id = $_POST["quiz_id"];
64
+ $update = "UPDATE " . $wpdb->prefix . "mlw_questions" . " SET question_name='".$edit_question_name."', answer_one='".$edit_answer_one."', answer_one_points='".$edit_answer_one_points."', answer_two='".$edit_answer_two."', answer_two_points='".$edit_answer_two_points."', answer_three='".$edit_answer_three."', answer_three_points='".$edit_answer_three_points."', answer_four='".$edit_answer_four."', answer_four_points='".$edit_answer_four_points."', answer_five='".$edit_answer_five."', answer_five_points='".$edit_answer_five_points."', answer_six='".$edit_answer_six."', answer_six_points='".$edit_answer_six_points."', correct_answer='".$edit_correct_answer."', comments='".$edit_comments."', hints='".$edit_hint."', question_order='".$edit_question_order."' WHERE question_id=".$mlw_edit_question_id;
65
  $results = $wpdb->query( $update );
66
  $hasUpdatedQuestion = true;
67
 
103
  $quiz_id = $_POST["quiz_id"];
104
  $table_name = $wpdb->prefix . "mlw_questions";
105
  $insert = "INSERT INTO " . $table_name .
106
+ " (question_id, quiz_id, question_name, answer_one, answer_one_points, answer_two, answer_two_points, answer_three, answer_three_points, answer_four, answer_four_points, answer_five, answer_five_points, answer_six, answer_six_points, correct_answer, comments, hints, question_order, deleted) VALUES (NULL , ".$quiz_id.", '" . $question_name . "' , '" . $answer_one . "', ".$answer_one_points.", '" . $answer_two . "', ".$answer_two_points.", '" . $answer_three . "', ".$answer_three_points.", '" . $answer_four . "', ".$answer_four_points.", '" . $answer_five . "', ".$answer_five_points.", '" . $answer_six . "', ".$answer_six_points.", ".$correct_answer.", '".$comments."', '".$hint."', 1, 0)";
107
  $results = $wpdb->query( $insert );
108
  $hasCreatedQuestion = true;
109
 
123
  global $wpdb;
124
  $table_name = $wpdb->prefix . "mlw_questions";
125
  $sql = "SELECT * FROM " . $table_name . " WHERE quiz_id=".$quiz_id." AND deleted=0";
126
+ $sql .= " ORDER BY question_order ASC";
127
  $mlw_question_data = $wpdb->get_results($sql);
128
  $is_new_quiz = $wpdb->num_rows;
129
  }
374
  idText.innerHTML = id;
375
  idHidden.value = id;
376
  };
377
+ function editQuestion(id, question, answerOne, answerOnePoints, answerTwo, answerTwoPoints, answerThree, answerThreePoints, answerFour, answerFourPoints, answerFive, answerFivePoints, answerSix, answerSixPoints, correctAnswer, comments, hint, question_order){
378
  $j("#edit_question_dialog").dialog({
379
  autoOpen: false,
380
  show: 'blind',
402
  document.getElementById("edit_answer_five_points").value = answerFivePoints;
403
  document.getElementById("edit_answer_six_points").value = answerSixPoints;
404
  document.getElementById("edit_hint").value = hint;
405
+ document.getElementById("edit_question_order").value = question_order;
406
  if (correctAnswer == 1) document.getElementById("edit_correct_one").checked = true;
407
  if (correctAnswer == 2) document.getElementById("edit_correct_two").checked = true;
408
  if (correctAnswer == 3) document.getElementById("edit_correct_three").checked = true;
497
  if($alternate) $alternate = "";
498
  else $alternate = " class=\"alternate\"";
499
  $question_list .= "<tr{$alternate}>";
500
+ $question_list .= "<td><span style='font-size:16px;'>" . $mlw_question_info->question_order . "</span></td>";
501
+ $question_list .= "<td class='post-title column-title'><span style='font-size:16px;'>" . $mlw_question_info->question_name ."</span><div><span style='color:green;font-size:12px;'><a onclick=\"editQuestion('".$mlw_question_info->question_id."','".$mlw_question_info->question_name."','".$mlw_question_info->answer_one."','".$mlw_question_info->answer_one_points."','".$mlw_question_info->answer_two."','".$mlw_question_info->answer_two_points."','".$mlw_question_info->answer_three."','".$mlw_question_info->answer_three_points."','".$mlw_question_info->answer_four."','".$mlw_question_info->answer_four_points."','".$mlw_question_info->answer_five."','".$mlw_question_info->answer_five_points."','".$mlw_question_info->answer_six."','".$mlw_question_info->answer_six_points."','".$mlw_question_info->correct_answer."','".$mlw_question_info->comments."','".$mlw_question_info->hints."', '".$mlw_question_info->question_order."')\" href='#'>Edit</a> | <a onclick=\"deleteQuestion('".$mlw_question_info->question_id."')\" href='#'>Delete</a></span></div></td>";
502
  $question_list .= "</tr>";
503
  }
504
 
768
  cursor:hand;"/>
769
  </td>
770
  </tr>
771
+ <tr valign="top">
772
+ <th scope="row">Question Order</th>
773
+ <td>
774
+ <input type="text" name="edit_question_order" value="" id="edit_question_order" style="border-color:#000000;
775
+ color:#3300CC;
776
+ cursor:hand;"/>
777
+ </td>
778
+ </tr>
779
  </thead>
780
  </table>
781
  <?php
1005
  <input type="radio" id="radio20" name="sendAdminEmail" <?php if ($mlw_quiz_options->send_admin_email == 1) {echo 'checked="checked"';} ?> value='1' /><label for="radio20">No</label>
1006
  </div></td>
1007
  </tr>
 
 
 
 
1008
  <tr valign="top">
1009
  <th scope="row"><label for="commentSection">Would you like a place for the user to enter comments?</label></th>
1010
  <td><div id="commentSection">
1012
  <input type="radio" id="radio22" name="commentSection" <?php if ($mlw_quiz_options->comment_section == 1) {echo 'checked="checked"';} ?> value='1' /><label for="radio22">No</label>
1013
  </div></td>
1014
  </tr>
1015
+ <tr valign="top">
1016
+ <th scope="row"><label for="adminEmail">What email should we send the answers to?</label></th>
1017
+ <td><input name="adminEmail" type="email" id="adminEmail" value="<?php echo $mlw_quiz_options->admin_email; ?>" class="regular-text" /></td>
1018
+ </tr>
1019
  </table>
1020
  <?php echo "</form>"; ?>
1021
  </div>
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.7.2
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
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.7.2
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,12 @@ Feel free to use the support option on the main page of the plugin or from the c
47
 
48
  == Changelog ==
49
 
 
 
 
 
 
 
50
  = 0.7.2 (November 24, 2013) =
51
  * Bug Fixes
52
  * Added New Section On How-To Page
@@ -123,6 +129,9 @@ Feel free to use the support option on the main page of the plugin or from the c
123
 
124
  == Upgrade Notice ==
125
 
 
 
 
126
  = 0.7.2 =
127
  Upgrade to fix minor bugs and view new section on how-to page.
128
 
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
 
48
  == Changelog ==
49
 
50
+ = 0.8 (December 1, 2013) =
51
+ * Added Spam Prevention Techniques To Backend
52
+ * Added Ability To Reorder Questions
53
+ * Added New Section On How-To Page
54
+ * Bug Fixes
55
+
56
  = 0.7.2 (November 24, 2013) =
57
  * Bug Fixes
58
  * Added New Section On How-To Page
129
 
130
  == Upgrade Notice ==
131
 
132
+ = 0.8 =
133
+ Upgrade to enjoy several new features and minor bug fixes.
134
+
135
  = 0.7.2 =
136
  Upgrade to fix minor bugs and view new section on how-to page.
137