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

Version Description

(November 10, 2013) = * Bug Fixes * Added More Stats * Started Redesigning Plugin Dashboard

Download this release

Release Info

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

Code changes from version 0.6.1 to 0.6.2

includes/mlw_dashboard.php CHANGED
@@ -54,7 +54,7 @@ function mlw_generate_quiz_dashboard(){
54
  <h2>Quiz Master Next Dashboard<a id="opener" href="">(?)</a></h2>
55
 
56
  <h3>Version <?php echo $mlw_quiz_version; ?></h3>
57
- <p>Thank you for trying out my new plugin. I hope you find it beneficial to your website.</p>
58
 
59
  <div style="float:left; width:60%;" class="inner-sidebar1">
60
  <?php do_meta_boxes('quiz_wpss','advanced',''); ?>
@@ -137,8 +137,35 @@ function mlw_dashboard_box()
137
  $sql = "SELECT quiz_name FROM " . $wpdb->prefix . "mlw_results WHERE (time_taken_real BETWEEN '".$mlw_yesterday." 00:00:00' AND '".$mlw_yesterday." 23:59:59')";
138
  $mlw_quiz_taken_yesterday = $wpdb->get_results($sql);
139
  $mlw_quiz_taken_yesterday = $wpdb->num_rows;
 
 
 
 
 
 
 
 
 
 
 
 
140
  ?>
141
  <div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  <table width='100%'>
143
  <tr>
144
  <td align='left'>Total Times All Quizzes Have Been Viewed</td>
@@ -164,14 +191,6 @@ function mlw_dashboard_box()
164
  <td align='left'>Quiz That Has Been Taken The Most</td>
165
  <td align='right'><?php echo $mlw_quiz_most_taken; ?></td>
166
  </tr>
167
- <tr>
168
- <td align='left'>Times Taken Today</td>
169
- <td align='right'><?php echo $mlw_quiz_taken_today; ?></td>
170
- </tr>
171
- <tr>
172
- <td align='left'>Times Taken Yesterday</td>
173
- <td align='right'><?php echo $mlw_quiz_taken_yesterday; ?></td>
174
- </tr>
175
  </table>
176
  </div>
177
  <?php
54
  <h2>Quiz Master Next Dashboard<a id="opener" href="">(?)</a></h2>
55
 
56
  <h3>Version <?php echo $mlw_quiz_version; ?></h3>
57
+ <p>Thank you for trying out my new plugin. I hope you find it beneficial to your website. If it is, please consider donating from the suppot page. Or, please consider rating this plugin <a href="http://wordpress.org/support/view/plugin-reviews/quiz-master-next">here</a>.</p>
58
 
59
  <div style="float:left; width:60%;" class="inner-sidebar1">
60
  <?php do_meta_boxes('quiz_wpss','advanced',''); ?>
137
  $sql = "SELECT quiz_name FROM " . $wpdb->prefix . "mlw_results WHERE (time_taken_real BETWEEN '".$mlw_yesterday." 00:00:00' AND '".$mlw_yesterday." 23:59:59')";
138
  $mlw_quiz_taken_yesterday = $wpdb->get_results($sql);
139
  $mlw_quiz_taken_yesterday = $wpdb->num_rows;
140
+
141
+ $mlw_last_week = mktime(0, 0, 0, date("m") , date("d")-7, date("Y"));
142
+ $mlw_last_week = date("Y-m-d", $mlw_last_week);
143
+ $sql = "SELECT quiz_name FROM " . $wpdb->prefix . "mlw_results WHERE (time_taken_real BETWEEN '".$mlw_last_week." 00:00:00' AND '".date("Y-m-d")." 23:59:59')";
144
+ $mlw_quiz_taken_week = $wpdb->get_results($sql);
145
+ $mlw_quiz_taken_week = $wpdb->num_rows;
146
+
147
+ $mlw_last_month = mktime(0, 0, 0, date("m") , date("d")-30, date("Y"));
148
+ $mlw_last_month = date("Y-m-d", $mlw_last_month);
149
+ $sql = "SELECT quiz_name FROM " . $wpdb->prefix . "mlw_results WHERE (time_taken_real BETWEEN '".$mlw_last_month." 00:00:00' AND '".date("Y-m-d")." 23:59:59')";
150
+ $mlw_quiz_taken_month = $wpdb->get_results($sql);
151
+ $mlw_quiz_taken_month = $wpdb->num_rows;
152
  ?>
153
  <div>
154
+ <table cellpadding="10">
155
+ <tr>
156
+ <td>Taken Today: </td>
157
+ <td style="padding: 10px; text-align: right;"><?php echo $mlw_quiz_taken_today; ?></td>
158
+ <td>Taken Yesterday: </td>
159
+ <td style="padding: 10px; text-align: right;"><?php echo $mlw_quiz_taken_yesterday; ?></td>
160
+ </tr>
161
+ <tr>
162
+ <td>Taken Last 7 Days: </td>
163
+ <td style="padding: 10px; text-align: right;"><?php echo $mlw_quiz_taken_week; ?></td>
164
+ <td>Taken Last 30 Days: </td>
165
+ <td style="padding: 10px; text-align: right;"><?php echo $mlw_quiz_taken_month; ?></td>
166
+ </tr>
167
+ </table>
168
+ <br />
169
  <table width='100%'>
170
  <tr>
171
  <td align='left'>Total Times All Quizzes Have Been Viewed</td>
191
  <td align='left'>Quiz That Has Been Taken The Most</td>
192
  <td align='right'><?php echo $mlw_quiz_most_taken; ?></td>
193
  </tr>
 
 
 
 
 
 
 
 
194
  </table>
195
  </div>
196
  <?php
includes/mlw_main_page.php CHANGED
@@ -194,10 +194,16 @@ function quiz_wpss_mrt_meta_box2()
194
  <div>
195
  <table width='100%'>
196
  <tr>
197
- <td align='left'>0.6.1 (November 2, 2013)</td>
198
  </tr>
199
  <tr>
200
- <td align='left'>* Bug Fixes</td>
 
 
 
 
 
 
201
  </tr>
202
  </table>
203
  </div>
@@ -206,11 +212,8 @@ function quiz_wpss_mrt_meta_box2()
206
 
207
  function quiz_wpss_mrt_meta_box3()
208
  {
209
- /*
210
- Copyright 2013, My Local Webstop
211
- Please do not re-use this email script without contacting me.
212
- */
213
  $quiz_master_email_message = "";
 
214
  if(isset($_POST["action"]))
215
  {
216
  $quiz_master_email_success = $_POST["action"];
194
  <div>
195
  <table width='100%'>
196
  <tr>
197
+ <td align='left'>0.6.2 (November 10, 2013)</td>
198
  </tr>
199
  <tr>
200
+ <td align='left'>* Bug Fixes</td>
201
+ </tr>
202
+ <tr>
203
+ <td align='left'>* Added More Stats</td>
204
+ </tr>
205
+ <tr>
206
+ <td align='left'>* Started Redesigning Plugin Dashboard</td>
207
  </tr>
208
  </table>
209
  </div>
212
 
213
  function quiz_wpss_mrt_meta_box3()
214
  {
 
 
 
 
215
  $quiz_master_email_message = "";
216
+ $mlw_quiz_version = get_option('mlw_quiz_master_version');
217
  if(isset($_POST["action"]))
218
  {
219
  $quiz_master_email_success = $_POST["action"];
includes/mlw_quiz_admin.php CHANGED
@@ -8,7 +8,7 @@ Copyright 2013, My Local Webstop (email : fpcorso@mylocalwebstop.com)
8
 
9
  function mlw_generate_quiz_admin()
10
  {
11
- $data = "0.6.1";
12
  if ( ! get_option('mlw_quiz_master_version'))
13
  {
14
  add_option('mlw_quiz_master_version' , $data);
8
 
9
  function mlw_generate_quiz_admin()
10
  {
11
+ $data = "0.6.2";
12
  if ( ! get_option('mlw_quiz_master_version'))
13
  {
14
  add_option('mlw_quiz_master_version' , $data);
includes/mlw_quiz_install.php CHANGED
@@ -275,7 +275,7 @@ function mlw_quiz_activate()
275
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
276
  dbDelta($sql);
277
  }
278
- $data = "0.6.1";
279
  if ( ! get_option('mlw_quiz_master_version'))
280
  {
281
  add_option('mlw_quiz_master_version' , $data);
275
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
276
  dbDelta($sql);
277
  }
278
+ $data = "0.6.2";
279
  if ( ! get_option('mlw_quiz_master_version'))
280
  {
281
  add_option('mlw_quiz_master_version' , $data);
includes/mlw_quiz_options.php CHANGED
@@ -11,6 +11,7 @@ function mlw_generate_quiz_options()
11
  $quiz_id = $_GET["quiz_id"];
12
  global $wpdb;
13
  $table_name = $wpdb->prefix . "mlw_questions";
 
14
 
15
  /*
16
  Code for quiz questions tab
@@ -123,6 +124,7 @@ function mlw_generate_quiz_options()
123
  $sql = "SELECT * FROM " . $table_name . " WHERE quiz_id=".$quiz_id." AND deleted=0";
124
  $sql .= " ORDER BY question_id ASC";
125
  $mlw_question_data = $wpdb->get_results($sql);
 
126
  }
127
 
128
  /*
@@ -1037,7 +1039,7 @@ function mlw_generate_quiz_options()
1037
  <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>
1038
  <p>The Message Displayed After Quiz text is show to the user at the end of the quiz.</p>
1039
  <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>
1040
- <p>The Email sent to admin after completion text is the email that is sent to the admin after the quiz has been completed. Along with this text, the answers to the quiz will also be attached in the email.</p>
1041
  <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>
1042
  <p>Some templates are able to have variables inside the text. When the quiz is run, these variables will change to their values.</p>
1043
  </div>
11
  $quiz_id = $_GET["quiz_id"];
12
  global $wpdb;
13
  $table_name = $wpdb->prefix . "mlw_questions";
14
+ $is_new_quiz = 0;
15
 
16
  /*
17
  Code for quiz questions tab
124
  $sql = "SELECT * FROM " . $table_name . " WHERE quiz_id=".$quiz_id." AND deleted=0";
125
  $sql .= " ORDER BY question_id ASC";
126
  $mlw_question_data = $wpdb->get_results($sql);
127
+ $is_new_quiz = $wpdb->num_rows;
128
  }
129
 
130
  /*
1039
  <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>
1040
  <p>The Message Displayed After Quiz text is show to the user at the end of the quiz.</p>
1041
  <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>
1042
+ <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>
1043
  <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>
1044
  <p>Some templates are able to have variables inside the text. When the quiz is run, these variables will change to their values.</p>
1045
  </div>
mlw_quizmaster2.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Quiz Master Next
5
  Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
6
- Version: 0.6.1
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
3
  /*
4
  Plugin Name: Quiz Master Next
5
  Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
6
+ Version: 0.6.2
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: fpcorso
3
  Tags: quiz, test, score, survey
4
  Requires at least: 3.0.1
5
  Tested up to: 3.7.1
6
- Stable tag: 0.6.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -50,6 +50,11 @@ Feel free to use the support option on the main page of the plugin or from the c
50
 
51
  == Changelog ==
52
 
 
 
 
 
 
53
  = 0.6.1 (November 2, 2013) =
54
  * Bug Fixes
55
 
3
  Tags: quiz, test, score, survey
4
  Requires at least: 3.0.1
5
  Tested up to: 3.7.1
6
+ Stable tag: 0.6.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
50
 
51
  == Changelog ==
52
 
53
+ = 0.6.2 (November 10, 2013) =
54
+ * Bug Fixes
55
+ * Added More Stats
56
+ * Started Redesigning Plugin Dashboard
57
+
58
  = 0.6.1 (November 2, 2013) =
59
  * Bug Fixes
60