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

Version Description

(May 26, 2014) = * Took Out Help Related Tool Tips * Design Changes To Quiz Text Tab For Easier Navigation * Deleted How-To Page, Please Use Documentation On Our Website * Renamed Quiz Options Page As Quiz Settings To Avoid Confusion With Quiz Options Tab

Download this release

Release Info

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

Code changes from version 2.7.3 to 2.8.1

includes/mlw_qmn_credits.php CHANGED
@@ -87,18 +87,18 @@ function mlw_generate_about_page()
87
  <a href="#" class="nav-tab nav-tab-active">
88
  What&#8217;s New In <?php echo $mlw_quiz_version; ?> </a>
89
  </h2>
90
- <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Set Number Of Questions Per Page</h2>
91
- <p>This update allows you to set the number of questions per page! Simply navigate to the Quiz Options tab and change the new "How many questions per page would you like?" option to the amount you would like. Set it to 0 to have all the quesitons on one page.</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 several new premium add-ons in our WordPress Store: 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>
95
  <br />
96
  <h3>Changelog For <?php echo $mlw_quiz_version; ?></h3>
97
  <ul>
98
- <li>Added Ability To Set Number Of Question Per Page</li>
99
- <li>Fixed HTML Not Showing On Results Page Bug</li>
100
- <li>Fixed Timer Not Disabling New Fields Bug</li>
101
- <li>Fixed Timer Submitting Disabled Fields Bug</li>
102
  </ul>
103
  <h3>What's Coming Soon</h3>
104
  <ul>
87
  <a href="#" class="nav-tab nav-tab-active">
88
  What&#8217;s New In <?php echo $mlw_quiz_version; ?> </a>
89
  </h2>
90
+ <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Many Minor Design Changes</h2>
91
+ <p>This update is the first of many to start making Quiz Master Next easier to use and understand. This first step has a few pages renamed and a few sections redesigned.</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 several new premium add-ons in our WordPress Store: 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>
95
  <br />
96
  <h3>Changelog For <?php echo $mlw_quiz_version; ?></h3>
97
  <ul>
98
+ <li>Took Out Help Related Tool Tips</li>
99
+ <li>Design Changes To Quiz Text Tab For Easier Navigation</li>
100
+ <li>Deleted How-To Page, Please Use Documentation On Our Website</li>
101
+ <li>Renamed Quiz Options Page As Quiz Settings To Avoid Confusion With Quiz Options Tab</li>
102
  </ul>
103
  <h3>What's Coming Soon</h3>
104
  <ul>
includes/mlw_quiz.php CHANGED
@@ -16,6 +16,7 @@ function mlw_quiz_shortcode($atts)
16
 
17
  //Variables needed throughout script
18
  $mlw_quiz_id = intval($quiz);
 
19
  $mlw_display = "";
20
  global $wpdb;
21
  $mlw_qmn_isAllowed = true;
@@ -661,6 +662,10 @@ function mlw_quiz_shortcode($atts)
661
  {
662
  $mlw_display .= mlwDisplayContactInfo($mlw_quiz_options);
663
  }
 
 
 
 
664
  $mlw_display .= "<span style='display: none;'>If you are human, leave this field blank or you will be considered spam:</span>";
665
  $mlw_display .= "<input style='display: none;' type='text' name='email' id='email' />";
666
  $mlw_display .= "<input type='hidden' name='total_questions' id='total_questions' value='".$mlw_qmn_total_questions."'/>";
16
 
17
  //Variables needed throughout script
18
  $mlw_quiz_id = intval($quiz);
19
+ $GLOBALS['mlw_qmn_quiz'] = $mlw_quiz_id;
20
  $mlw_display = "";
21
  global $wpdb;
22
  $mlw_qmn_isAllowed = true;
662
  {
663
  $mlw_display .= mlwDisplayContactInfo($mlw_quiz_options);
664
  }
665
+ ob_start();
666
+ do_action('mlw_qmn_end_quiz_section');
667
+ $mlw_display .= ob_get_contents();
668
+ ob_end_clean();
669
  $mlw_display .= "<span style='display: none;'>If you are human, leave this field blank or you will be considered spam:</span>";
670
  $mlw_display .= "<input style='display: none;' type='text' name='email' id='email' />";
671
  $mlw_display .= "<input type='hidden' name='total_questions' id='total_questions' value='".$mlw_qmn_total_questions."'/>";
includes/mlw_quiz_admin.php CHANGED
@@ -72,8 +72,8 @@ function mlw_generate_quiz_admin()
72
  }";
73
  $mlw_question_answer_default = "%QUESTION%<br /> Answer Provided: %USER_ANSWER%<br /> Correct Answer: %CORRECT_ANSWER%<br /> Comments Entered: %USER_COMMENTS%<br />";
74
  $insert = "INSERT INTO " . $table_name .
75
- "(quiz_id, quiz_name, message_before, message_after, message_comment, message_end_template, user_email_template, admin_email_template, submit_button_text, name_field_text, business_field_text, email_field_text, phone_field_text, comment_field_text, email_from_text, question_answer_template, leaderboard_template, system, randomness_order, loggedin_user_contact, show_score, send_user_email, send_admin_email, contact_info_location, user_name, user_comp, user_email, user_phone, admin_email, comment_section, question_from_total, total_user_tries, total_user_tries_text, certificate_template, social_media, social_media_text, pagination, pagination_text, timer_limit, quiz_stye, question_numbering, quiz_views, quiz_taken, deleted) " .
76
- "VALUES (NULL , '" . $quiz_name . "' , 'Enter your text here', 'Enter your text here', 'Enter your text here', '', 'Enter your text here', 'Enter your text here', 'Submit Quiz', 'Name', 'Business', 'Email', 'Phone Number', 'Comments', 'Wordpress', '".$mlw_question_answer_default."', '".$mlw_leaderboard_default."', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '".get_option( 'admin_email', 'Enter email' )."', 0, 0, 0, 'Enter Your Text Here', 'Enter Your Text Here!', 0, 'I just score a %CORRECT_SCORE%% on %QUIZ_NAME%!', 0, 'Next', 0, '".$mlw_style_default."', 0, 0, 0, 0)";
77
  $results = $wpdb->query( $insert );
78
  if ($results != false)
79
  {
72
  }";
73
  $mlw_question_answer_default = "%QUESTION%<br /> Answer Provided: %USER_ANSWER%<br /> Correct Answer: %CORRECT_ANSWER%<br /> Comments Entered: %USER_COMMENTS%<br />";
74
  $insert = "INSERT INTO " . $table_name .
75
+ "(quiz_id, quiz_name, message_before, message_after, message_comment, message_end_template, user_email_template, admin_email_template, submit_button_text, name_field_text, business_field_text, email_field_text, phone_field_text, comment_field_text, email_from_text, question_answer_template, leaderboard_template, system, randomness_order, loggedin_user_contact, show_score, send_user_email, send_admin_email, contact_info_location, user_name, user_comp, user_email, user_phone, admin_email, comment_section, question_from_total, total_user_tries, total_user_tries_text, certificate_template, social_media, social_media_text, pagination, pagination_text, timer_limit, quiz_stye, question_numbering, quiz_settings, quiz_views, quiz_taken, deleted) " .
76
+ "VALUES (NULL , '" . $quiz_name . "' , 'Enter your text here', 'Enter your text here', 'Enter your text here', '', 'Enter your text here', 'Enter your text here', 'Submit Quiz', 'Name', 'Business', 'Email', 'Phone Number', 'Comments', 'Wordpress', '".$mlw_question_answer_default."', '".$mlw_leaderboard_default."', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '".get_option( 'admin_email', 'Enter email' )."', 0, 0, 0, 'Enter Your Text Here', 'Enter Your Text Here!', 0, 'I just score a %CORRECT_SCORE%% on %QUIZ_NAME%!', 0, 'Next', 0, '".$mlw_style_default."', 0, '', 0, 0, 0)";
77
  $results = $wpdb->query( $insert );
78
  if ($results != false)
79
  {
includes/mlw_quiz_install.php CHANGED
@@ -95,6 +95,8 @@ function mlw_quiz_activate()
95
  quiz_stye TEXT NOT NULL,
96
 
97
  question_numbering INT NOT NULL,
 
 
98
 
99
  quiz_views INT NOT NULL,
100
 
95
  quiz_stye TEXT NOT NULL,
96
 
97
  question_numbering INT NOT NULL,
98
+
99
+ quiz_settings TEXT NOT NULL,
100
 
101
  quiz_views INT NOT NULL,
102
 
includes/mlw_quiz_options.php CHANGED
@@ -710,42 +710,6 @@ function mlw_generate_quiz_options()
710
  return false;
711
  } );
712
  });
713
- $j(function() {
714
- $j('#questions_help_dialog').dialog({
715
- autoOpen: false,
716
- show: 'blind',
717
- width:700,
718
- hide: 'explode',
719
- buttons: {
720
- Ok: function() {
721
- $j(this).dialog('close');
722
- }
723
- }
724
- });
725
-
726
- $j('#question_tab_help').click(function() {
727
- $j('#questions_help_dialog').dialog('open');
728
- return false;
729
- } );
730
- });
731
- $j(function() {
732
- $j('#templates_help_dialog').dialog({
733
- autoOpen: false,
734
- show: 'blind',
735
- width:700,
736
- hide: 'explode',
737
- buttons: {
738
- Ok: function() {
739
- $j(this).dialog('close');
740
- }
741
- }
742
- });
743
-
744
- $j('#template_tab_help').click(function() {
745
- $j('#templates_help_dialog').dialog('open');
746
- return false;
747
- } );
748
- });
749
  $j(function() {
750
  $j('#options_help_dialog').dialog({
751
  autoOpen: false,
@@ -985,7 +949,7 @@ function mlw_generate_quiz_options()
985
  </script>
986
  <div class="wrap">
987
  <div class='mlw_quiz_options'>
988
- <h2>Quiz Options For <?php echo $mlw_quiz_options->quiz_name; ?><a id="opener" href="">(?)</a></h2>
989
  <?php if ($hasUpdatedLeaderboardOptions)
990
  {
991
  ?>
@@ -1132,7 +1096,7 @@ function mlw_generate_quiz_options()
1132
  <li><a href="#tabs-8">Quiz Tools</a></li>
1133
  </ul>
1134
  <div id="tabs-1">
1135
- <button id="new_question_button_two">Add Question</button><button id="question_tab_help">Help</button>
1136
  <br />
1137
  <?php
1138
  $question_list = "";
@@ -1221,7 +1185,7 @@ function mlw_generate_quiz_options()
1221
  <tr><td>&nbsp;</td></tr>
1222
  <tr><td>&nbsp;</td></tr>
1223
  <tr valign="top">
1224
- <td><span style='font-weight:bold;'>Question Type?</span></td>
1225
  <td colspan="3">
1226
  <select name="edit_question_type">
1227
  <option value="0" <?php if ($mlw_question_info->question_type == 0) { echo 'selected="selected"'; } ?>>Normal Multiple Choice (Vertical Radio)</option>
@@ -1233,7 +1197,7 @@ function mlw_generate_quiz_options()
1233
  </div></td>
1234
  </tr>
1235
  <tr valign="top">
1236
- <td><span style='font-weight:bold;'>Comment Field?</span></td>
1237
  <td colspan="3">
1238
  <input type="radio" id="<?php echo $mlw_question_info->question_id; ?>_editCommentRadio1" name="edit_comments" value=0 <?php if ($mlw_question_info->comments == 0) { echo 'checked="checked"'; } ?>/><label for="<?php echo $mlw_question_info->question_id; ?>_editCommentRadio1">Small Text Field</label>
1239
  <input type="radio" id="<?php echo $mlw_question_info->question_id; ?>_editCommentRadio3" name="edit_comments" value=2 <?php if ($mlw_question_info->comments == 2) { echo 'checked="checked"'; } ?>/><label for="<?php echo $mlw_question_info->question_id; ?>_editCommentRadio3">Large Text Field</label>
@@ -1304,7 +1268,7 @@ function mlw_generate_quiz_options()
1304
  <tr>
1305
  <td><span style='font-weight:bold;'>Question</span></td>
1306
  <td colspan="3">
1307
- <textarea name="question_name" id="question_name" style="width: 500px; height: 150px;" title="Enter the question here. Feel free to use HTML, embed Youtube videos, link to images, etc..."></textarea>
1308
  </td>
1309
  </tr>
1310
  <tr valign="top">
@@ -1313,9 +1277,9 @@ function mlw_generate_quiz_options()
1313
  </tr>
1314
  <tr valign="top">
1315
  <td>&nbsp;</td>
1316
- <td><span style='font-weight:bold;'>Answers<a href='#' title="Enter the question's answers here. If you are using this quiz as a survey or form, you can leave all the answers blank to only show the comment field.">?</a></span></td>
1317
- <td><span style='font-weight:bold;'>Points Worth<a href="#" title="If you have your quiz set up using the point system, enter how many points this answer is worth here. If you are not using the point system, leave this as 0.">?</a></span></td>
1318
- <td><span style='font-weight:bold;'>Correct Answer<a href="#" title="Select the correct answer.">?</a></span></td>
1319
  </tr>
1320
  <?php
1321
  $mlw_answer_total = 0;
@@ -1342,14 +1306,14 @@ function mlw_generate_quiz_options()
1342
  <br />
1343
  <table class="wide" style="text-align: left; white-space: nowrap;">
1344
  <tr>
1345
- <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>
1346
  <td colspan="3"><input type="text" name="correct_answer_info" value="" id="correct_answer_info" style="border-color:#000000;
1347
  color:#3300CC;
1348
  cursor:hand;
1349
  width:550px;"/></td>
1350
  </tr>
1351
  <tr valign="top">
1352
- <td><span style='font-weight:bold;'>Hint<a href="#" title="Enter the question's hint." >?</a></span></td>
1353
  <td colspan="3">
1354
  <input type="text" name="hint" value="" id="hint" style="border-color:#000000;
1355
  color:#3300CC;
@@ -1360,7 +1324,7 @@ function mlw_generate_quiz_options()
1360
  <tr><td>&nbsp;</td></tr>
1361
  <tr><td>&nbsp;</td></tr>
1362
  <tr valign="top">
1363
- <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>
1364
  <td colspan="3">
1365
  <select name="question_type">
1366
  <option value="0" selected="selected">Normal Multiple Choice (Vertical Radio)</option>
@@ -1372,7 +1336,7 @@ function mlw_generate_quiz_options()
1372
  </div></td>
1373
  </tr>
1374
  <tr valign="top">
1375
- <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>
1376
  <td colspan="3"><div id="comments">
1377
  <input type="radio" id="commentsRadio1" name="comments" value=0 /><label for="commentsRadio1">Small Text Field</label>
1378
  <input type="radio" id="commentsRadio3" name="comments" value=2 /><label for="commentsRadio3">Large Text Field</label>
@@ -1380,7 +1344,7 @@ function mlw_generate_quiz_options()
1380
  </div></td>
1381
  </tr>
1382
  <tr valign="top">
1383
- <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>
1384
  <td>
1385
  <input type="number" step="1" min="1" name="new_question_order" value="1" id="new_question_order" style="border-color:#000000;
1386
  color:#3300CC;
@@ -1400,7 +1364,7 @@ function mlw_generate_quiz_options()
1400
 
1401
  </div>
1402
  <div id="tabs-2">
1403
- <h3>Template Variables</h3>
1404
  <table class="form-table">
1405
  <tr>
1406
  <td><strong>%POINT_SCORE%</strong> - Total points user earned when taking quiz</td>
@@ -1453,15 +1417,13 @@ function mlw_generate_quiz_options()
1453
  <td><strong>%CURRENT_DATE%</strong> - The Current Date</td>
1454
  </tr>
1455
  </table>
1456
- <button id="save_template_button" onclick="javascript: document.quiz_template_form.submit();">Save Templates</button><button id="template_tab_help">Help</button>
1457
  <?php
1458
  echo "<form action='' method='post' name='quiz_template_form'>";
1459
  echo "<input type='hidden' name='save_templates' value='confirmation' />";
1460
  echo "<input type='hidden' name='quiz_id' value='".$quiz_id."' />";
1461
  ?>
1462
- <div id="accordion">
1463
- <h3><a href="#">Message Template</a></h3>
1464
- <div>
1465
  <table class="form-table">
1466
  <tr>
1467
  <td width="30%">
@@ -1498,47 +1460,48 @@ function mlw_generate_quiz_options()
1498
  </tr>
1499
  <tr>
1500
  <td width="30%">
1501
- <strong>Message Displayed After Quiz</strong>
1502
  <br />
1503
  <p>Allowed Variables: </p>
1504
- <p style="margin: 2px 0">- %POINT_SCORE%</p>
1505
- <p style="margin: 2px 0">- %AVERAGE_POINT%</p>
1506
- <p style="margin: 2px 0">- %AMOUNT_CORRECT%</p>
1507
- <p style="margin: 2px 0">- %TOTAL_QUESTIONS%</p>
1508
- <p style="margin: 2px 0">- %CORRECT_SCORE%</p>
1509
  <p style="margin: 2px 0">- %QUIZ_NAME%</p>
1510
- <p style="margin: 2px 0">- %USER_NAME%</p>
1511
- <p style="margin: 2px 0">- %USER_BUSINESS%</p>
1512
- <p style="margin: 2px 0">- %USER_PHONE%</p>
1513
- <p style="margin: 2px 0">- %USER_EMAIL%</p>
1514
- <p style="margin: 2px 0">- %COMMENT_SECTION%</p>
1515
- <p style="margin: 2px 0">- %QUESTIONS_ANSWERS%</p>
1516
- <p style="margin: 2px 0">- %TIMER%</p>
1517
  <p style="margin: 2px 0">- %CURRENT_DATE%</p>
1518
  </td>
1519
- <td>Now you can have different results pages based on the user score! This field is now edited on the Quiz Results Page tab.
1520
  </td>
1521
  </tr>
1522
  <tr>
1523
  <td width="30%">
1524
- <strong>Message Displayed If User Has Tried Quiz Too Many Times</strong>
1525
  <br />
1526
  <p>Allowed Variables: </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1527
  <p style="margin: 2px 0">- %QUIZ_NAME%</p>
 
1528
  <p style="margin: 2px 0">- %CURRENT_DATE%</p>
1529
  </td>
1530
- <td><textarea cols="80" rows="15" id="mlw_quiz_total_user_tries_text" name="mlw_quiz_total_user_tries_text"><?php echo $mlw_quiz_options->total_user_tries_text; ?></textarea>
1531
  </td>
1532
  </tr>
1533
  </table>
1534
-
1535
- </div>
1536
- <h3><a href="#">Email Template</a></h3>
1537
- <div>
1538
- <h3>You can now send differnt emails based on score! Edit your email templates from the new Quiz Emails tab.</h3>
1539
- </div>
1540
- <h3><a href="#">Other Template</a></h3>
1541
- <div>
1542
  <table class="form-table">
1543
  <tr valign="top">
1544
  <th scope="row"><label for="mlw_submitText">Text for submit button</label></th>
@@ -1577,42 +1540,6 @@ function mlw_generate_quiz_options()
1577
  <td><input name="emailFromText" type="text" id="emailFromText" value="<?php echo $mlw_quiz_options->email_from_text; ?>" class="regular-text" /></td>
1578
  </tr>
1579
  </table>
1580
- <table class="form-table">
1581
- <tr>
1582
- <td width="30%">
1583
- <strong>%QUESTIONS_ANSWERS% Text</strong>
1584
- <br />
1585
- <p>Allowed Variables: </p>
1586
- <p style="margin: 2px 0">- %QUESTION%</p>
1587
- <p style="margin: 2px 0">- %USER_ANSWER%</p>
1588
- <p style="margin: 2px 0">- %CORRECT_ANSWER%</p>
1589
- <p style="margin: 2px 0">- %USER_COMMENTS%</p>
1590
- <p style="margin: 2px 0">- %CORRECT_ANSWER_INFO%</p>
1591
- </td>
1592
- <td><textarea cols="80" rows="15" id="mlw_quiz_question_answer_template" name="mlw_quiz_question_answer_template"><?php echo $mlw_quiz_options->question_answer_template; ?></textarea>
1593
- </td>
1594
- </tr>
1595
- <tr>
1596
- <td width="30%">
1597
- <strong>Social Media Sharing Text</strong>
1598
- <br />
1599
- <p>Allowed Variables: </p>
1600
- <p style="margin: 2px 0">- %POINT_SCORE%</p>
1601
- <p style="margin: 2px 0">- %AVERAGE_POINT%</p>
1602
- <p style="margin: 2px 0">- %AMOUNT_CORRECT%</p>
1603
- <p style="margin: 2px 0">- %TOTAL_QUESTIONS%</p>
1604
- <p style="margin: 2px 0">- %CORRECT_SCORE%</p>
1605
- <p style="margin: 2px 0">- %QUIZ_NAME%</p>
1606
- <p style="margin: 2px 0">- %TIMER%</p>
1607
- <p style="margin: 2px 0">- %CURRENT_DATE%</p>
1608
- </td>
1609
- <td><textarea cols="80" rows="15" id="mlw_quiz_social_media_text_template" name="mlw_quiz_social_media_text_template"><?php echo $mlw_quiz_options->social_media_text; ?></textarea>
1610
- </td>
1611
- </tr>
1612
- </table>
1613
-
1614
- </div>
1615
- </div>
1616
  <button id="save_template_button" onclick="javascript: document.quiz_template_form.submit();">Save Templates</button>
1617
  <?php echo "</form>"; ?>
1618
  </div>
@@ -2151,8 +2078,7 @@ function mlw_generate_quiz_options()
2151
  </form>
2152
  </div>
2153
  <div id="tabs-7">
2154
- <h3>Quiz CSS</h3>
2155
- <p>This page allows you to edit the css styles for the quiz.</p>
2156
  <p>Entire quiz is a div with class 'mlw_qmn_quiz'</p>
2157
  <p>Each page of the quiz is div with class 'quiz_section'</p>
2158
  <p>Message before quiz text is a span with class 'mlw_qmn_message_before'</p>
@@ -2224,6 +2150,7 @@ function mlw_generate_quiz_options()
2224
  <div id="tabs-8">
2225
  <p>Use this button to reset all the stats collected for this quiz (Quiz Views and Times Quiz Has Been Taken). </p>
2226
  <button id="mlw_reset_stats_button">Reset Quiz Views And Taken Stats</button>
 
2227
  <div id="mlw_reset_stats_dialog" title="Reset Stats For This Quiz" style="display:none;">
2228
  <p>Are you sure you want to reset the stats to 0? All views and taken stats for this quiz will be reset. This is permanent and cannot be undone.</p>
2229
  <?php
@@ -2258,26 +2185,6 @@ function mlw_generate_quiz_options()
2258
  <p>This page is used edit the questions and options for your quiz. Use the help buttons on each tab for assistance.</p>
2259
  </div>
2260
 
2261
- <div id="questions_help_dialog" title="Help" style="display:none;">
2262
- <p>The question table lists the order the question appears in and the question itself.</p>
2263
- <p>To edit a question, use the Edit link below the question.</p>
2264
- <p>To add a question, click on the Add Question button. This will open a window for you to add a question. The window will ask for the question and up to 6 answers. If you are using the points system, enter in the amount of points each answer is worth. If you are using the correct system, check the answer that is the correct answer.
2265
- You can then choose which style of question you would like by selecting an option for the "Question Type?" option. You can choose if you would like a comment field after the question by selecting an option to the "Comment Field?" question. You can also have a hint displayed to the user. You can then choose the order which the question is
2266
- asked by editing the "Question Order" option. Click create question when you are finished.</p>
2267
- </div>
2268
-
2269
- <div id="templates_help_dialog" title="Help" style="display:none;">
2270
- <p>This tab is used to edit the different messages the user and admin may see.</p>
2271
- <p>The Message Displayed Before Quiz text is shown to the user at the beginning of the quiz.</p>
2272
- <p>The Message Display Before Comment Box is shown to the user right before the section the user can type in comments if that option is enabled.</p>
2273
- <p>The Message Displayed After Quiz text is show to the user after the quiz has been taken.</p>
2274
- <p>The Email sent to user after completion text is the email that is sent to the user after completing the quiz. (This is only used if you have turned on the option on the options tab.)</p>
2275
- <p>The Email sent to admin after completion text is the email that is sent to the admin after the quiz has been completed.</p>
2276
- <p>The other templates section is for customizing the text on the submit button as well as the fields where are user can input his or her information.</p>
2277
- <p>The %QUESTIONS_ANSWERS% Text area is where you can change the test shown in place of the %QUESTIONS_ANSWERS% variable.</p>
2278
- <p>Some templates are able to have variables inside the text. When the quiz is run, these variables will change to their values.</p>
2279
- </div>
2280
-
2281
  <div id="options_help_dialog" title="Help" style="display:none;">
2282
  <p>This tab is used to edit the different options for the quiz.</p>
2283
  <p>The system option allows you to have the quiz be graded using a correct/incorrect system or the quiz can have each answer worth different amount of points.</p>
710
  return false;
711
  } );
712
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
713
  $j(function() {
714
  $j('#options_help_dialog').dialog({
715
  autoOpen: false,
949
  </script>
950
  <div class="wrap">
951
  <div class='mlw_quiz_options'>
952
+ <h2>Quiz Settings For <?php echo $mlw_quiz_options->quiz_name; ?><a id="opener" href="">(?)</a></h2>
953
  <?php if ($hasUpdatedLeaderboardOptions)
954
  {
955
  ?>
1096
  <li><a href="#tabs-8">Quiz Tools</a></li>
1097
  </ul>
1098
  <div id="tabs-1">
1099
+ <button id="new_question_button_two">Add Question</button>
1100
  <br />
1101
  <?php
1102
  $question_list = "";
1185
  <tr><td>&nbsp;</td></tr>
1186
  <tr><td>&nbsp;</td></tr>
1187
  <tr valign="top">
1188
+ <td><span style='font-weight:bold;'>Question Type</span></td>
1189
  <td colspan="3">
1190
  <select name="edit_question_type">
1191
  <option value="0" <?php if ($mlw_question_info->question_type == 0) { echo 'selected="selected"'; } ?>>Normal Multiple Choice (Vertical Radio)</option>
1197
  </div></td>
1198
  </tr>
1199
  <tr valign="top">
1200
+ <td><span style='font-weight:bold;'>Comment Field</span></td>
1201
  <td colspan="3">
1202
  <input type="radio" id="<?php echo $mlw_question_info->question_id; ?>_editCommentRadio1" name="edit_comments" value=0 <?php if ($mlw_question_info->comments == 0) { echo 'checked="checked"'; } ?>/><label for="<?php echo $mlw_question_info->question_id; ?>_editCommentRadio1">Small Text Field</label>
1203
  <input type="radio" id="<?php echo $mlw_question_info->question_id; ?>_editCommentRadio3" name="edit_comments" value=2 <?php if ($mlw_question_info->comments == 2) { echo 'checked="checked"'; } ?>/><label for="<?php echo $mlw_question_info->question_id; ?>_editCommentRadio3">Large Text Field</label>
1268
  <tr>
1269
  <td><span style='font-weight:bold;'>Question</span></td>
1270
  <td colspan="3">
1271
+ <textarea name="question_name" id="question_name" style="width: 500px; height: 150px;"></textarea>
1272
  </td>
1273
  </tr>
1274
  <tr valign="top">
1277
  </tr>
1278
  <tr valign="top">
1279
  <td>&nbsp;</td>
1280
+ <td><span style='font-weight:bold;'>Answers</span></td>
1281
+ <td><span style='font-weight:bold;'>Points Worth</span></td>
1282
+ <td><span style='font-weight:bold;'>Correct Answer</span></td>
1283
  </tr>
1284
  <?php
1285
  $mlw_answer_total = 0;
1306
  <br />
1307
  <table class="wide" style="text-align: left; white-space: nowrap;">
1308
  <tr>
1309
+ <td><span style='font-weight:bold;'>Correct Answer Info</span></td>
1310
  <td colspan="3"><input type="text" name="correct_answer_info" value="" id="correct_answer_info" style="border-color:#000000;
1311
  color:#3300CC;
1312
  cursor:hand;
1313
  width:550px;"/></td>
1314
  </tr>
1315
  <tr valign="top">
1316
+ <td><span style='font-weight:bold;'>Hint</span></td>
1317
  <td colspan="3">
1318
  <input type="text" name="hint" value="" id="hint" style="border-color:#000000;
1319
  color:#3300CC;
1324
  <tr><td>&nbsp;</td></tr>
1325
  <tr><td>&nbsp;</td></tr>
1326
  <tr valign="top">
1327
+ <td><span style='font-weight:bold;'>Question Type</span></td>
1328
  <td colspan="3">
1329
  <select name="question_type">
1330
  <option value="0" selected="selected">Normal Multiple Choice (Vertical Radio)</option>
1336
  </div></td>
1337
  </tr>
1338
  <tr valign="top">
1339
+ <td><span style='font-weight:bold;'>Comment Field</span></td>
1340
  <td colspan="3"><div id="comments">
1341
  <input type="radio" id="commentsRadio1" name="comments" value=0 /><label for="commentsRadio1">Small Text Field</label>
1342
  <input type="radio" id="commentsRadio3" name="comments" value=2 /><label for="commentsRadio3">Large Text Field</label>
1344
  </div></td>
1345
  </tr>
1346
  <tr valign="top">
1347
+ <td><span style='font-weight:bold;'>Question Order</span></td>
1348
  <td>
1349
  <input type="number" step="1" min="1" name="new_question_order" value="1" id="new_question_order" style="border-color:#000000;
1350
  color:#3300CC;
1364
 
1365
  </div>
1366
  <div id="tabs-2">
1367
+ <h3 style="text-align: center;">Template Variables</h3>
1368
  <table class="form-table">
1369
  <tr>
1370
  <td><strong>%POINT_SCORE%</strong> - Total points user earned when taking quiz</td>
1417
  <td><strong>%CURRENT_DATE%</strong> - The Current Date</td>
1418
  </tr>
1419
  </table>
1420
+ <button id="save_template_button" onclick="javascript: document.quiz_template_form.submit();">Save Templates</button>
1421
  <?php
1422
  echo "<form action='' method='post' name='quiz_template_form'>";
1423
  echo "<input type='hidden' name='save_templates' value='confirmation' />";
1424
  echo "<input type='hidden' name='quiz_id' value='".$quiz_id."' />";
1425
  ?>
1426
+ <h3 style="text-align: center;">Message Templates</h3>
 
 
1427
  <table class="form-table">
1428
  <tr>
1429
  <td width="30%">
1460
  </tr>
1461
  <tr>
1462
  <td width="30%">
1463
+ <strong>Message Displayed If User Has Tried Quiz Too Many Times</strong>
1464
  <br />
1465
  <p>Allowed Variables: </p>
 
 
 
 
 
1466
  <p style="margin: 2px 0">- %QUIZ_NAME%</p>
 
 
 
 
 
 
 
1467
  <p style="margin: 2px 0">- %CURRENT_DATE%</p>
1468
  </td>
1469
+ <td><textarea cols="80" rows="15" id="mlw_quiz_total_user_tries_text" name="mlw_quiz_total_user_tries_text"><?php echo $mlw_quiz_options->total_user_tries_text; ?></textarea>
1470
  </td>
1471
  </tr>
1472
  <tr>
1473
  <td width="30%">
1474
+ <strong>%QUESTIONS_ANSWERS% Text</strong>
1475
  <br />
1476
  <p>Allowed Variables: </p>
1477
+ <p style="margin: 2px 0">- %QUESTION%</p>
1478
+ <p style="margin: 2px 0">- %USER_ANSWER%</p>
1479
+ <p style="margin: 2px 0">- %CORRECT_ANSWER%</p>
1480
+ <p style="margin: 2px 0">- %USER_COMMENTS%</p>
1481
+ <p style="margin: 2px 0">- %CORRECT_ANSWER_INFO%</p>
1482
+ </td>
1483
+ <td><textarea cols="80" rows="15" id="mlw_quiz_question_answer_template" name="mlw_quiz_question_answer_template"><?php echo $mlw_quiz_options->question_answer_template; ?></textarea>
1484
+ </td>
1485
+ </tr>
1486
+ <tr>
1487
+ <td width="30%">
1488
+ <strong>Social Media Sharing Text</strong>
1489
+ <br />
1490
+ <p>Allowed Variables: </p>
1491
+ <p style="margin: 2px 0">- %POINT_SCORE%</p>
1492
+ <p style="margin: 2px 0">- %AVERAGE_POINT%</p>
1493
+ <p style="margin: 2px 0">- %AMOUNT_CORRECT%</p>
1494
+ <p style="margin: 2px 0">- %TOTAL_QUESTIONS%</p>
1495
+ <p style="margin: 2px 0">- %CORRECT_SCORE%</p>
1496
  <p style="margin: 2px 0">- %QUIZ_NAME%</p>
1497
+ <p style="margin: 2px 0">- %TIMER%</p>
1498
  <p style="margin: 2px 0">- %CURRENT_DATE%</p>
1499
  </td>
1500
+ <td><textarea cols="80" rows="15" id="mlw_quiz_social_media_text_template" name="mlw_quiz_social_media_text_template"><?php echo $mlw_quiz_options->social_media_text; ?></textarea>
1501
  </td>
1502
  </tr>
1503
  </table>
1504
+ <h3 style="text-align: center;">Other Templates</h3>
 
 
 
 
 
 
 
1505
  <table class="form-table">
1506
  <tr valign="top">
1507
  <th scope="row"><label for="mlw_submitText">Text for submit button</label></th>
1540
  <td><input name="emailFromText" type="text" id="emailFromText" value="<?php echo $mlw_quiz_options->email_from_text; ?>" class="regular-text" /></td>
1541
  </tr>
1542
  </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1543
  <button id="save_template_button" onclick="javascript: document.quiz_template_form.submit();">Save Templates</button>
1544
  <?php echo "</form>"; ?>
1545
  </div>
2078
  </form>
2079
  </div>
2080
  <div id="tabs-7">
2081
+ <h3>Quiz Styles</h3>
 
2082
  <p>Entire quiz is a div with class 'mlw_qmn_quiz'</p>
2083
  <p>Each page of the quiz is div with class 'quiz_section'</p>
2084
  <p>Message before quiz text is a span with class 'mlw_qmn_message_before'</p>
2150
  <div id="tabs-8">
2151
  <p>Use this button to reset all the stats collected for this quiz (Quiz Views and Times Quiz Has Been Taken). </p>
2152
  <button id="mlw_reset_stats_button">Reset Quiz Views And Taken Stats</button>
2153
+ <?php do_action('mlw_qmn_quiz_tools'); ?>
2154
  <div id="mlw_reset_stats_dialog" title="Reset Stats For This Quiz" style="display:none;">
2155
  <p>Are you sure you want to reset the stats to 0? All views and taken stats for this quiz will be reset. This is permanent and cannot be undone.</p>
2156
  <?php
2185
  <p>This page is used edit the questions and options for your quiz. Use the help buttons on each tab for assistance.</p>
2186
  </div>
2187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2188
  <div id="options_help_dialog" title="Help" style="display:none;">
2189
  <p>This tab is used to edit the different options for the quiz.</p>
2190
  <p>The system option allows you to have the quiz be graded using a correct/incorrect system or the quiz can have each answer worth different amount of points.</p>
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.7.3";
10
  if ( ! get_option('mlw_quiz_master_version'))
11
  {
12
  add_option('mlw_quiz_master_version' , $data);
@@ -227,6 +227,15 @@ function mlw_quiz_update()
227
  $results = $wpdb->query( $update_sql );
228
  }
229
 
 
 
 
 
 
 
 
 
 
230
 
231
  global $wpdb;
232
  $table_name = $wpdb->prefix . "mlw_questions";
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.8.1";
10
  if ( ! get_option('mlw_quiz_master_version'))
11
  {
12
  add_option('mlw_quiz_master_version' , $data);
227
  $results = $wpdb->query( $update_sql );
228
  }
229
 
230
+ //Update 2.8.1
231
+ if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'quiz_settings'") != "quiz_settings")
232
+ {
233
+ $sql = "ALTER TABLE ".$table_name." ADD quiz_settings TEXT NOT NULL AFTER question_numbering";
234
+ $results = $wpdb->query( $sql );
235
+ $update_sql = "UPDATE ".$table_name." SET quiz_settings=''";
236
+ $results = $wpdb->query( $update_sql );
237
+ }
238
+
239
 
240
  global $wpdb;
241
  $table_name = $wpdb->prefix . "mlw_questions";
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.7.3
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
@@ -31,7 +31,6 @@ include("includes/mlw_results.php");
31
  include("includes/mlw_results_details.php");
32
  include("includes/mlw_tools.php");
33
  include("includes/mlw_leaderboard.php");
34
- include("includes/mlw_help.php");
35
  include("includes/mlw_update.php");
36
  include("includes/mlw_qmn_widgets.php");
37
  include("includes/mlw_qmn_credits.php");
@@ -60,11 +59,10 @@ function mlw_add_menu()
60
  {
61
  add_menu_page('Quiz Master Next', 'Quiz Dashboard', 'moderate_comments', __FILE__, 'mlw_generate_quiz_dashboard', 'dashicons-feedback');
62
  add_submenu_page(__FILE__, 'Quizzes', 'Quizzes', 'moderate_comments', 'mlw_quiz_admin', 'mlw_generate_quiz_admin');
63
- add_submenu_page(__FILE__, 'Quiz Options', 'Quiz Options', 'moderate_comments', 'mlw_quiz_options', 'mlw_generate_quiz_options');
64
  add_submenu_page(__FILE__, 'Quiz Results', 'Quiz Results', 'moderate_comments', 'mlw_quiz_results', 'mlw_generate_quiz_results');
65
  add_submenu_page(__FILE__, 'Quiz Result Details', 'Quiz Result Details', 'moderate_comments', 'mlw_quiz_result_details', 'mlw_generate_result_details');
66
  add_submenu_page(__FILE__, 'Tools', 'Tools', 'manage_options', 'mlw_quiz_tools', 'mlw_generate_quiz_tools');
67
- add_submenu_page(__FILE__, 'How-To', 'How-To', 'moderate_comments', 'mlw_how_to', 'mlw_generate_help_page');
68
  add_submenu_page(__FILE__, 'QMN About', 'QMN About', 'manage_options', 'mlw_qmn_about', 'mlw_generate_about_page');
69
  }
70
  }
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.8.1
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
31
  include("includes/mlw_results_details.php");
32
  include("includes/mlw_tools.php");
33
  include("includes/mlw_leaderboard.php");
 
34
  include("includes/mlw_update.php");
35
  include("includes/mlw_qmn_widgets.php");
36
  include("includes/mlw_qmn_credits.php");
59
  {
60
  add_menu_page('Quiz Master Next', 'Quiz Dashboard', 'moderate_comments', __FILE__, 'mlw_generate_quiz_dashboard', 'dashicons-feedback');
61
  add_submenu_page(__FILE__, 'Quizzes', 'Quizzes', 'moderate_comments', 'mlw_quiz_admin', 'mlw_generate_quiz_admin');
62
+ add_submenu_page(__FILE__, 'Quiz Settings', 'Quiz Settings', 'moderate_comments', 'mlw_quiz_options', 'mlw_generate_quiz_options');
63
  add_submenu_page(__FILE__, 'Quiz Results', 'Quiz Results', 'moderate_comments', 'mlw_quiz_results', 'mlw_generate_quiz_results');
64
  add_submenu_page(__FILE__, 'Quiz Result Details', 'Quiz Result Details', 'moderate_comments', '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__, 'QMN About', 'QMN About', 'manage_options', 'mlw_qmn_about', 'mlw_generate_about_page');
67
  }
68
  }
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.5.1
6
  Tested up to: 3.9.1
7
- Stable tag: 2.7.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.
@@ -83,10 +83,10 @@ On each page, there is a "?" next to the page title. Clicking on it will bring u
83
  We have begun creating documentation for the plugin. You can view the documentation here: [Documentation](http://mylocalwebstop.com/plugin-documentation/) If you still have any trouble, feel free to use the widget on the quiz dashboard within the plugin to contact me and I will help you.
84
 
85
  = I need a lot of help setting up my quiz, what can you do to help? =
86
- We now offer a premium support plan that offers priority response, access to a premium support-only forum, and includes 1-on-1 training! For details, visit our services page: [My Local Webstop Services](http://mylocalwebstop.com/product/plugin-premium-support/)
87
 
88
  = Do you offer any 1-on-1 training to assist me in using this plugin? =
89
- We now offer an installation service that includes 1-on-1 training as well as a monthly support plan that includes 1-on-1 training. For details, visit our services page: [My Local Webstop Services](http://mylocalwebstop.com/product/plugin-installation/)
90
 
91
  = I have an idea, how do I contact you? =
92
  Feel free to use the widget on the quiz dashboard within the plugin or from the contact page at mylocalwebstop.com.
@@ -104,6 +104,12 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
104
 
105
  == Changelog ==
106
 
 
 
 
 
 
 
107
  = 2.7.3 (May 19, 2014) =
108
  * Fixed Open Answer Not Showing Correct Answer Bug
109
 
4
  Tags: quiz, test, score, survey, contact, form, email, answer, question
5
  Requires at least: 3.5.1
6
  Tested up to: 3.9.1
7
+ Stable tag: 2.8.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.
83
  We have begun creating documentation for the plugin. You can view the documentation here: [Documentation](http://mylocalwebstop.com/plugin-documentation/) If you still have any trouble, feel free to use the widget on the quiz dashboard within the plugin to contact me and I will help you.
84
 
85
  = I need a lot of help setting up my quiz, what can you do to help? =
86
+ We now offer a premium support plan that offers priority response, priority feature requests, and 1-on-1 training! For details, visit our services page: [My Local Webstop Services](http://mylocalwebstop.com/product/plugin-premium-support/)
87
 
88
  = Do you offer any 1-on-1 training to assist me in using this plugin? =
89
+ We now offer an installation service that includes 1-on-1 training as well as a premium support that offers 1-on-1 training. For details, visit our [Wordpress Store](http://mylocalwebstop.com/shop/)
90
 
91
  = I have an idea, how do I contact you? =
92
  Feel free to use the widget on the quiz dashboard within the plugin or from the contact page at mylocalwebstop.com.
104
 
105
  == Changelog ==
106
 
107
+ = 2.8.1 (May 26, 2014) =
108
+ * Took Out Help Related Tool Tips
109
+ * Design Changes To Quiz Text Tab For Easier Navigation
110
+ * Deleted How-To Page, Please Use Documentation On Our Website
111
+ * Renamed Quiz Options Page As Quiz Settings To Avoid Confusion With Quiz Options Tab
112
+
113
  = 2.7.3 (May 19, 2014) =
114
  * Fixed Open Answer Not Showing Correct Answer Bug
115