Version Description
Upgrade for several bug fixes and new ability to have logged in users not have to enter contact information
Download this release
Release Info
Developer | fpcorso |
Plugin | Quiz And Survey Master (Formerly Quiz Master Next) |
Version | 0.9.1 |
Comparing to | |
See all releases |
Code changes from version 0.9 to 0.9.1
- includes/mlw_leaderboard.php +2 -2
- includes/mlw_main_page.php +5 -10
- includes/mlw_quiz.php +40 -31
- includes/mlw_update.php +1 -1
- mlw_quizmaster2.php +1 -1
- readme.txt +9 -1
includes/mlw_leaderboard.php
CHANGED
@@ -27,11 +27,11 @@ function mlw_quiz_leaderboard_shortcode($atts)
|
|
27 |
$leader_count++;
|
28 |
if ($mlw_quiz_options->system == 0)
|
29 |
{
|
30 |
-
$mlw_quiz_leaderboard_display .= "
|
31 |
}
|
32 |
if ($mlw_quiz_options->system == 1)
|
33 |
{
|
34 |
-
$mlw_quiz_leaderboard_display .= "
|
35 |
}
|
36 |
$mlw_quiz_leaderboard_display .= "<br />";
|
37 |
}
|
27 |
$leader_count++;
|
28 |
if ($mlw_quiz_options->system == 0)
|
29 |
{
|
30 |
+
$mlw_quiz_leaderboard_display .= "".$leader_count.". ".$mlw_eaches->name." - ".$mlw_eaches->correct_score."%";
|
31 |
}
|
32 |
if ($mlw_quiz_options->system == 1)
|
33 |
{
|
34 |
+
$mlw_quiz_leaderboard_display .= "".$leader_count.". ".$mlw_eaches->name." - ".$mlw_eaches->point_score." Points";
|
35 |
}
|
36 |
$mlw_quiz_leaderboard_display .= "<br />";
|
37 |
}
|
includes/mlw_main_page.php
CHANGED
@@ -159,22 +159,16 @@ function quiz_wpss_mrt_meta_box2()
|
|
159 |
<div>
|
160 |
<table width='100%'>
|
161 |
<tr>
|
162 |
-
<td align='left'>0.9 (January
|
163 |
</tr>
|
164 |
<tr>
|
165 |
-
<td align='left'>*
|
166 |
</tr>
|
167 |
<tr>
|
168 |
-
<td align='left'>*
|
169 |
</tr>
|
170 |
<tr>
|
171 |
-
<td align='left'>* Added
|
172 |
-
</tr>
|
173 |
-
<tr>
|
174 |
-
<td align='left'>* Minor Design Changes To Quiz Options Page</td>
|
175 |
-
</tr>
|
176 |
-
<tr>
|
177 |
-
<td align='left'>* Design Changes To Quiz</td>
|
178 |
</tr>
|
179 |
</table>
|
180 |
</div>
|
@@ -276,6 +270,7 @@ function quiz_wpss_mrt_meta_box4()
|
|
276 |
<h3>Supporters</h3>
|
277 |
<ul>
|
278 |
<li>Tracy B</li>
|
|
|
279 |
</ul>
|
280 |
</div>
|
281 |
<?php
|
159 |
<div>
|
160 |
<table width='100%'>
|
161 |
<tr>
|
162 |
+
<td align='left'>0.9.1 (January 8, 2014)</td>
|
163 |
</tr>
|
164 |
<tr>
|
165 |
+
<td align='left'>* Fixed Leaderboard Design Bug</td>
|
166 |
</tr>
|
167 |
<tr>
|
168 |
+
<td align='left'>* Fixed Contact Information Design Bug</td>
|
169 |
</tr>
|
170 |
<tr>
|
171 |
+
<td align='left'>* Added Ability To Not Need Contact Info For Logged In Users</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
</tr>
|
173 |
</table>
|
174 |
</div>
|
270 |
<h3>Supporters</h3>
|
271 |
<ul>
|
272 |
<li>Tracy B</li>
|
273 |
+
<li>Bobby L</li>
|
274 |
</ul>
|
275 |
</div>
|
276 |
<?php
|
includes/mlw_quiz.php
CHANGED
@@ -136,41 +136,50 @@ function mlw_quiz_shortcode($atts)
|
|
136 |
//Begin the quiz
|
137 |
$mlw_message_before = $mlw_quiz_options->message_before;
|
138 |
$mlw_message_before = str_replace( "%QUIZ_NAME%" , $mlw_quiz_options->quiz_name, $mlw_message_before);
|
139 |
-
$mlw_display .= "<
|
140 |
-
$mlw_display .= "<br />";
|
141 |
$mlw_display .= "<span name='mlw_error_message' id='mlw_error_message' style='color: red;'></span><br />";
|
142 |
$mlw_display .= "<form name='quizForm' action='" . $PHP_SELF . "' method='post' onsubmit='return mlw_validateForm()' >";
|
143 |
|
144 |
-
//
|
145 |
-
if (
|
146 |
{
|
147 |
-
|
148 |
-
$
|
149 |
-
$mlw_display .= "<
|
150 |
-
|
151 |
-
}
|
152 |
-
if ($mlw_quiz_options->user_comp != 2)
|
153 |
-
{
|
154 |
-
$mlw_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->business_field_text."</span><br />";
|
155 |
-
$mlw_display .= "<input type='text' name='mlwUserComp' value='' />";
|
156 |
-
$mlw_display .= "<br /><br />";
|
157 |
-
|
158 |
}
|
159 |
-
|
160 |
-
{
|
161 |
-
$mlw_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->email_field_text."</span><br />";
|
162 |
-
$mlw_display .= "<input type='text' name='mlwUserEmail' value='' />";
|
163 |
-
$mlw_display .= "<br /><br />";
|
164 |
-
|
165 |
-
}
|
166 |
-
if ($mlw_quiz_options->user_phone != 2)
|
167 |
{
|
168 |
-
|
169 |
-
$
|
170 |
-
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
}
|
173 |
-
$mlw_display .= "<br />";
|
174 |
|
175 |
//Display the questions
|
176 |
foreach($mlw_questions as $mlw_question) {
|
@@ -368,15 +377,15 @@ function mlw_quiz_shortcode($atts)
|
|
368 |
if ($mlw_question->correct_answer == 6) {$mlw_correct_text = $mlw_question->answer_six;}
|
369 |
|
370 |
$mlw_question_answers .= $mlw_question->question_name . "\n";
|
371 |
-
$mlw_question_answers .= "
|
372 |
$mlw_question_answers .= "Correct Answer: " . $mlw_correct_text . "\n";
|
373 |
if ($mlw_question->comments == 0)
|
374 |
{
|
375 |
-
$mlw_question_answers .= "
|
376 |
}
|
377 |
if ($mlw_question->comments == 2)
|
378 |
{
|
379 |
-
$mlw_question_answers .= "
|
380 |
}
|
381 |
$mlw_question_answers .= "\n";
|
382 |
}
|
136 |
//Begin the quiz
|
137 |
$mlw_message_before = $mlw_quiz_options->message_before;
|
138 |
$mlw_message_before = str_replace( "%QUIZ_NAME%" , $mlw_quiz_options->quiz_name, $mlw_message_before);
|
139 |
+
$mlw_display .= "<span>".$mlw_message_before."</span><br />";
|
|
|
140 |
$mlw_display .= "<span name='mlw_error_message' id='mlw_error_message' style='color: red;'></span><br />";
|
141 |
$mlw_display .= "<form name='quizForm' action='" . $PHP_SELF . "' method='post' onsubmit='return mlw_validateForm()' >";
|
142 |
|
143 |
+
//Check to see if user is logged in, then ask for contact if not
|
144 |
+
if ( is_user_logged_in() )
|
145 |
{
|
146 |
+
//Retrieve current user information and save into hidden fields for contact information
|
147 |
+
$current_user = wp_get_current_user();
|
148 |
+
$mlw_display .= "<input type='hidden' name='mlwUserName' value='".$current_user->display_name."' />";
|
149 |
+
$mlw_display .= "<input type='hidden' name='mlwUserEmail' value='".$current_user->user_email."' />";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
}
|
151 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
{
|
153 |
+
//See if the site wants to ask for any contact information, then ask for it
|
154 |
+
if ($mlw_quiz_options->user_name != 2)
|
155 |
+
{
|
156 |
+
$mlw_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->name_field_text."</span><br />";
|
157 |
+
$mlw_display .= "<input type='text' name='mlwUserName' value='' />";
|
158 |
+
$mlw_display .= "<br /><br />";
|
159 |
+
|
160 |
+
}
|
161 |
+
if ($mlw_quiz_options->user_comp != 2)
|
162 |
+
{
|
163 |
+
$mlw_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->business_field_text."</span><br />";
|
164 |
+
$mlw_display .= "<input type='text' name='mlwUserComp' value='' />";
|
165 |
+
$mlw_display .= "<br /><br />";
|
166 |
+
|
167 |
+
}
|
168 |
+
if ($mlw_quiz_options->user_email != 2)
|
169 |
+
{
|
170 |
+
$mlw_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->email_field_text."</span><br />";
|
171 |
+
$mlw_display .= "<input type='text' name='mlwUserEmail' value='' />";
|
172 |
+
$mlw_display .= "<br /><br />";
|
173 |
+
|
174 |
+
}
|
175 |
+
if ($mlw_quiz_options->user_phone != 2)
|
176 |
+
{
|
177 |
+
$mlw_display .= "<span style='font-weight:bold;';>".$mlw_quiz_options->phone_field_text."</span><br />";
|
178 |
+
$mlw_display .= "<input type='text' name='mlwUserPhone' value='' />";
|
179 |
+
$mlw_display .= "<br /><br />";
|
180 |
+
|
181 |
+
}
|
182 |
}
|
|
|
183 |
|
184 |
//Display the questions
|
185 |
foreach($mlw_questions as $mlw_question) {
|
377 |
if ($mlw_question->correct_answer == 6) {$mlw_correct_text = $mlw_question->answer_six;}
|
378 |
|
379 |
$mlw_question_answers .= $mlw_question->question_name . "\n";
|
380 |
+
$mlw_question_answers .= "Answer Provided: " . $mlw_user_text . "\n";
|
381 |
$mlw_question_answers .= "Correct Answer: " . $mlw_correct_text . "\n";
|
382 |
if ($mlw_question->comments == 0)
|
383 |
{
|
384 |
+
$mlw_question_answers .= "Comments Entered: " . $_POST["mlwComment".$mlw_question->question_id] . "\n";
|
385 |
}
|
386 |
if ($mlw_question->comments == 2)
|
387 |
{
|
388 |
+
$mlw_question_answers .= "Comments Entered: " . $_POST["mlwComment".$mlw_question->question_id] . "\n";
|
389 |
}
|
390 |
$mlw_question_answers .= "\n";
|
391 |
}
|
includes/mlw_update.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
function mlw_quiz_update()
|
4 |
{
|
5 |
-
$data = "0.9";
|
6 |
if ( ! get_option('mlw_quiz_master_version'))
|
7 |
{
|
8 |
add_option('mlw_quiz_master_version' , $data);
|
2 |
|
3 |
function mlw_quiz_update()
|
4 |
{
|
5 |
+
$data = "0.9.1";
|
6 |
if ( ! get_option('mlw_quiz_master_version'))
|
7 |
{
|
8 |
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: 0.9
|
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.9.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
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 3.8
|
6 |
-
Stable tag: 0.9
|
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.
|
@@ -51,6 +51,11 @@ Feel free to use the support option on the main page of the plugin or from the c
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
|
|
54 |
= 0.9 (January 5, 2014) =
|
55 |
* Added Ability To Edit Quiz Name
|
56 |
* Added Ability To Display Question As Drop Down
|
@@ -166,6 +171,9 @@ Feel free to use the support option on the main page of the plugin or from the c
|
|
166 |
|
167 |
== Upgrade Notice ==
|
168 |
|
|
|
|
|
|
|
169 |
= 0.9 =
|
170 |
Upgrade for several new features and bug fixes
|
171 |
|
3 |
Tags: quiz, test, score, survey
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 3.8
|
6 |
+
Stable tag: 0.9.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.
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 0.9.1 (January 8, 2014) =
|
55 |
+
* Fixed Leaderboard Design Bug
|
56 |
+
* Fixed Contact Information Design Bug
|
57 |
+
* Added Ability To Not Need Contact Info For Logged In Users
|
58 |
+
|
59 |
= 0.9 (January 5, 2014) =
|
60 |
* Added Ability To Edit Quiz Name
|
61 |
* Added Ability To Display Question As Drop Down
|
171 |
|
172 |
== Upgrade Notice ==
|
173 |
|
174 |
+
= 0.9.1 =
|
175 |
+
Upgrade for several bug fixes and new ability to have logged in users not have to enter contact information
|
176 |
+
|
177 |
= 0.9 =
|
178 |
Upgrade for several new features and bug fixes
|
179 |
|