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

Version Description

This update brings many minor design changes and minor bug fixes.

Download this release

Release Info

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

Code changes from version 1.4.1 to 1.4.2

includes/mlw_dashboard.php CHANGED
@@ -418,16 +418,19 @@ function mlw_dashboard_box_six()
418
  <div>
419
  <table width='100%'>
420
  <tr>
421
- <td align='left'>1.4.1 (February 20, 2014)</td>
422
  </tr>
423
  <tr>
424
- <td align='left'>* Enhanced Plugins Compatibility With Other Plugins</td>
425
  </tr>
426
  <tr>
427
- <td align='left'>* Hints Are Now Hidden By Default</td>
428
  </tr>
429
  <tr>
430
- <td align='left'>* Minor Bug Fixes</td>
 
 
 
431
  </tr>
432
  </table>
433
  </div>
418
  <div>
419
  <table width='100%'>
420
  <tr>
421
+ <td align='left'>1.4.2 (February 22, 2014)</td>
422
  </tr>
423
  <tr>
424
+ <td align='left'>* Fixed Capability Bug</td>
425
  </tr>
426
  <tr>
427
+ <td align='left'>* Minor Design Changes To Question Form</td>
428
  </tr>
429
  <tr>
430
+ <td align='left'>* Hint Bubble Is Now Wider For Longer Hints</td>
431
+ </tr>
432
+ <tr>
433
+ <td align='left'>* Minor Design Change To Quiz</td>
434
  </tr>
435
  </table>
436
  </div>
includes/mlw_quiz.php CHANGED
@@ -152,7 +152,19 @@ function mlw_quiz_shortcode($atts)
152
  $j( document ).tooltip();
153
  });
154
  </script>
155
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
156
 
157
  /*
158
  The following code is for displaying the quiz and completion screen
@@ -265,32 +277,32 @@ function mlw_quiz_shortcode($atts)
265
  {
266
  if ($mlw_question->answer_one != "")
267
  {
268
- $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='1' /> ".htmlspecialchars_decode($mlw_question->answer_one, ENT_QUOTES);
269
  $mlw_display .= "<br />";
270
  }
271
  if ($mlw_question->answer_two != "")
272
  {
273
- $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='2' /> ".htmlspecialchars_decode($mlw_question->answer_two, ENT_QUOTES);
274
  $mlw_display .= "<br />";
275
  }
276
  if ($mlw_question->answer_three != "")
277
  {
278
- $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='3' /> ".htmlspecialchars_decode($mlw_question->answer_three, ENT_QUOTES);
279
  $mlw_display .= "<br />";
280
  }
281
  if ($mlw_question->answer_four != "")
282
  {
283
- $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='4' /> ".htmlspecialchars_decode($mlw_question->answer_four, ENT_QUOTES);
284
  $mlw_display .= "<br />";
285
  }
286
  if ($mlw_question->answer_five != "")
287
  {
288
- $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='5' /> ".htmlspecialchars_decode($mlw_question->answer_five, ENT_QUOTES);
289
  $mlw_display .= "<br />";
290
  }
291
  if ($mlw_question->answer_six != "")
292
  {
293
- $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='6' /> ".htmlspecialchars_decode($mlw_question->answer_six, ENT_QUOTES);
294
  $mlw_display .= "<br />";
295
  }
296
  }
@@ -364,8 +376,8 @@ function mlw_quiz_shortcode($atts)
364
  }
365
  if ($mlw_question->hints != "")
366
  {
367
- $mlw_display .= "<span title=\"".$mlw_question->hints."\" style=\"text-decoration:underline;color:rgb(0,0,255);\">Hint</span><br />";
368
- $mlw_display .= "<br />";
369
  }
370
  $mlw_display .= "<br />";
371
  }
152
  $j( document ).tooltip();
153
  });
154
  </script>
155
+ <style type="text/css">
156
+ .ui-tooltip
157
+ {
158
+ /* tooltip container box */
159
+ max-width: 500px !important;
160
+ }
161
+ .ui-tooltip-content
162
+ {
163
+ /* tooltip content */
164
+ max-width: 500px !important;
165
+ }
166
+ </style>
167
+ <?php
168
 
169
  /*
170
  The following code is for displaying the quiz and completion screen
277
  {
278
  if ($mlw_question->answer_one != "")
279
  {
280
+ $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' id='question".$mlw_question->question_id."_one' value='1' /> <label for='question".$mlw_question->question_id."_one'>".htmlspecialchars_decode($mlw_question->answer_one, ENT_QUOTES)."</label>";
281
  $mlw_display .= "<br />";
282
  }
283
  if ($mlw_question->answer_two != "")
284
  {
285
+ $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' id='question".$mlw_question->question_id."_two' value='2' /> <label for='question".$mlw_question->question_id."_two'>".htmlspecialchars_decode($mlw_question->answer_two, ENT_QUOTES)."</label>";
286
  $mlw_display .= "<br />";
287
  }
288
  if ($mlw_question->answer_three != "")
289
  {
290
+ $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' id='question".$mlw_question->question_id."_three' value='3' /> <label for='question".$mlw_question->question_id."_three'>".htmlspecialchars_decode($mlw_question->answer_three, ENT_QUOTES)."</label>";
291
  $mlw_display .= "<br />";
292
  }
293
  if ($mlw_question->answer_four != "")
294
  {
295
+ $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' id='question".$mlw_question->question_id."_four' value='4' /> <label for='question".$mlw_question->question_id."_four'>".htmlspecialchars_decode($mlw_question->answer_four, ENT_QUOTES)."</label>";
296
  $mlw_display .= "<br />";
297
  }
298
  if ($mlw_question->answer_five != "")
299
  {
300
+ $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' id='question".$mlw_question->question_id."_five' value='5' /> <label for='question".$mlw_question->question_id."_five'>".htmlspecialchars_decode($mlw_question->answer_five, ENT_QUOTES)."</label>";
301
  $mlw_display .= "<br />";
302
  }
303
  if ($mlw_question->answer_six != "")
304
  {
305
+ $mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' id='question".$mlw_question->question_id."_six' value='6' /> <label for='question".$mlw_question->question_id."_six'>".htmlspecialchars_decode($mlw_question->answer_six, ENT_QUOTES)."</label>";
306
  $mlw_display .= "<br />";
307
  }
308
  }
376
  }
377
  if ($mlw_question->hints != "")
378
  {
379
+ $mlw_display .= "<span title=\"".htmlspecialchars_decode($mlw_question->hints, ENT_QUOTES)."\" style=\"text-decoration:underline;color:rgb(0,0,255);\">Hint</span>";
380
+ $mlw_display .= "<br /><br />";
381
  }
382
  $mlw_display .= "<br />";
383
  }
includes/mlw_quiz_options.php CHANGED
@@ -37,8 +37,8 @@ function mlw_generate_quiz_options()
37
  $correct_answer = $_POST["correct_answer"];
38
  $question_answer_info = $_POST["correct_answer_info"];
39
  $question_type = $_POST["question_type"];
40
- $comments = $_POST["comments"];
41
- $hint = $_POST["hint"];
42
  $new_question_order = $_POST["new_question_order"];
43
 
44
  //Variables from edit question form
@@ -60,8 +60,8 @@ function mlw_generate_quiz_options()
60
  $edit_question_answer_info = $_POST["edit_correct_answer_info"];
61
  $mlw_edit_question_id = $_POST["edit_question_id"];
62
  $mlw_edit_question_type = $_POST["edit_question_type"];
63
- $edit_comments = $_POST["edit_comments"];
64
- $edit_hint = $_POST["edit_hint"];
65
  $edit_question_order = $_POST["edit_question_order"];
66
 
67
  //Edit question
@@ -524,6 +524,12 @@ function mlw_generate_quiz_options()
524
  $j(function() {
525
  $j( "#comments" ).buttonset();
526
  });
 
 
 
 
 
 
527
  $j(function() {
528
  $j( "#edit_comments" ).buttonset();
529
  });
@@ -535,7 +541,7 @@ function mlw_generate_quiz_options()
535
  $j('#new_question_dialog').dialog({
536
  autoOpen: false,
537
  show: 'blind',
538
- width:700,
539
  hide: 'explode',
540
  buttons: {
541
  Cancel: function() {
@@ -576,7 +582,7 @@ function mlw_generate_quiz_options()
576
  $j("#edit_question_dialog").dialog({
577
  autoOpen: false,
578
  show: 'blind',
579
- width:700,
580
  hide: 'explode',
581
  buttons: {
582
  Cancel: function() {
@@ -609,12 +615,22 @@ function mlw_generate_quiz_options()
609
  if (correctAnswer == 4) document.getElementById("edit_correct_four").checked = true;
610
  if (correctAnswer == 5) document.getElementById("edit_correct_five").checked = true;
611
  if (correctAnswer == 6) document.getElementById("edit_correct_six").checked = true;
 
 
 
 
612
  if (question_type == 0) document.getElementById("editTypeRadio1").checked = true;
613
  if (question_type == 1) document.getElementById("editTypeRadio2").checked = true;
614
  if (question_type == 2) document.getElementById("editTypeRadio3").checked = true;
 
 
 
 
 
615
  if (comments == 0) document.getElementById("editCommentRadio1").checked = true;
616
  if (comments == 1) document.getElementById("editCommentRadio2").checked = true;
617
  if (comments == 2) document.getElementById("editCommentRadio3").checked = true;
 
618
  };
619
  </script>
620
  <div class="wrap">
@@ -759,13 +775,13 @@ function mlw_generate_quiz_options()
759
  ?>
760
  <button id="new_question_button">Add Question</button>
761
  <div id="new_question_dialog" title="Create New Question" style="display:none;">
762
-
763
- <table>
764
  <?php
765
  echo "<form action='" . $PHP_SELF . "' method='post'>";
766
  echo "<input type='hidden' name='create_question' value='confirmation' />";
767
  echo "<input type='hidden' name='quiz_id' value='".$quiz_id."' />";
768
- ?>
 
769
  <tr>
770
  <td><span style='font-weight:bold;'>Question<a href="#" title="Enter the question here. Feel free to use HTML, embed Youtube videos, link to images, etc...">?</a></span></td>
771
  <td colspan="3">
@@ -787,7 +803,8 @@ function mlw_generate_quiz_options()
787
  <td>
788
  <input type="text" name="answer_one" value="" style="border-color:#000000;
789
  color:#3300CC;
790
- cursor:hand;"/>
 
791
  </td>
792
  <td>
793
  <input type="text" name="answer_one_points" value="0" style="border-color:#000000;
@@ -801,7 +818,8 @@ function mlw_generate_quiz_options()
801
  <td>
802
  <input type="text" name="answer_two" value="" style="border-color:#000000;
803
  color:#3300CC;
804
- cursor:hand;"/>
 
805
  </td>
806
  <td>
807
  <input type="text" name="answer_two_points" value="0" style="border-color:#000000;
@@ -815,7 +833,8 @@ function mlw_generate_quiz_options()
815
  <td>
816
  <input type="text" name="answer_three" value="" style="border-color:#000000;
817
  color:#3300CC;
818
- cursor:hand;"/>
 
819
  </td>
820
  <td>
821
  <input type="text" name="answer_three_points" value="0" style="border-color:#000000;
@@ -829,7 +848,8 @@ function mlw_generate_quiz_options()
829
  <td>
830
  <input type="text" name="answer_four" value="" style="border-color:#000000;
831
  color:#3300CC;
832
- cursor:hand;"/>
 
833
  </td>
834
  <td>
835
  <input type="text" name="answer_four_points" value="0" style="border-color:#000000;
@@ -843,7 +863,8 @@ function mlw_generate_quiz_options()
843
  <td>
844
  <input type="text" name="answer_five" value="" style="border-color:#000000;
845
  color:#3300CC;
846
- cursor:hand;"/>
 
847
  </td>
848
  <td>
849
  <input type="text" name="answer_five_points" value="0" style="border-color:#000000;
@@ -857,7 +878,8 @@ function mlw_generate_quiz_options()
857
  <td>
858
  <input type="text" name="answer_six" value="" style="border-color:#000000;
859
  color:#3300CC;
860
- cursor:hand;"/>
 
861
  </td>
862
  <td>
863
  <input type="text" name="answer_six_points" value="0" style="border-color:#000000;
@@ -870,29 +892,35 @@ function mlw_generate_quiz_options()
870
  <td><span style='font-weight:bold;'>Correct Answer Info<a href="#" title="Enter in the reason why the correct answer is correct. Add this to the %QUESTIONS_ANSWERS% template using the new %CORRECT_ANSWER_INFO% variable.">?</a></span></td>
871
  <td colspan="3"><input type="text" name="correct_answer_info" value="" id="correct_answer_info" style="border-color:#000000;
872
  color:#3300CC;
873
- cursor:hand;"/></td>
 
 
 
 
 
 
 
 
 
 
874
  </tr>
875
  <tr><td>&nbsp;</td></tr>
876
  <tr><td>&nbsp;</td></tr>
877
  <tr valign="top">
878
  <td><span style='font-weight:bold;'>Question Type<a href="#" title="The normal setting will show the question as it would normally; the horizontal setting will show the answers going across rather than down; the drop down setting will show the answers in a drop down menu instead of the raidio button." >?</a></span></td>
879
- <td><input type="radio" id="typeRadio1" name="question_type" checked="checked" value=0 /><label for="typeRadio1">Normal (Vertical Radio)</label></td>
880
- <td><input type="radio" id="typeRadio2" name="question_type" value=1 /><label for="typeRadio2">Horizontal Radio</label></td>
881
- <td><input type="radio" id="typeRadio3" name="question_type" value=2 /><label for="typeRadio3">Drop Down</label></td>
 
 
882
  </tr>
883
  <tr valign="top">
884
  <td><span style='font-weight:bold;'>Comment Field<a href="#" title="The small text field setting will show a small field similar to the answer field above; the large text field setting will show a large text area; the none setting will now show any comment section for this question." >?</a></span></td>
885
- <td><input type="radio" id="commentsRadio1" name="comments" value=0 /><label for="commentsRadio1">Small Text Field</label></td>
886
- <td><input type="radio" id="commentsRadio3" name="comments" value=2 /><label for="commentsRadio3">Large Text Field</label></td>
887
- <td><input type="radio" id="commentsRadio2" name="comments" checked="checked" value=1 /><label for="commentsRadio2">None</label></td>
888
- </tr>
889
- <tr valign="top">
890
- <td><span style='font-weight:bold;'>Hint<a href="#" title="Enter the question's hint." >?</a></span></td>
891
- <td>
892
- <input type="text" name="hint" value="" id="hint" style="border-color:#000000;
893
- color:#3300CC;
894
- cursor:hand;"/>
895
- </td>
896
  </tr>
897
  <tr valign="top">
898
  <td><span style='font-weight:bold;'>Question Order<a href="#" title="Enter the place of the question in the quiz. If you do not have a certain order, you can leave this as 1.">?</a></span></td>
@@ -911,13 +939,13 @@ function mlw_generate_quiz_options()
911
 
912
 
913
  <div id="edit_question_dialog" title="Edit Question" style="display:none;">
914
- <table class="wide" style="text-align: left; white-space: nowrap;">
915
  <?php
916
  echo "<form action='" . $PHP_SELF . "' method='post'>";
917
  echo "<input type='hidden' name='edit_question' value='confirmation' />";
918
  echo "<input type='hidden' id='edit_question_id' name='edit_question_id' value='' />";
919
  echo "<input type='hidden' name='quiz_id' value='".$quiz_id."' />";
920
  ?>
 
921
  <tr>
922
  <td><span style='font-weight:bold;'>Question</span></td>
923
  <td colspan="3">
@@ -939,7 +967,8 @@ function mlw_generate_quiz_options()
939
  <td>
940
  <input type="text" name="edit_answer_one" id="edit_answer_one" value="" style="border-color:#000000;
941
  color:#3300CC;
942
- cursor:hand;"/>
 
943
  </td>
944
  <td>
945
  <input type="text" name="edit_answer_one_points" id="edit_answer_one_points" value="0" style="border-color:#000000;
@@ -953,7 +982,8 @@ function mlw_generate_quiz_options()
953
  <td>
954
  <input type="text" name="edit_answer_two" id="edit_answer_two" value="" style="border-color:#000000;
955
  color:#3300CC;
956
- cursor:hand;"/>
 
957
  </td>
958
  <td>
959
  <input type="text" name="edit_answer_two_points" id="edit_answer_two_points" value="0" style="border-color:#000000;
@@ -967,7 +997,8 @@ function mlw_generate_quiz_options()
967
  <td>
968
  <input type="text" name="edit_answer_three" id="edit_answer_three" value="" style="border-color:#000000;
969
  color:#3300CC;
970
- cursor:hand;"/>
 
971
  </td>
972
  <td>
973
  <input type="text" name="edit_answer_three_points" id="edit_answer_three_points" value="0" style="border-color:#000000;
@@ -981,7 +1012,8 @@ function mlw_generate_quiz_options()
981
  <td>
982
  <input type="text" name="edit_answer_four" value="" id="edit_answer_four" style="border-color:#000000;
983
  color:#3300CC;
984
- cursor:hand;"/>
 
985
  </td>
986
  <td>
987
  <input type="text" name="edit_answer_four_points" id="edit_answer_four_points" value="0" style="border-color:#000000;
@@ -995,7 +1027,8 @@ function mlw_generate_quiz_options()
995
  <td>
996
  <input type="text" name="edit_answer_five" value="" id="edit_answer_five" style="border-color:#000000;
997
  color:#3300CC;
998
- cursor:hand;"/>
 
999
  </td>
1000
  <td>
1001
  <input type="text" name="edit_answer_five_points" id="edit_answer_five_points" value="0" style="border-color:#000000;
@@ -1009,7 +1042,8 @@ function mlw_generate_quiz_options()
1009
  <td>
1010
  <input type="text" name="edit_answer_six" value="" id="edit_answer_six" style="border-color:#000000;
1011
  color:#3300CC;
1012
- cursor:hand;"/>
 
1013
  </td>
1014
  <td>
1015
  <input type="text" name="edit_answer_six_points" id="edit_answer_six_points" value="0" style="border-color:#000000;
@@ -1022,29 +1056,35 @@ function mlw_generate_quiz_options()
1022
  <td><span style='font-weight:bold;'>Correct Answer Info:</span></td>
1023
  <td colspan="3"><input type="text" name="edit_correct_answer_info" value="" id="edit_correct_answer_info" style="border-color:#000000;
1024
  color:#3300CC;
1025
- cursor:hand;"/></td>
 
 
 
 
 
 
 
 
 
 
1026
  </tr>
1027
  <tr><td>&nbsp;</td></tr>
1028
  <tr><td>&nbsp;</td></tr>
1029
  <tr valign="top">
1030
  <td><span style='font-weight:bold;'>Question Type?</span></td>
1031
- <td><input type="radio" id="editTypeRadio1" name="edit_question_type" checked="checked" value=0 /><label for="editTypeRadio1">Normal (Vertical Radio)</label></td>
1032
- <td><input type="radio" id="editTypeRadio2" name="edit_question_type" value=1 /><label for="editTypeRadio2">Horizontal Radio</label></td>
1033
- <td><input type="radio" id="editTypeRadio3" name="edit_question_type" value=2 /><label for="editTypeRadio3">Drop Down</label></td>
 
 
1034
  </tr>
1035
  <tr valign="top">
1036
  <td><span style='font-weight:bold;'>Comment Field?</span></td>
1037
- <td><input type="radio" id="editCommentRadio1" name="edit_comments" value=0 /><label for="editCommentRadio1">Small Text Field</label></td>
1038
- <td><input type="radio" id="editCommentRadio3" name="edit_comments" value=2 /><label for="editCommentRadio3">Large Text Field</label></td>
1039
- <td><input type="radio" id="editCommentRadio2" name="edit_comments" value=1 /><label for="editCommentRadio2">None</label></td>
1040
- </tr>
1041
- <tr valign="top">
1042
- <td><span style='font-weight:bold;'>Hint</span></td>
1043
- <td>
1044
- <input type="text" name="edit_hint" value="" id="edit_hint" style="border-color:#000000;
1045
- color:#3300CC;
1046
- cursor:hand;"/>
1047
- </td>
1048
  </tr>
1049
  <tr valign="top">
1050
  <td><span style='font-weight:bold;'>Question Order</span></td>
37
  $correct_answer = $_POST["correct_answer"];
38
  $question_answer_info = $_POST["correct_answer_info"];
39
  $question_type = $_POST["question_type"];
40
+ $comments = htmlspecialchars($_POST["comments"], ENT_QUOTES);
41
+ $hint = htmlspecialchars($_POST["hint"], ENT_QUOTES);
42
  $new_question_order = $_POST["new_question_order"];
43
 
44
  //Variables from edit question form
60
  $edit_question_answer_info = $_POST["edit_correct_answer_info"];
61
  $mlw_edit_question_id = $_POST["edit_question_id"];
62
  $mlw_edit_question_type = $_POST["edit_question_type"];
63
+ $edit_comments = htmlspecialchars($_POST["edit_comments"], ENT_QUOTES);
64
+ $edit_hint = htmlspecialchars($_POST["edit_hint"], ENT_QUOTES);
65
  $edit_question_order = $_POST["edit_question_order"];
66
 
67
  //Edit question
524
  $j(function() {
525
  $j( "#comments" ).buttonset();
526
  });
527
+ $j(function() {
528
+ $j( "#question_type" ).buttonset();
529
+ });
530
+ $j(function() {
531
+ $j( "#edit_question_type" ).buttonset();
532
+ });
533
  $j(function() {
534
  $j( "#edit_comments" ).buttonset();
535
  });
541
  $j('#new_question_dialog').dialog({
542
  autoOpen: false,
543
  show: 'blind',
544
+ width:800,
545
  hide: 'explode',
546
  buttons: {
547
  Cancel: function() {
582
  $j("#edit_question_dialog").dialog({
583
  autoOpen: false,
584
  show: 'blind',
585
+ width:800,
586
  hide: 'explode',
587
  buttons: {
588
  Cancel: function() {
615
  if (correctAnswer == 4) document.getElementById("edit_correct_four").checked = true;
616
  if (correctAnswer == 5) document.getElementById("edit_correct_five").checked = true;
617
  if (correctAnswer == 6) document.getElementById("edit_correct_six").checked = true;
618
+ if (question_type == 0) $j('#editTypeRadio1').attr('checked', true).button('refresh');
619
+ if (question_type == 1) $j('#editTypeRadio2').attr('checked', true).button('refresh');
620
+ if (question_type == 2) $j('#editTypeRadio3').attr('checked', true).button('refresh');
621
+ /*
622
  if (question_type == 0) document.getElementById("editTypeRadio1").checked = true;
623
  if (question_type == 1) document.getElementById("editTypeRadio2").checked = true;
624
  if (question_type == 2) document.getElementById("editTypeRadio3").checked = true;
625
+ */
626
+ if (comments == 0) $j('#editCommentRadio1').attr('checked', true).button('refresh');
627
+ if (comments == 1) $j('#editCommentRadio2').attr('checked', true).button('refresh');
628
+ if (comments == 2) $j('#editCommentRadio3').attr('checked', true).button('refresh');
629
+ /*
630
  if (comments == 0) document.getElementById("editCommentRadio1").checked = true;
631
  if (comments == 1) document.getElementById("editCommentRadio2").checked = true;
632
  if (comments == 2) document.getElementById("editCommentRadio3").checked = true;
633
+ */
634
  };
635
  </script>
636
  <div class="wrap">
775
  ?>
776
  <button id="new_question_button">Add Question</button>
777
  <div id="new_question_dialog" title="Create New Question" style="display:none;">
778
+
 
779
  <?php
780
  echo "<form action='" . $PHP_SELF . "' method='post'>";
781
  echo "<input type='hidden' name='create_question' value='confirmation' />";
782
  echo "<input type='hidden' name='quiz_id' value='".$quiz_id."' />";
783
+ ?>
784
+ <table>
785
  <tr>
786
  <td><span style='font-weight:bold;'>Question<a href="#" title="Enter the question here. Feel free to use HTML, embed Youtube videos, link to images, etc...">?</a></span></td>
787
  <td colspan="3">
803
  <td>
804
  <input type="text" name="answer_one" value="" style="border-color:#000000;
805
  color:#3300CC;
806
+ cursor:hand;
807
+ width: 250px;"/>
808
  </td>
809
  <td>
810
  <input type="text" name="answer_one_points" value="0" style="border-color:#000000;
818
  <td>
819
  <input type="text" name="answer_two" value="" style="border-color:#000000;
820
  color:#3300CC;
821
+ cursor:hand;
822
+ width: 250px;"/>
823
  </td>
824
  <td>
825
  <input type="text" name="answer_two_points" value="0" style="border-color:#000000;
833
  <td>
834
  <input type="text" name="answer_three" value="" style="border-color:#000000;
835
  color:#3300CC;
836
+ cursor:hand;
837
+ width: 250px;"/>
838
  </td>
839
  <td>
840
  <input type="text" name="answer_three_points" value="0" style="border-color:#000000;
848
  <td>
849
  <input type="text" name="answer_four" value="" style="border-color:#000000;
850
  color:#3300CC;
851
+ cursor:hand;
852
+ width: 250px;"/>
853
  </td>
854
  <td>
855
  <input type="text" name="answer_four_points" value="0" style="border-color:#000000;
863
  <td>
864
  <input type="text" name="answer_five" value="" style="border-color:#000000;
865
  color:#3300CC;
866
+ cursor:hand;
867
+ width: 250px;"/>
868
  </td>
869
  <td>
870
  <input type="text" name="answer_five_points" value="0" style="border-color:#000000;
878
  <td>
879
  <input type="text" name="answer_six" value="" style="border-color:#000000;
880
  color:#3300CC;
881
+ cursor:hand;
882
+ width: 250px;"/>
883
  </td>
884
  <td>
885
  <input type="text" name="answer_six_points" value="0" style="border-color:#000000;
892
  <td><span style='font-weight:bold;'>Correct Answer Info<a href="#" title="Enter in the reason why the correct answer is correct. Add this to the %QUESTIONS_ANSWERS% template using the new %CORRECT_ANSWER_INFO% variable.">?</a></span></td>
893
  <td colspan="3"><input type="text" name="correct_answer_info" value="" id="correct_answer_info" style="border-color:#000000;
894
  color:#3300CC;
895
+ cursor:hand;
896
+ width:550px;"/></td>
897
+ </tr>
898
+ <tr valign="top">
899
+ <td><span style='font-weight:bold;'>Hint<a href="#" title="Enter the question's hint." >?</a></span></td>
900
+ <td colspan="3">
901
+ <input type="text" name="hint" value="" id="hint" style="border-color:#000000;
902
+ color:#3300CC;
903
+ cursor:hand;
904
+ width:550px;"/>
905
+ </td>
906
  </tr>
907
  <tr><td>&nbsp;</td></tr>
908
  <tr><td>&nbsp;</td></tr>
909
  <tr valign="top">
910
  <td><span style='font-weight:bold;'>Question Type<a href="#" title="The normal setting will show the question as it would normally; the horizontal setting will show the answers going across rather than down; the drop down setting will show the answers in a drop down menu instead of the raidio button." >?</a></span></td>
911
+ <td colspan="3"><div id="question_type">
912
+ <input type="radio" id="typeRadio1" name="question_type" checked="checked" value=0 /><label for="typeRadio1">Normal (Vertical Radio)</label>
913
+ <input type="radio" id="typeRadio2" name="question_type" value=1 /><label for="typeRadio2">Horizontal Radio</label>
914
+ <input type="radio" id="typeRadio3" name="question_type" value=2 /><label for="typeRadio3">Drop Down</label>
915
+ </div></td>
916
  </tr>
917
  <tr valign="top">
918
  <td><span style='font-weight:bold;'>Comment Field<a href="#" title="The small text field setting will show a small field similar to the answer field above; the large text field setting will show a large text area; the none setting will now show any comment section for this question." >?</a></span></td>
919
+ <td colspan="3"><div id="comments">
920
+ <input type="radio" id="commentsRadio1" name="comments" value=0 /><label for="commentsRadio1">Small Text Field</label>
921
+ <input type="radio" id="commentsRadio3" name="comments" value=2 /><label for="commentsRadio3">Large Text Field</label>
922
+ <input type="radio" id="commentsRadio2" name="comments" checked="checked" value=1 /><label for="commentsRadio2">None</label>
923
+ </div></td>
 
 
 
 
 
 
924
  </tr>
925
  <tr valign="top">
926
  <td><span style='font-weight:bold;'>Question Order<a href="#" title="Enter the place of the question in the quiz. If you do not have a certain order, you can leave this as 1.">?</a></span></td>
939
 
940
 
941
  <div id="edit_question_dialog" title="Edit Question" style="display:none;">
 
942
  <?php
943
  echo "<form action='" . $PHP_SELF . "' method='post'>";
944
  echo "<input type='hidden' name='edit_question' value='confirmation' />";
945
  echo "<input type='hidden' id='edit_question_id' name='edit_question_id' value='' />";
946
  echo "<input type='hidden' name='quiz_id' value='".$quiz_id."' />";
947
  ?>
948
+ <table class="wide" style="text-align: left; white-space: nowrap;">
949
  <tr>
950
  <td><span style='font-weight:bold;'>Question</span></td>
951
  <td colspan="3">
967
  <td>
968
  <input type="text" name="edit_answer_one" id="edit_answer_one" value="" style="border-color:#000000;
969
  color:#3300CC;
970
+ cursor:hand;
971
+ width: 250px;"/>
972
  </td>
973
  <td>
974
  <input type="text" name="edit_answer_one_points" id="edit_answer_one_points" value="0" style="border-color:#000000;
982
  <td>
983
  <input type="text" name="edit_answer_two" id="edit_answer_two" value="" style="border-color:#000000;
984
  color:#3300CC;
985
+ cursor:hand;
986
+ width: 250px;"/>
987
  </td>
988
  <td>
989
  <input type="text" name="edit_answer_two_points" id="edit_answer_two_points" value="0" style="border-color:#000000;
997
  <td>
998
  <input type="text" name="edit_answer_three" id="edit_answer_three" value="" style="border-color:#000000;
999
  color:#3300CC;
1000
+ cursor:hand;
1001
+ width: 250px;"/>
1002
  </td>
1003
  <td>
1004
  <input type="text" name="edit_answer_three_points" id="edit_answer_three_points" value="0" style="border-color:#000000;
1012
  <td>
1013
  <input type="text" name="edit_answer_four" value="" id="edit_answer_four" style="border-color:#000000;
1014
  color:#3300CC;
1015
+ cursor:hand;
1016
+ width: 250px;"/>
1017
  </td>
1018
  <td>
1019
  <input type="text" name="edit_answer_four_points" id="edit_answer_four_points" value="0" style="border-color:#000000;
1027
  <td>
1028
  <input type="text" name="edit_answer_five" value="" id="edit_answer_five" style="border-color:#000000;
1029
  color:#3300CC;
1030
+ cursor:hand;
1031
+ width: 250px;"/>
1032
  </td>
1033
  <td>
1034
  <input type="text" name="edit_answer_five_points" id="edit_answer_five_points" value="0" style="border-color:#000000;
1042
  <td>
1043
  <input type="text" name="edit_answer_six" value="" id="edit_answer_six" style="border-color:#000000;
1044
  color:#3300CC;
1045
+ cursor:hand;
1046
+ width: 250px;"/>
1047
  </td>
1048
  <td>
1049
  <input type="text" name="edit_answer_six_points" id="edit_answer_six_points" value="0" style="border-color:#000000;
1056
  <td><span style='font-weight:bold;'>Correct Answer Info:</span></td>
1057
  <td colspan="3"><input type="text" name="edit_correct_answer_info" value="" id="edit_correct_answer_info" style="border-color:#000000;
1058
  color:#3300CC;
1059
+ cursor:hand;
1060
+ width:550px;"/></td>
1061
+ </tr>
1062
+ <tr valign="top">
1063
+ <td><span style='font-weight:bold;'>Hint</span></td>
1064
+ <td colspan="3">
1065
+ <input type="text" name="edit_hint" value="" id="edit_hint" style="border-color:#000000;
1066
+ color:#3300CC;
1067
+ cursor:hand;
1068
+ width:550px;"/>
1069
+ </td>
1070
  </tr>
1071
  <tr><td>&nbsp;</td></tr>
1072
  <tr><td>&nbsp;</td></tr>
1073
  <tr valign="top">
1074
  <td><span style='font-weight:bold;'>Question Type?</span></td>
1075
+ <td colspan="3"><div id="edit_question_type">
1076
+ <input type="radio" id="editTypeRadio1" name="edit_question_type" checked="checked" value=0 /><label for="editTypeRadio1">Normal (Vertical Radio)</label>
1077
+ <input type="radio" id="editTypeRadio2" name="edit_question_type" value=1 /><label for="editTypeRadio2">Horizontal Radio</label>
1078
+ <input type="radio" id="editTypeRadio3" name="edit_question_type" value=2 /><label for="editTypeRadio3">Drop Down</label>
1079
+ </div></td>
1080
  </tr>
1081
  <tr valign="top">
1082
  <td><span style='font-weight:bold;'>Comment Field?</span></td>
1083
+ <td colspan="3"><div id="edit_comments">
1084
+ <input type="radio" id="editCommentRadio1" name="edit_comments" value=0 /><label for="editCommentRadio1">Small Text Field</label>
1085
+ <input type="radio" id="editCommentRadio3" name="edit_comments" value=2 /><label for="editCommentRadio3">Large Text Field</label>
1086
+ <input type="radio" id="editCommentRadio2" name="edit_comments" value=1 /><label for="editCommentRadio2">None</label>
1087
+ </div></td>
 
 
 
 
 
 
1088
  </tr>
1089
  <tr valign="top">
1090
  <td><span style='font-weight:bold;'>Question Order</span></td>
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 = "1.4.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 = "1.4.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: 1.4.1
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
@@ -57,13 +57,13 @@ function mlw_add_menu()
57
  {
58
  if (function_exists('add_menu_page'))
59
  {
60
- add_menu_page('Quiz Dashboard', 'Quiz Dashboard', 8, __FILE__, 'mlw_generate_quiz_dashboard');
61
- add_submenu_page(__FILE__, 'Quizzes', 'Quizzes', 8, 'mlw_quiz_admin', 'mlw_generate_quiz_admin');
62
- add_submenu_page(__FILE__, 'Quiz Options', 'Quiz Options', 8, 'mlw_quiz_options', 'mlw_generate_quiz_options');
63
- add_submenu_page(__FILE__, 'Quiz Results', 'Quiz Results', 8, 'mlw_quiz_results', 'mlw_generate_quiz_results');
64
- add_submenu_page(__FILE__, 'Quiz Result Details', 'Quiz Result Details', 8, 'mlw_quiz_result_details', 'mlw_generate_result_details');
65
- add_submenu_page(__FILE__, 'Tools', 'Tools', 8, 'mlw_quiz_tools', 'mlw_generate_quiz_tools');
66
- add_submenu_page(__FILE__, 'How-To', 'How-To', 8, 'mlw_how_to', 'mlw_generate_help_page');
67
  }
68
  }
69
  /*
3
  /*
4
  Plugin Name: Quiz Master Next
5
  Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
6
+ Version: 1.4.2
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
57
  {
58
  if (function_exists('add_menu_page'))
59
  {
60
+ add_menu_page('Quiz Dashboard', 'Quiz Dashboard', 'manage_options', __FILE__, 'mlw_generate_quiz_dashboard', 'dashicons-feedback');
61
+ add_submenu_page(__FILE__, 'Quizzes', 'Quizzes', 'manage_options', 'mlw_quiz_admin', 'mlw_generate_quiz_admin');
62
+ add_submenu_page(__FILE__, 'Quiz Options', 'Quiz Options', 'manage_options', 'mlw_quiz_options', 'mlw_generate_quiz_options');
63
+ add_submenu_page(__FILE__, 'Quiz Results', 'Quiz Results', 'manage_options', 'mlw_quiz_results', 'mlw_generate_quiz_results');
64
+ add_submenu_page(__FILE__, 'Quiz Result Details', 'Quiz Result Details', 'manage_options', 'mlw_quiz_result_details', 'mlw_generate_result_details');
65
+ add_submenu_page(__FILE__, 'Tools', 'Tools', 'manage_options', 'mlw_quiz_tools', 'mlw_generate_quiz_tools');
66
+ add_submenu_page(__FILE__, 'How-To', 'How-To', 'manage_options', 'mlw_how_to', 'mlw_generate_help_page');
67
  }
68
  }
69
  /*
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Quiz Master Next ===
2
  Contributors: fpcorso
3
- Tags: quiz, test, score, survey, contact
4
  Requires at least: 3.3
5
  Tested up to: 3.8.1
6
- Stable tag: 1.4.1
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
9
  Use this plugin to add multiple quizzes, tests, surveys, or contact forms to your website.
@@ -12,7 +12,7 @@ Use this plugin to add multiple quizzes, tests, surveys, or contact forms to you
12
 
13
  Use this plugin to add multiple quizzes, tests, and surveys to your website. This plugin allows for unlimited quizzes 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.
14
 
15
- Features include:
16
 
17
  * Allows for Unlimited Quizzes, Tests, Surveys, Contact Forms, etc..
18
  * Allows for Unlimited Questions in each Quiz
@@ -39,9 +39,25 @@ Features include:
39
 
40
  == Installation ==
41
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  * Upload plugin dir to the `/wp-content/plugins/` directory
43
  * Activate the plugin through the 'Plugins' menu in WordPress
44
 
 
 
 
 
45
  == Frequently Asked Questions ==
46
 
47
  = What does the option do on that page? =
@@ -65,6 +81,12 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
65
 
66
  == Changelog ==
67
 
 
 
 
 
 
 
68
  = 1.4.1 (February 20, 2014) =
69
  * Enhanced Plugins Compatibility With Other Plugins
70
  * Hints Are Now Hidden By Default
@@ -266,6 +288,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
266
 
267
  == Upgrade Notice ==
268
 
 
 
 
269
  = 1.4.1 =
270
  This update helps plugin work better with other plugins. The hints for the quiz are now hidden by default.
271
 
1
  === Quiz Master Next ===
2
  Contributors: fpcorso
3
+ Tags: quiz, test, score, survey, contact, form, email
4
  Requires at least: 3.3
5
  Tested up to: 3.8.1
6
+ Stable tag: 1.4.2
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
9
  Use this plugin to add multiple quizzes, tests, surveys, or contact forms to your website.
12
 
13
  Use this plugin to add multiple quizzes, tests, and surveys to your website. This plugin allows for unlimited quizzes 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.
14
 
15
+ = Features =
16
 
17
  * Allows for Unlimited Quizzes, Tests, Surveys, Contact Forms, etc..
18
  * Allows for Unlimited Questions in each Quiz
39
 
40
  == Installation ==
41
 
42
+ We now offer an installation service to assist you in this process. We will install any or all of our plugins and spend up to 2 hours with you for consultaion and training. Visit our website for details.
43
+ (http://mylocalwebstop.com/services/)
44
+
45
+ **Or**
46
+
47
+ * Navigate to Add New Plugin page within your WordPress
48
+ * Search for Quiz Master Next
49
+ * Click Install Now link on the plugin and follow the prompts
50
+ * Activate the plugin through the 'Plugins' menu in WordPress
51
+
52
+ **Or**
53
+
54
  * Upload plugin dir to the `/wp-content/plugins/` directory
55
  * Activate the plugin through the 'Plugins' menu in WordPress
56
 
57
+
58
+
59
+
60
+
61
  == Frequently Asked Questions ==
62
 
63
  = What does the option do on that page? =
81
 
82
  == Changelog ==
83
 
84
+ = 1.4.2 (February 22, 2014) =
85
+ * Fixed Capability Bug
86
+ * Minor Design Changes To Question Form
87
+ * Hint Bubble Is Now Wider For Longer Hints
88
+ * Minor Design Change To Quiz
89
+
90
  = 1.4.1 (February 20, 2014) =
91
  * Enhanced Plugins Compatibility With Other Plugins
92
  * Hints Are Now Hidden By Default
288
 
289
  == Upgrade Notice ==
290
 
291
+ = 1.4.2 =
292
+ This update brings many minor design changes and minor bug fixes.
293
+
294
  = 1.4.1 =
295
  This update helps plugin work better with other plugins. The hints for the quiz are now hidden by default.
296