Version Description
(February 18, 2014) = * Added Ability To Choose Whether Logged-in Users Can Enter Contact Info * Fixed Editing Hint Field Error * Added Ability To Have Media In Answers * Added Ability To Have HTML In Questions And Answers
Download this release
Release Info
Developer | fpcorso |
Plugin | Quiz And Survey Master (Formerly Quiz Master Next) |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.3.1
- includes/mlw_dashboard.php +5 -11
- includes/mlw_quiz.php +30 -18
- includes/mlw_quiz_install.php +2 -0
- includes/mlw_quiz_options.php +13 -2
- includes/mlw_update.php +10 -1
- mlw_quizmaster2.php +1 -1
- readme.txt +7 -1
includes/mlw_dashboard.php
CHANGED
@@ -410,25 +410,19 @@ function mlw_dashboard_box_six()
|
|
410 |
<div>
|
411 |
<table width='100%'>
|
412 |
<tr>
|
413 |
-
<td align='left'>1.
|
414 |
</tr>
|
415 |
<tr>
|
416 |
-
<td align='left'>* Added
|
417 |
</tr>
|
418 |
<tr>
|
419 |
-
<td align='left'>*
|
420 |
</tr>
|
421 |
<tr>
|
422 |
-
<td align='left'>* Added
|
423 |
</tr>
|
424 |
<tr>
|
425 |
-
<td align='left'>*
|
426 |
-
</tr>
|
427 |
-
<tr>
|
428 |
-
<td align='left'>* Fixed Edit Quiz Name Bug</td>
|
429 |
-
</tr>
|
430 |
-
<tr>
|
431 |
-
<td align='left'>* Fixed New Quiz Bug</td>
|
432 |
</tr>
|
433 |
</table>
|
434 |
</div>
|
410 |
<div>
|
411 |
<table width='100%'>
|
412 |
<tr>
|
413 |
+
<td align='left'>1.3.1 (February 18, 2014)</td>
|
414 |
</tr>
|
415 |
<tr>
|
416 |
+
<td align='left'>* Added Ability To Choose Whether Logged-in Users Can Enter Contact Info</td>
|
417 |
</tr>
|
418 |
<tr>
|
419 |
+
<td align='left'>* Fixed Editing Hint Field Error</td>
|
420 |
</tr>
|
421 |
<tr>
|
422 |
+
<td align='left'>* Added Ability To Have Media In Answers</td>
|
423 |
</tr>
|
424 |
<tr>
|
425 |
+
<td align='left'>* Added Ability To Have HTML In Questions And Answers</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
</tr>
|
427 |
</table>
|
428 |
</div>
|
includes/mlw_quiz.php
CHANGED
@@ -55,6 +55,12 @@ function mlw_quiz_shortcode($atts)
|
|
55 |
//Check to see if user is logged in, then ask for contact if not
|
56 |
if ( is_user_logged_in() )
|
57 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
//Retrieve current user information and save into text fields for contact information
|
59 |
$current_user = wp_get_current_user();
|
60 |
if ($mlw_quiz_options->user_name != 2)
|
@@ -85,6 +91,12 @@ function mlw_quiz_shortcode($atts)
|
|
85 |
$mlw_contact_display .= "<br /><br />";
|
86 |
|
87 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
else
|
90 |
{
|
@@ -232,32 +244,32 @@ function mlw_quiz_shortcode($atts)
|
|
232 |
{
|
233 |
if ($mlw_question->answer_one != "")
|
234 |
{
|
235 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='1' /> "
|
236 |
$mlw_display .= "<br />";
|
237 |
}
|
238 |
if ($mlw_question->answer_two != "")
|
239 |
{
|
240 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='2' /> "
|
241 |
$mlw_display .= "<br />";
|
242 |
}
|
243 |
if ($mlw_question->answer_three != "")
|
244 |
{
|
245 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='3' /> "
|
246 |
$mlw_display .= "<br />";
|
247 |
}
|
248 |
if ($mlw_question->answer_four != "")
|
249 |
{
|
250 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='4' /> "
|
251 |
$mlw_display .= "<br />";
|
252 |
}
|
253 |
if ($mlw_question->answer_five != "")
|
254 |
{
|
255 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='5' /> "
|
256 |
$mlw_display .= "<br />";
|
257 |
}
|
258 |
if ($mlw_question->answer_six != "")
|
259 |
{
|
260 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='6' /> "
|
261 |
$mlw_display .= "<br />";
|
262 |
}
|
263 |
}
|
@@ -265,27 +277,27 @@ 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' />"
|
269 |
}
|
270 |
if ($mlw_question->answer_two != "")
|
271 |
{
|
272 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='2' />"
|
273 |
}
|
274 |
if ($mlw_question->answer_three != "")
|
275 |
{
|
276 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='3' />"
|
277 |
}
|
278 |
if ($mlw_question->answer_four != "")
|
279 |
{
|
280 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='4' />"
|
281 |
}
|
282 |
if ($mlw_question->answer_five != "")
|
283 |
{
|
284 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='5' />"
|
285 |
}
|
286 |
if ($mlw_question->answer_six != "")
|
287 |
{
|
288 |
-
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='6' />"
|
289 |
}
|
290 |
$mlw_display .= "<br />";
|
291 |
}
|
@@ -294,27 +306,27 @@ function mlw_quiz_shortcode($atts)
|
|
294 |
$mlw_display .= "<select name='question".$mlw_question->question_id."'>";
|
295 |
if ($mlw_question->answer_one != "")
|
296 |
{
|
297 |
-
$mlw_display .= "<option value='1'>"
|
298 |
}
|
299 |
if ($mlw_question->answer_two != "")
|
300 |
{
|
301 |
-
$mlw_display .= "<option value='2'>"
|
302 |
}
|
303 |
if ($mlw_question->answer_three != "")
|
304 |
{
|
305 |
-
$mlw_display .= "<option value='3'>"
|
306 |
}
|
307 |
if ($mlw_question->answer_four != "")
|
308 |
{
|
309 |
-
$mlw_display .= "<option value='4'>"
|
310 |
}
|
311 |
if ($mlw_question->answer_five != "")
|
312 |
{
|
313 |
-
$mlw_display .= "<option value='5'>"
|
314 |
}
|
315 |
if ($mlw_question->answer_six != "")
|
316 |
{
|
317 |
-
$mlw_display .= "<option value='6'>"
|
318 |
}
|
319 |
$mlw_display .= "</select>";
|
320 |
$mlw_display .= "<br />";
|
55 |
//Check to see if user is logged in, then ask for contact if not
|
56 |
if ( is_user_logged_in() )
|
57 |
{
|
58 |
+
//If this quiz does not let user edit contact information we hide this section
|
59 |
+
if ($mlw_quiz_options->loggedin_user_contact == 1)
|
60 |
+
{
|
61 |
+
$mlw_contact_display .= "<div style='display:none;'>";
|
62 |
+
}
|
63 |
+
|
64 |
//Retrieve current user information and save into text fields for contact information
|
65 |
$current_user = wp_get_current_user();
|
66 |
if ($mlw_quiz_options->user_name != 2)
|
91 |
$mlw_contact_display .= "<br /><br />";
|
92 |
|
93 |
}
|
94 |
+
|
95 |
+
//End of hidden section div
|
96 |
+
if ($mlw_quiz_options->loggedin_user_contact == 1)
|
97 |
+
{
|
98 |
+
$mlw_contact_display .= "</div>";
|
99 |
+
}
|
100 |
}
|
101 |
else
|
102 |
{
|
244 |
{
|
245 |
if ($mlw_question->answer_one != "")
|
246 |
{
|
247 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='1' /> ".htmlspecialchars_decode($mlw_question->answer_one, ENT_QUOTES);
|
248 |
$mlw_display .= "<br />";
|
249 |
}
|
250 |
if ($mlw_question->answer_two != "")
|
251 |
{
|
252 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='2' /> ".htmlspecialchars_decode($mlw_question->answer_two, ENT_QUOTES);
|
253 |
$mlw_display .= "<br />";
|
254 |
}
|
255 |
if ($mlw_question->answer_three != "")
|
256 |
{
|
257 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='3' /> ".htmlspecialchars_decode($mlw_question->answer_three, ENT_QUOTES);
|
258 |
$mlw_display .= "<br />";
|
259 |
}
|
260 |
if ($mlw_question->answer_four != "")
|
261 |
{
|
262 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='4' /> ".htmlspecialchars_decode($mlw_question->answer_four, ENT_QUOTES);
|
263 |
$mlw_display .= "<br />";
|
264 |
}
|
265 |
if ($mlw_question->answer_five != "")
|
266 |
{
|
267 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='5' /> ".htmlspecialchars_decode($mlw_question->answer_five, ENT_QUOTES);
|
268 |
$mlw_display .= "<br />";
|
269 |
}
|
270 |
if ($mlw_question->answer_six != "")
|
271 |
{
|
272 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='6' /> ".htmlspecialchars_decode($mlw_question->answer_six, ENT_QUOTES);
|
273 |
$mlw_display .= "<br />";
|
274 |
}
|
275 |
}
|
277 |
{
|
278 |
if ($mlw_question->answer_one != "")
|
279 |
{
|
280 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='1' />".htmlspecialchars_decode($mlw_question->answer_one, ENT_QUOTES);
|
281 |
}
|
282 |
if ($mlw_question->answer_two != "")
|
283 |
{
|
284 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='2' />".htmlspecialchars_decode($mlw_question->answer_two, ENT_QUOTES);
|
285 |
}
|
286 |
if ($mlw_question->answer_three != "")
|
287 |
{
|
288 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='3' />".htmlspecialchars_decode($mlw_question->answer_three, ENT_QUOTES);
|
289 |
}
|
290 |
if ($mlw_question->answer_four != "")
|
291 |
{
|
292 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='4' />".htmlspecialchars_decode($mlw_question->answer_four, ENT_QUOTES);
|
293 |
}
|
294 |
if ($mlw_question->answer_five != "")
|
295 |
{
|
296 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='5' />".htmlspecialchars_decode($mlw_question->answer_five, ENT_QUOTES);
|
297 |
}
|
298 |
if ($mlw_question->answer_six != "")
|
299 |
{
|
300 |
+
$mlw_display .= "<input type='radio' name='question".$mlw_question->question_id."' value='6' />".htmlspecialchars_decode($mlw_question->answer_six, ENT_QUOTES);
|
301 |
}
|
302 |
$mlw_display .= "<br />";
|
303 |
}
|
306 |
$mlw_display .= "<select name='question".$mlw_question->question_id."'>";
|
307 |
if ($mlw_question->answer_one != "")
|
308 |
{
|
309 |
+
$mlw_display .= "<option value='1'>".htmlspecialchars_decode($mlw_question->answer_one, ENT_QUOTES)."</option>";
|
310 |
}
|
311 |
if ($mlw_question->answer_two != "")
|
312 |
{
|
313 |
+
$mlw_display .= "<option value='2'>".htmlspecialchars_decode($mlw_question->answer_two, ENT_QUOTES)."</option>";
|
314 |
}
|
315 |
if ($mlw_question->answer_three != "")
|
316 |
{
|
317 |
+
$mlw_display .= "<option value='3'>".htmlspecialchars_decode($mlw_question->answer_three, ENT_QUOTES)."</option>";
|
318 |
}
|
319 |
if ($mlw_question->answer_four != "")
|
320 |
{
|
321 |
+
$mlw_display .= "<option value='4'>".htmlspecialchars_decode($mlw_question->answer_four, ENT_QUOTES)."</option>";
|
322 |
}
|
323 |
if ($mlw_question->answer_five != "")
|
324 |
{
|
325 |
+
$mlw_display .= "<option value='5'>".htmlspecialchars_decode($mlw_question->answer_five, ENT_QUOTES)."</option>";
|
326 |
}
|
327 |
if ($mlw_question->answer_six != "")
|
328 |
{
|
329 |
+
$mlw_display .= "<option value='6'>".htmlspecialchars_decode($mlw_question->answer_six, ENT_QUOTES)."</option>";
|
330 |
}
|
331 |
$mlw_display .= "</select>";
|
332 |
$mlw_display .= "<br />";
|
includes/mlw_quiz_install.php
CHANGED
@@ -49,6 +49,8 @@ function mlw_quiz_activate()
|
|
49 |
system INT NOT NULL,
|
50 |
|
51 |
randomness_order INT NOT NULL,
|
|
|
|
|
52 |
|
53 |
show_score INT NOT NULL,
|
54 |
|
49 |
system INT NOT NULL,
|
50 |
|
51 |
randomness_order INT NOT NULL,
|
52 |
+
|
53 |
+
loggedin_user_contact INT NOT NULL,
|
54 |
|
55 |
show_score INT NOT NULL,
|
56 |
|
includes/mlw_quiz_options.php
CHANGED
@@ -236,12 +236,13 @@ function mlw_generate_quiz_options()
|
|
236 |
$mlw_user_phone = $_POST["userPhone"];
|
237 |
$mlw_admin_email = $_POST["adminEmail"];
|
238 |
$mlw_comment_section = $_POST["commentSection"];
|
|
|
239 |
|
240 |
//Submit saved options into database
|
241 |
if ($save_options_success == "confirmation")
|
242 |
{
|
243 |
$quiz_id = $_POST["quiz_id"];
|
244 |
-
$update = "UPDATE " . $wpdb->prefix . "mlw_quizzes" . " SET system='".$mlw_system."', send_user_email='".$mlw_send_user_email."', send_admin_email='".$mlw_send_admin_email."', contact_info_location=".$mlw_contact_location.", user_name='".$mlw_user_name."', user_comp='".$mlw_user_comp."', user_email='".$mlw_user_email."', user_phone='".$mlw_user_phone."', admin_email='".$mlw_admin_email."', comment_section='".$mlw_comment_section."', randomness_order='".$mlw_randomness_order."' WHERE quiz_id=".$quiz_id;
|
245 |
$results = $wpdb->query( $update );
|
246 |
if ($results != false)
|
247 |
{
|
@@ -482,6 +483,9 @@ function mlw_generate_quiz_options()
|
|
482 |
$j(function() {
|
483 |
$j( "#randomness_order" ).buttonset();
|
484 |
});
|
|
|
|
|
|
|
485 |
$j(function() {
|
486 |
$j( "#sendUserEmail" ).buttonset();
|
487 |
});
|
@@ -705,7 +709,7 @@ function mlw_generate_quiz_options()
|
|
705 |
else $alternate = " class=\"alternate\"";
|
706 |
$question_list .= "<tr{$alternate}>";
|
707 |
$question_list .= "<td><span style='font-size:16px;'>" . $mlw_question_info->question_order . "</span></td>";
|
708 |
-
$question_list .= "<td class='post-title column-title'><span style='font-size:16px;'>" . $mlw_question_info->question_name ."</span><div><span style='color:green;font-size:12px;'><a onclick=\"editQuestion('".$mlw_question_info->question_id."','".str_replace('"', '"', str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->question_name, ENT_QUOTES)))."', '".str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_one, ENT_QUOTES))."','".$mlw_question_info->answer_one_points."','".str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_two, ENT_QUOTES))."','".$mlw_question_info->answer_two_points."','".str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_three, ENT_QUOTES))."','".$mlw_question_info->answer_three_points."','".str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_four, ENT_QUOTES))."','".$mlw_question_info->answer_four_points."','".str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_five, ENT_QUOTES))."','".$mlw_question_info->answer_five_points."','".str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_six, ENT_QUOTES))."','".$mlw_question_info->answer_six_points."','".$mlw_question_info->correct_answer."', '".$mlw_question_info->question_answer_info."', '".$mlw_question_info->comments."','"
|
709 |
$question_list .= "</tr>";
|
710 |
}
|
711 |
|
@@ -1278,6 +1282,13 @@ function mlw_generate_quiz_options()
|
|
1278 |
<input type="radio" id="radio26" name="contact_info_location" <?php if ($mlw_quiz_options->contact_info_location == 1) {echo 'checked="checked"';} ?> value='1' /><label for="radio26">End</label>
|
1279 |
</div></td>
|
1280 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1281 |
<tr valign="top">
|
1282 |
<th scope="row"><label for="userName">Should we ask for user's name?</label></th>
|
1283 |
<td><div id="userName">
|
236 |
$mlw_user_phone = $_POST["userPhone"];
|
237 |
$mlw_admin_email = $_POST["adminEmail"];
|
238 |
$mlw_comment_section = $_POST["commentSection"];
|
239 |
+
$mlw_qmn_loggedin_contact = $_POST["loggedin_user_contact"];
|
240 |
|
241 |
//Submit saved options into database
|
242 |
if ($save_options_success == "confirmation")
|
243 |
{
|
244 |
$quiz_id = $_POST["quiz_id"];
|
245 |
+
$update = "UPDATE " . $wpdb->prefix . "mlw_quizzes" . " SET system='".$mlw_system."', send_user_email='".$mlw_send_user_email."', send_admin_email='".$mlw_send_admin_email."', loggedin_user_contact='".$mlw_qmn_loggedin_contact."', contact_info_location=".$mlw_contact_location.", user_name='".$mlw_user_name."', user_comp='".$mlw_user_comp."', user_email='".$mlw_user_email."', user_phone='".$mlw_user_phone."', admin_email='".$mlw_admin_email."', comment_section='".$mlw_comment_section."', randomness_order='".$mlw_randomness_order."' WHERE quiz_id=".$quiz_id;
|
246 |
$results = $wpdb->query( $update );
|
247 |
if ($results != false)
|
248 |
{
|
483 |
$j(function() {
|
484 |
$j( "#randomness_order" ).buttonset();
|
485 |
});
|
486 |
+
$j(function() {
|
487 |
+
$j( "#loggedin_user_contact" ).buttonset();
|
488 |
+
});
|
489 |
$j(function() {
|
490 |
$j( "#sendUserEmail" ).buttonset();
|
491 |
});
|
709 |
else $alternate = " class=\"alternate\"";
|
710 |
$question_list .= "<tr{$alternate}>";
|
711 |
$question_list .= "<td><span style='font-size:16px;'>" . $mlw_question_info->question_order . "</span></td>";
|
712 |
+
$question_list .= "<td class='post-title column-title'><span style='font-size:16px;'>" . $mlw_question_info->question_name ."</span><div><span style='color:green;font-size:12px;'><a onclick=\"editQuestion('".$mlw_question_info->question_id."','".str_replace('"', '"', str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->question_name, ENT_QUOTES)))."', '".str_replace('"', '"', str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_one, ENT_QUOTES)))."','".$mlw_question_info->answer_one_points."','".str_replace('"', '"', str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_two, ENT_QUOTES)))."','".$mlw_question_info->answer_two_points."','".str_replace('"', '"', str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_three, ENT_QUOTES)))."','".$mlw_question_info->answer_three_points."','".str_replace('"', '"', str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_four, ENT_QUOTES)))."','".$mlw_question_info->answer_four_points."','".str_replace('"', '"', str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_five, ENT_QUOTES)))."','".$mlw_question_info->answer_five_points."','".str_replace('"', '"', str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->answer_six, ENT_QUOTES)))."','".$mlw_question_info->answer_six_points."','".$mlw_question_info->correct_answer."', '".$mlw_question_info->question_answer_info."', '".$mlw_question_info->comments."','".str_replace("'", "\'", htmlspecialchars_decode($mlw_question_info->hints, ENT_QUOTES))."', '".$mlw_question_info->question_order."', '".$mlw_question_info->question_type."')\" href='#'>Edit</a> | <a onclick=\"deleteQuestion('".$mlw_question_info->question_id."')\" href='#'>Delete</a></span></div></td>";
|
713 |
$question_list .= "</tr>";
|
714 |
}
|
715 |
|
1282 |
<input type="radio" id="radio26" name="contact_info_location" <?php if ($mlw_quiz_options->contact_info_location == 1) {echo 'checked="checked"';} ?> value='1' /><label for="radio26">End</label>
|
1283 |
</div></td>
|
1284 |
</tr>
|
1285 |
+
<tr valign="top">
|
1286 |
+
<th scope="row"><label for="loggedin_user_contact">If a logged-in user takes the quiz, would you like them to be able to edit contact information? If set to no, the fields will not show up for logged in users; however, the users information will be saved for the fields.</label></th>
|
1287 |
+
<td><div id="loggedin_user_contact">
|
1288 |
+
<input type="radio" id="radio27" name="loggedin_user_contact" <?php if ($mlw_quiz_options->loggedin_user_contact == 0) {echo 'checked="checked"';} ?> value='0' /><label for="radio27">Yes</label>
|
1289 |
+
<input type="radio" id="radio28" name="loggedin_user_contact" <?php if ($mlw_quiz_options->loggedin_user_contact == 1) {echo 'checked="checked"';} ?> value='1' /><label for="radio28">No</label>
|
1290 |
+
</div></td>
|
1291 |
+
</tr>
|
1292 |
<tr valign="top">
|
1293 |
<th scope="row"><label for="userName">Should we ask for user's name?</label></th>
|
1294 |
<td><div id="userName">
|
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.
|
10 |
if ( ! get_option('mlw_quiz_master_version'))
|
11 |
{
|
12 |
add_option('mlw_quiz_master_version' , $data);
|
@@ -80,6 +80,15 @@ function mlw_quiz_update()
|
|
80 |
$results = $wpdb->query( $update_sql );
|
81 |
}
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
global $wpdb;
|
84 |
$table_name = $wpdb->prefix . "mlw_questions";
|
85 |
//Update 0.5
|
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.3.1";
|
10 |
if ( ! get_option('mlw_quiz_master_version'))
|
11 |
{
|
12 |
add_option('mlw_quiz_master_version' , $data);
|
80 |
$results = $wpdb->query( $update_sql );
|
81 |
}
|
82 |
|
83 |
+
//Update 1.3.1
|
84 |
+
if($wpdb->get_var("SHOW COLUMNS FROM ".$table_name." LIKE 'loggedin_user_contact'") != "loggedin_user_contact")
|
85 |
+
{
|
86 |
+
$sql = "ALTER TABLE ".$table_name." ADD loggedin_user_contact INT NOT NULL AFTER randomness_order";
|
87 |
+
$results = $wpdb->query( $sql );
|
88 |
+
$update_sql = "UPDATE ".$table_name." SET loggedin_user_contact=0";
|
89 |
+
$results = $wpdb->query( $update_sql );
|
90 |
+
}
|
91 |
+
|
92 |
global $wpdb;
|
93 |
$table_name = $wpdb->prefix . "mlw_questions";
|
94 |
//Update 0.5
|
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.
|
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.3.1
|
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, contact
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.8.1
|
6 |
-
Stable tag: 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.
|
@@ -65,6 +65,12 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
= 1.2.1 (February 11, 2014) =
|
69 |
* Fixed Quiz Results Details Bug
|
70 |
* Continued Working On New Error Code System
|
3 |
Tags: quiz, test, score, survey, contact
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.8.1
|
6 |
+
Stable tag: 1.3.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.
|
65 |
|
66 |
== Changelog ==
|
67 |
|
68 |
+
= 1.3.1 (February 18, 2014) =
|
69 |
+
* Added Ability To Choose Whether Logged-in Users Can Enter Contact Info
|
70 |
+
* Fixed Editing Hint Field Error
|
71 |
+
* Added Ability To Have Media In Answers
|
72 |
+
* Added Ability To Have HTML In Questions And Answers
|
73 |
+
|
74 |
= 1.2.1 (February 11, 2014) =
|
75 |
* Fixed Quiz Results Details Bug
|
76 |
* Continued Working On New Error Code System
|