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

Version Description

This update fixes minor bugs and adds minor design changes.

Download this release

Release Info

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

Code changes from version 1.6.2 to 1.6.3

assets/screenshot-1.png CHANGED
Binary file
assets/screenshot-3.png CHANGED
Binary file
assets/screenshot-4.png CHANGED
Binary file
assets/screenshot-5.png CHANGED
Binary file
assets/screenshot-6.png CHANGED
Binary file
includes/mlw_dashboard.php CHANGED
@@ -52,7 +52,7 @@ function mlw_generate_quiz_dashboard(){
52
  add_meta_box("wpss_mrts", 'Quiz Total Stats', "mlw_dashboard_box_three", "quiz_wpss3");
53
  add_meta_box("wpss_mrts", 'Quiz Weekly Stats - Times Taken', "mlw_dashboard_box_four", "quiz_wpss4");
54
  add_meta_box("wpss_mrts", 'Quiz Monthly Stats - Times Taken', "mlw_dashboard_box_five", "quiz_wpss5");
55
- add_meta_box("wpss_mrts", 'Plugin Premium Support', "mlw_dashboard_box_six", "quiz_wpss6");
56
  add_meta_box("wpss_mrts", 'Support', "mlw_dashboard_box_seven", "quiz_wpss7");
57
  add_meta_box("wpss_mrts", 'Contribution', "mlw_dashboard_box_eight", "quiz_wpss8");
58
  add_meta_box("wpss_mrts", 'News From My Local Webstop', "mlw_dashboard_box_nine", "quiz_wpss9");
@@ -68,7 +68,7 @@ function mlw_generate_quiz_dashboard(){
68
  wp_enqueue_script( 'jquery-effects-blind' );
69
  wp_enqueue_script( 'jquery-effects-explode' );
70
  ?>
71
- <script type="text/javascript" src="<?php echo plugin_dir_url( $file ); ?>quiz-master-next/includes/jquery_sparkline.js"></script>
72
  <script type="text/javascript">
73
  var $j = jQuery.noConflict();
74
  // increase the default animation speed to exaggerate the effect
@@ -137,46 +137,44 @@ function mlw_generate_quiz_dashboard(){
137
  <h3>Version <?php echo $mlw_quiz_version; ?></h3>
138
  <p><?php _e("Thank you for trying out this plugin. I hope you find it beneficial to your website. If it is, please consider donating or please consider rating this plugin ", "mlw_qmn_text_domain"); ?><a href="http://wordpress.org/support/view/plugin-reviews/quiz-master-next"><?php _e("here", "mlw_qmn_text_domain"); ?></a>.</p>
139
 
140
- <div style="float:left; width:60%;" class="inner-sidebar1">
141
  <?php do_meta_boxes('quiz_wpss','advanced',''); ?>
142
  </div>
143
 
144
- <div style="float:right; width:36%;" class="inner-sidebar1">
145
- <?php do_meta_boxes('quiz_wpss3','advanced',''); ?>
146
- </div>
147
-
148
- <!--<div style="clear:both"></div>-->
149
-
150
- <div style="float:left; width:60%;" class="inner-sidebar1">
151
  <?php do_meta_boxes('quiz_wpss4','advanced',''); ?>
152
  </div>
153
 
154
- <div style="float:right; width:36%; " class="inner-sidebar1">
155
  <?php do_meta_boxes('quiz_wpss6','advanced',''); ?>
156
  </div>
157
 
158
- <!--<div style="clear:both"></div>-->
159
 
160
- <div style="float:left; width:60%;" class="inner-sidebar1">
161
  <?php do_meta_boxes('quiz_wpss5','advanced',''); ?>
162
  </div>
163
 
164
- <div style="float:right; width:36%; " class="inner-sidebar1">
165
- <?php do_meta_boxes('quiz_wpss7','advanced',''); ?>
166
  </div>
167
 
168
- <!--<div style="clear:both"></div>-->
169
-
170
- <div style="float:left; width:60%;" class="inner-sidebar1">
171
  <?php do_meta_boxes('quiz_wpss9','advanced',''); ?>
172
  </div>
 
 
 
 
173
 
174
- <div style="float:right; width:36%; " class="inner-sidebar1">
175
  <?php do_meta_boxes('quiz_wpss8','advanced',''); ?>
176
  </div>
177
 
178
- <!--<div style="clear:both"></div>-->
179
-
180
  <div id="dialog" title="Help" style="display:none;">
181
  <h3><b>Help</b></h3>
182
  <p>This page is the main admin dashboard for the Quiz Master Next. It contains many useful widgets for the admin.</p>
@@ -418,17 +416,27 @@ function mlw_dashboard_box_six()
418
  {
419
  ?>
420
  <div>
421
- <table width='100%'>
422
- <tr>
423
- <td align='left'>Plugin Premium Support includes priority response, priority feature requests, access to premium support-only forums forums, and access to WordPress training videos through wp101.</td>
424
- </tr>
425
- <tr>
426
- <td align='left'>Up to 1 hour of consultation and training included during 1st month.</td>
427
- </tr>
428
- <tr>
429
- <td align='left'>Visit our <a href="http://mylocalwebstop.com/services/" target="_blank" style="color:blue;">services</a> page for details.</td>
430
- </tr>
431
- </table>
 
 
 
 
 
 
 
 
 
 
432
  </div>
433
  <?php
434
  }
52
  add_meta_box("wpss_mrts", 'Quiz Total Stats', "mlw_dashboard_box_three", "quiz_wpss3");
53
  add_meta_box("wpss_mrts", 'Quiz Weekly Stats - Times Taken', "mlw_dashboard_box_four", "quiz_wpss4");
54
  add_meta_box("wpss_mrts", 'Quiz Monthly Stats - Times Taken', "mlw_dashboard_box_five", "quiz_wpss5");
55
+ add_meta_box("wpss_mrts", 'My Local Webstop Services', "mlw_dashboard_box_six", "quiz_wpss6");
56
  add_meta_box("wpss_mrts", 'Support', "mlw_dashboard_box_seven", "quiz_wpss7");
57
  add_meta_box("wpss_mrts", 'Contribution', "mlw_dashboard_box_eight", "quiz_wpss8");
58
  add_meta_box("wpss_mrts", 'News From My Local Webstop', "mlw_dashboard_box_nine", "quiz_wpss9");
68
  wp_enqueue_script( 'jquery-effects-blind' );
69
  wp_enqueue_script( 'jquery-effects-explode' );
70
  ?>
71
+ <script type="text/javascript" src="<?php echo plugin_dir_url( __FILE__ ); ?>jquery_sparkline.js"></script>
72
  <script type="text/javascript">
73
  var $j = jQuery.noConflict();
74
  // increase the default animation speed to exaggerate the effect
137
  <h3>Version <?php echo $mlw_quiz_version; ?></h3>
138
  <p><?php _e("Thank you for trying out this plugin. I hope you find it beneficial to your website. If it is, please consider donating or please consider rating this plugin ", "mlw_qmn_text_domain"); ?><a href="http://wordpress.org/support/view/plugin-reviews/quiz-master-next"><?php _e("here", "mlw_qmn_text_domain"); ?></a>.</p>
139
 
140
+ <div style="float:left; width:38%;" class="inner-sidebar1">
141
  <?php do_meta_boxes('quiz_wpss','advanced',''); ?>
142
  </div>
143
 
144
+ <div style="float:left; width:38%;" class="inner-sidebar1">
 
 
 
 
 
 
145
  <?php do_meta_boxes('quiz_wpss4','advanced',''); ?>
146
  </div>
147
 
148
+ <div style="float:right; width:24%; " class="inner-sidebar1">
149
  <?php do_meta_boxes('quiz_wpss6','advanced',''); ?>
150
  </div>
151
 
152
+ <!--<div style="clear:both">-->
153
 
154
+ <div style="float:left; width:38%;" class="inner-sidebar1">
155
  <?php do_meta_boxes('quiz_wpss5','advanced',''); ?>
156
  </div>
157
 
158
+ <div style="float:left; width:38%;" class="inner-sidebar1">
159
+ <?php do_meta_boxes('quiz_wpss3','advanced',''); ?>
160
  </div>
161
 
162
+ <div style="clear:both">
163
+
164
+ <div style="float:left; width:38%;" class="inner-sidebar1">
165
  <?php do_meta_boxes('quiz_wpss9','advanced',''); ?>
166
  </div>
167
+
168
+ <div style="float:left; width:38%; " class="inner-sidebar1">
169
+ <?php do_meta_boxes('quiz_wpss7','advanced',''); ?>
170
+ </div>
171
 
172
+ <div style="float:right; width:24%; " class="inner-sidebar1">
173
  <?php do_meta_boxes('quiz_wpss8','advanced',''); ?>
174
  </div>
175
 
176
+ <div style="clear:both">
177
+
178
  <div id="dialog" title="Help" style="display:none;">
179
  <h3><b>Help</b></h3>
180
  <p>This page is the main admin dashboard for the Quiz Master Next. It contains many useful widgets for the admin.</p>
416
  {
417
  ?>
418
  <div>
419
+ <h2>Plugin Premium Support</h2>
420
+ <p>Plugin Premium Support includes priority response, priority feature requests, access to premium support-only forums, and access to WordPress training videos through wp101.</p>
421
+ <p>Up to 1 hour of consultation and training included during 1st month.</p>
422
+ <hr />
423
+ <h2>Plugin Installation Services</h2>
424
+ <p>We will install any or all of our WordPress plugins on your existing WordPress site. This includes 1 year access to premium support-only forums.</p>
425
+ <p>Up to 2 hours of consultation and training included.</p>
426
+ <br />
427
+ <p>Visit our <a href="http://mylocalwebstop.com/services/" target="_blank" style="color:blue;">services</a> page for details.</p>
428
+ <!--
429
+ <table width='100%'>
430
+ <tr>
431
+ <td align='left'>Plugin Premium Support includes priority response, priority feature requests, access to premium support-only forums forums, and access to WordPress training videos through wp101.</td>
432
+ </tr>
433
+ <tr>
434
+ <td align='left'>Up to 1 hour of consultation and training included during 1st month.</td>
435
+ </tr>
436
+ <tr>
437
+ <td align='left'>Visit our <a href="http://mylocalwebstop.com/services/" target="_blank" style="color:blue;">services</a> page for details.</td>
438
+ </tr>
439
+ </table>-->
440
  </div>
441
  <?php
442
  }
includes/mlw_quiz.php CHANGED
@@ -65,91 +65,6 @@ function mlw_quiz_shortcode($atts)
65
  $mlw_spam_email = $_POST["email"];
66
  }
67
 
68
- function mlwDisplayContactInfo($mlw_quiz_options)
69
- {
70
- $mlw_contact_display = "";
71
- //Check to see if user is logged in, then ask for contact if not
72
- if ( is_user_logged_in() )
73
- {
74
- //If this quiz does not let user edit contact information we hide this section
75
- if ($mlw_quiz_options->loggedin_user_contact == 1)
76
- {
77
- $mlw_contact_display .= "<div style='display:none;'>";
78
- }
79
-
80
- //Retrieve current user information and save into text fields for contact information
81
- $current_user = wp_get_current_user();
82
- if ($mlw_quiz_options->user_name != 2)
83
- {
84
- $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->name_field_text."</span><br />";
85
- $mlw_contact_display .= "<input type='text' name='mlwUserName' value='".$current_user->display_name."' />";
86
- $mlw_contact_display .= "<br /><br />";
87
-
88
- }
89
- if ($mlw_quiz_options->user_comp != 2)
90
- {
91
- $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->business_field_text."</span><br />";
92
- $mlw_contact_display .= "<input type='text' name='mlwUserComp' value='' />";
93
- $mlw_contact_display .= "<br /><br />";
94
-
95
- }
96
- if ($mlw_quiz_options->user_email != 2)
97
- {
98
- $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->email_field_text."</span><br />";
99
- $mlw_contact_display .= "<input type='text' name='mlwUserEmail' value='".$current_user->user_email."' />";
100
- $mlw_contact_display .= "<br /><br />";
101
-
102
- }
103
- if ($mlw_quiz_options->user_phone != 2)
104
- {
105
- $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->phone_field_text."</span><br />";
106
- $mlw_contact_display .= "<input type='text' name='mlwUserPhone' value='' />";
107
- $mlw_contact_display .= "<br /><br />";
108
-
109
- }
110
-
111
- //End of hidden section div
112
- if ($mlw_quiz_options->loggedin_user_contact == 1)
113
- {
114
- $mlw_contact_display .= "</div>";
115
- }
116
- }
117
- else
118
- {
119
- //See if the site wants to ask for any contact information, then ask for it
120
- if ($mlw_quiz_options->user_name != 2)
121
- {
122
- $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->name_field_text."</span><br />";
123
- $mlw_contact_display .= "<input type='text' name='mlwUserName' value='' />";
124
- $mlw_contact_display .= "<br /><br />";
125
-
126
- }
127
- if ($mlw_quiz_options->user_comp != 2)
128
- {
129
- $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->business_field_text."</span><br />";
130
- $mlw_contact_display .= "<input type='text' name='mlwUserComp' value='' />";
131
- $mlw_contact_display .= "<br /><br />";
132
-
133
- }
134
- if ($mlw_quiz_options->user_email != 2)
135
- {
136
- $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->email_field_text."</span><br />";
137
- $mlw_contact_display .= "<input type='text' name='mlwUserEmail' value='' />";
138
- $mlw_contact_display .= "<br /><br />";
139
-
140
- }
141
- if ($mlw_quiz_options->user_phone != 2)
142
- {
143
- $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->phone_field_text."</span><br />";
144
- $mlw_contact_display .= "<input type='text' name='mlwUserPhone' value='' />";
145
- $mlw_contact_display .= "<br /><br />";
146
-
147
- }
148
- }
149
- return $mlw_contact_display;
150
- }
151
-
152
-
153
  wp_enqueue_script( 'jquery' );
154
  wp_enqueue_script( 'jquery-ui-core' );
155
  wp_enqueue_script( 'jquery-ui-dialog' );
@@ -619,4 +534,85 @@ function mlw_quiz_shortcode($atts)
619
  }
620
  return $mlw_display;
621
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
622
  ?>
65
  $mlw_spam_email = $_POST["email"];
66
  }
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  wp_enqueue_script( 'jquery' );
69
  wp_enqueue_script( 'jquery-ui-core' );
70
  wp_enqueue_script( 'jquery-ui-dialog' );
534
  }
535
  return $mlw_display;
536
  }
537
+
538
+
539
+ /*
540
+ This function displays fields to ask for contact information
541
+ */
542
+ function mlwDisplayContactInfo($mlw_quiz_options)
543
+ {
544
+ $mlw_contact_display = "";
545
+ //Check to see if user is logged in, then ask for contact if not
546
+ if ( is_user_logged_in() )
547
+ {
548
+ //If this quiz does not let user edit contact information we hide this section
549
+ if ($mlw_quiz_options->loggedin_user_contact == 1)
550
+ {
551
+ $mlw_contact_display .= "<div style='display:none;'>";
552
+ }
553
+
554
+ //Retrieve current user information and save into text fields for contact information
555
+ $current_user = wp_get_current_user();
556
+ if ($mlw_quiz_options->user_name != 2)
557
+ {
558
+ $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->name_field_text."</span><br />";
559
+ $mlw_contact_display .= "<input type='text' name='mlwUserName' value='".$current_user->display_name."' />";
560
+ $mlw_contact_display .= "<br /><br />";
561
+
562
+ }
563
+ if ($mlw_quiz_options->user_comp != 2)
564
+ {
565
+ $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->business_field_text."</span><br />";
566
+ $mlw_contact_display .= "<input type='text' name='mlwUserComp' value='' />";
567
+ $mlw_contact_display .= "<br /><br />";
568
+ }
569
+ if ($mlw_quiz_options->user_email != 2)
570
+ {
571
+ $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->email_field_text."</span><br />";
572
+ $mlw_contact_display .= "<input type='text' name='mlwUserEmail' value='".$current_user->user_email."' />";
573
+ $mlw_contact_display .= "<br /><br />";
574
+ }
575
+ if ($mlw_quiz_options->user_phone != 2)
576
+ {
577
+ $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->phone_field_text."</span><br />";
578
+ $mlw_contact_display .= "<input type='text' name='mlwUserPhone' value='' />";
579
+ $mlw_contact_display .= "<br /><br />";
580
+ }
581
+
582
+ //End of hidden section div
583
+ if ($mlw_quiz_options->loggedin_user_contact == 1)
584
+ {
585
+ $mlw_contact_display .= "</div>";
586
+ }
587
+ }
588
+ else
589
+ {
590
+ //See if the site wants to ask for any contact information, then ask for it
591
+ if ($mlw_quiz_options->user_name != 2)
592
+ {
593
+ $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->name_field_text."</span><br />";
594
+ $mlw_contact_display .= "<input type='text' name='mlwUserName' value='' />";
595
+ $mlw_contact_display .= "<br /><br />";
596
+ }
597
+ if ($mlw_quiz_options->user_comp != 2)
598
+ {
599
+ $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->business_field_text."</span><br />";
600
+ $mlw_contact_display .= "<input type='text' name='mlwUserComp' value='' />";
601
+ $mlw_contact_display .= "<br /><br />";
602
+ }
603
+ if ($mlw_quiz_options->user_email != 2)
604
+ {
605
+ $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->email_field_text."</span><br />";
606
+ $mlw_contact_display .= "<input type='text' name='mlwUserEmail' value='' />";
607
+ $mlw_contact_display .= "<br /><br />";
608
+ }
609
+ if ($mlw_quiz_options->user_phone != 2)
610
+ {
611
+ $mlw_contact_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->phone_field_text."</span><br />";
612
+ $mlw_contact_display .= "<input type='text' name='mlwUserPhone' value='' />";
613
+ $mlw_contact_display .= "<br /><br />";
614
+ }
615
+ }
616
+ return $mlw_contact_display;
617
+ }
618
  ?>
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.6.2";
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.6.3";
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.6.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: 1.6.3
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
readme.txt CHANGED
@@ -1,9 +1,9 @@
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.6.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.
@@ -88,6 +88,10 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = 1.6.2 (March 4, 2014) =
92
  * Minor Bug Fixes
93
  * Minor Design Changes
@@ -315,6 +319,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
315
 
316
  == Upgrade Notice ==
317
 
 
 
 
318
  = 1.6.2 =
319
  This update fixes minor bugs and adds minor design changes.
320
 
1
  === Quiz Master Next ===
2
  Contributors: fpcorso
3
+ Tags: quiz, test, score, survey, contact, form, email, answer, question
4
  Requires at least: 3.3
5
  Tested up to: 3.8.1
6
+ Stable tag: 1.6.3
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.
88
 
89
  == Changelog ==
90
 
91
+ = 1.6.3 (March 5, 2014) =
92
+ * Fixed Duplicated Shortcode Bug
93
+ * Quiz Dashboard Design Changes
94
+
95
  = 1.6.2 (March 4, 2014) =
96
  * Minor Bug Fixes
97
  * Minor Design Changes
319
 
320
  == Upgrade Notice ==
321
 
322
+ = 1.6.3 =
323
+ This update fixes minor bugs and adds minor design changes.
324
+
325
  = 1.6.2 =
326
  This update fixes minor bugs and adds minor design changes.
327