Version Description
This update helps plugin work better with other plugins. The hints for the quiz are now hidden by default.
Download this release
Release Info
Developer | fpcorso |
Plugin | Quiz And Survey Master (Formerly Quiz Master Next) |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.4.1
- includes/mlw_dashboard.php +16 -11
- includes/mlw_help.php +11 -5
- includes/mlw_quiz.php +22 -1
- includes/mlw_quiz_admin.php +19 -10
- includes/mlw_quiz_options.php +15 -2
- includes/mlw_results.php +13 -5
- includes/mlw_results_details.php +13 -5
- includes/mlw_tools.php +13 -2
- includes/mlw_update.php +1 -1
- mlw_quizmaster2.php +1 -1
- readme.txt +9 -1
includes/mlw_dashboard.php
CHANGED
@@ -56,8 +56,16 @@ function mlw_generate_quiz_dashboard(){
|
|
56 |
<!-- css -->
|
57 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
58 |
<!-- jquery scripts -->
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<script type="text/javascript" src="<?php echo plugin_dir_url( $file ); ?>quiz-master-next/includes/jquery_sparkline.js"></script>
|
62 |
<script type="text/javascript">
|
63 |
var $j = jQuery.noConflict();
|
@@ -167,7 +175,7 @@ function mlw_generate_quiz_dashboard(){
|
|
167 |
|
168 |
<!--<div style="clear:both"></div>-->
|
169 |
|
170 |
-
<div id="dialog" title="Help">
|
171 |
<h3><b>Help</b></h3>
|
172 |
<p>This page is the main admin dashboard for the Quiz Master Next. It contains many useful widgets for the admin.</p>
|
173 |
<p>Quiz Daily Stats -> This widget shows the times all quizzes have been taken each day over the last week.</p>
|
@@ -410,19 +418,16 @@ 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 Ability To Choose Whether Logged-in Users Can Enter Contact Info</td>
|
417 |
</tr>
|
418 |
<tr>
|
419 |
-
<td align='left'>*
|
420 |
</tr>
|
421 |
<tr>
|
422 |
-
<td align='left'>*
|
423 |
</tr>
|
424 |
<tr>
|
425 |
-
<td align='left'>*
|
426 |
</tr>
|
427 |
</table>
|
428 |
</div>
|
@@ -489,7 +494,7 @@ function mlw_dashboard_box_seven()
|
|
489 |
<td align='left'><TEXTAREA NAME="message" COLS=40 ROWS=6></TEXTAREA></td>
|
490 |
</tr>
|
491 |
<tr>
|
492 |
-
<td align='left'><input type='submit' value='Send Email' /></td>
|
493 |
</tr>
|
494 |
<tr>
|
495 |
<td align='left'></td>
|
56 |
<!-- css -->
|
57 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
58 |
<!-- jquery scripts -->
|
59 |
+
<?php
|
60 |
+
wp_enqueue_script( 'jquery' );
|
61 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
62 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
63 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
64 |
+
wp_enqueue_script( 'jquery-effects-blind' );
|
65 |
+
wp_enqueue_script( 'jquery-effects-explode' );
|
66 |
+
?>
|
67 |
+
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
|
68 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>-->
|
69 |
<script type="text/javascript" src="<?php echo plugin_dir_url( $file ); ?>quiz-master-next/includes/jquery_sparkline.js"></script>
|
70 |
<script type="text/javascript">
|
71 |
var $j = jQuery.noConflict();
|
175 |
|
176 |
<!--<div style="clear:both"></div>-->
|
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>
|
181 |
<p>Quiz Daily Stats -> This widget shows the times all quizzes have been taken each day over the last week.</p>
|
418 |
<div>
|
419 |
<table width='100%'>
|
420 |
<tr>
|
421 |
+
<td align='left'>1.4.1 (February 20, 2014)</td>
|
|
|
|
|
|
|
422 |
</tr>
|
423 |
<tr>
|
424 |
+
<td align='left'>* Enhanced Plugins Compatibility With Other Plugins</td>
|
425 |
</tr>
|
426 |
<tr>
|
427 |
+
<td align='left'>* Hints Are Now Hidden By Default</td>
|
428 |
</tr>
|
429 |
<tr>
|
430 |
+
<td align='left'>* Minor Bug Fixes</td>
|
431 |
</tr>
|
432 |
</table>
|
433 |
</div>
|
494 |
<td align='left'><TEXTAREA NAME="message" COLS=40 ROWS=6></TEXTAREA></td>
|
495 |
</tr>
|
496 |
<tr>
|
497 |
+
<td align='left'><input type='submit' class="button-primary" value='Send Email' /></td>
|
498 |
</tr>
|
499 |
<tr>
|
500 |
<td align='left'></td>
|
includes/mlw_help.php
CHANGED
@@ -12,8 +12,17 @@ function mlw_generate_help_page()
|
|
12 |
<!-- css -->
|
13 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
14 |
<!-- jquery scripts -->
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<script type="text/javascript">
|
18 |
var $j = jQuery.noConflict();
|
19 |
// increase the default animation speed to exaggerate the effect
|
@@ -35,9 +44,6 @@ function mlw_generate_help_page()
|
|
35 |
return false;
|
36 |
} );
|
37 |
});
|
38 |
-
$j(function() {
|
39 |
-
$j( document ).tooltip();
|
40 |
-
});
|
41 |
$j(function() {
|
42 |
$j("button").button();
|
43 |
});
|
12 |
<!-- css -->
|
13 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
14 |
<!-- jquery scripts -->
|
15 |
+
<?php
|
16 |
+
wp_enqueue_script( 'jquery' );
|
17 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
18 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
19 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
20 |
+
wp_enqueue_script( 'jquery-ui-accordion' );
|
21 |
+
wp_enqueue_script( 'jquery-effects-blind' );
|
22 |
+
wp_enqueue_script( 'jquery-effects-explode' );
|
23 |
+
?>
|
24 |
+
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
|
25 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>-->
|
26 |
<script type="text/javascript">
|
27 |
var $j = jQuery.noConflict();
|
28 |
// increase the default animation speed to exaggerate the effect
|
44 |
return false;
|
45 |
} );
|
46 |
});
|
|
|
|
|
|
|
47 |
$j(function() {
|
48 |
$j("button").button();
|
49 |
});
|
includes/mlw_quiz.php
CHANGED
@@ -132,6 +132,27 @@ function mlw_quiz_shortcode($atts)
|
|
132 |
}
|
133 |
return $mlw_contact_display;
|
134 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
|
136 |
/*
|
137 |
The following code is for displaying the quiz and completion screen
|
@@ -343,7 +364,7 @@ function mlw_quiz_shortcode($atts)
|
|
343 |
}
|
344 |
if ($mlw_question->hints != "")
|
345 |
{
|
346 |
-
$mlw_display .= "<span
|
347 |
$mlw_display .= "<br />";
|
348 |
}
|
349 |
$mlw_display .= "<br />";
|
132 |
}
|
133 |
return $mlw_contact_display;
|
134 |
}
|
135 |
+
|
136 |
+
|
137 |
+
wp_enqueue_script( 'jquery' );
|
138 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
139 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
140 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
141 |
+
wp_enqueue_script( 'jquery-ui-accordion' );
|
142 |
+
wp_enqueue_script( 'jquery-ui-tooltip' );
|
143 |
+
wp_enqueue_script( 'jquery-ui-tabs' );
|
144 |
+
?>
|
145 |
+
<!-- css -->
|
146 |
+
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
147 |
+
<script type="text/javascript">
|
148 |
+
var $j = jQuery.noConflict();
|
149 |
+
// increase the default animation speed to exaggerate the effect
|
150 |
+
$j.fx.speeds._default = 1000;
|
151 |
+
$j(function() {
|
152 |
+
$j( document ).tooltip();
|
153 |
+
});
|
154 |
+
</script>
|
155 |
+
<?php
|
156 |
|
157 |
/*
|
158 |
The following code is for displaying the quiz and completion screen
|
364 |
}
|
365 |
if ($mlw_question->hints != "")
|
366 |
{
|
367 |
+
$mlw_display .= "<span title=\"".$mlw_question->hints."\" style=\"text-decoration:underline;color:rgb(0,0,255);\">Hint</span><br />";
|
368 |
$mlw_display .= "<br />";
|
369 |
}
|
370 |
$mlw_display .= "<br />";
|
includes/mlw_quiz_admin.php
CHANGED
@@ -31,8 +31,8 @@ function mlw_generate_quiz_admin()
|
|
31 |
5. %FIFTH_PLACE_NAME%-%FIFTH_PLACE_SCORE%<br />";
|
32 |
$mlw_question_answer_default = "%QUESTION%<br /> Answer Provided: %USER_ANSWER%<br /> Correct Answer: %CORRECT_ANSWER%<br /> Comments Entered: %USER_COMMENTS%<br />";
|
33 |
$insert = "INSERT INTO " . $table_name .
|
34 |
-
"(quiz_id, quiz_name, message_before, message_after, message_comment, 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, show_score, send_user_email, send_admin_email, contact_info_location, user_name, user_comp, user_email, user_phone, admin_email, comment_section, quiz_views, quiz_taken, deleted) " .
|
35 |
-
"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, '".get_option( 'admin_email', 'Enter email' )."', 0, 0, 0, 0)";
|
36 |
$results = $wpdb->query( $insert );
|
37 |
if ($results != false)
|
38 |
{
|
@@ -122,7 +122,7 @@ function mlw_generate_quiz_admin()
|
|
122 |
$mlw_duplicate_quiz_id = $_POST["duplicate_quiz_id"];
|
123 |
$mlw_duplicate_quiz_name = $_POST["duplicate_new_quiz_name"];
|
124 |
$mlw_qmn_duplicate_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "mlw_quizzes WHERE quiz_id=%d", $mlw_duplicate_quiz_id ) );
|
125 |
-
$results = $wpdb->query( "INSERT INTO ".$table_name." (quiz_id, quiz_name, message_before, message_after, message_comment, 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, show_score, send_user_email, send_admin_email, contact_info_location, user_name, user_comp, user_email, user_phone, admin_email, comment_section, quiz_views, quiz_taken, deleted) VALUES (NULL , '".$mlw_duplicate_quiz_name."' , '".$mlw_qmn_duplicate_data->message_before."', '".$mlw_qmn_duplicate_data->message_after."', '".$mlw_qmn_duplicate_data->message_comment."', '".$mlw_qmn_duplicate_data->user_email_template."', '".$mlw_qmn_duplicate_data->admin_email_template."', '".$mlw_qmn_duplicate_data->submit_button_text."', '".$mlw_qmn_duplicate_data->name_field_text."', '".$mlw_qmn_duplicate_data->business_field_text."', '".$mlw_qmn_duplicate_data->email_field_text."', '".$mlw_qmn_duplicate_data->phone_field_text."', '".$mlw_qmn_duplicate_data->comment_field_text."', '".$mlw_qmn_duplicate_data->email_from_text."', '".$mlw_qmn_duplicate_data->question_answer_template."', '".$mlw_qmn_duplicate_data->leaderboard_template."', ".$mlw_qmn_duplicate_data->system.", ".$mlw_qmn_duplicate_data->randomness_order.", ".$mlw_qmn_duplicate_data->show_score.", ".$mlw_qmn_duplicate_data->send_user_email.", ".$mlw_qmn_duplicate_data->send_admin_email.", ".$mlw_qmn_duplicate_data->contact_info_location.", ".$mlw_qmn_duplicate_data->user_name.", ".$mlw_qmn_duplicate_data->user_comp.", ".$mlw_qmn_duplicate_data->user_email.", ".$mlw_qmn_duplicate_data->user_phone.", '".get_option( 'admin_email', 'Enter email' )."', ".$mlw_qmn_duplicate_data->comment_section.", 0, 0, 0)" );
|
126 |
if ($results != false)
|
127 |
{
|
128 |
$hasDuplicatedQuiz = true;
|
@@ -166,8 +166,16 @@ function mlw_generate_quiz_admin()
|
|
166 |
<!-- css -->
|
167 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
168 |
<!-- jquery scripts -->
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
<script type="text/javascript">
|
172 |
var $j = jQuery.noConflict();
|
173 |
// increase the default animation speed to exaggerate the effect
|
@@ -190,10 +198,11 @@ function mlw_generate_quiz_admin()
|
|
190 |
} );
|
191 |
});
|
192 |
$j(function() {
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
|
|
197 |
|
198 |
});
|
199 |
$j(function() {
|
@@ -456,7 +465,7 @@ function mlw_generate_quiz_admin()
|
|
456 |
echo "</form>";
|
457 |
?>
|
458 |
</div>
|
459 |
-
<div id="dialog" title="Help">
|
460 |
<h3><b>Help</b></h3>
|
461 |
<p>This page shows all of the quizzes currently on your website.</p>
|
462 |
<p>The table shows the quiz id, the name of your quiz, the shortcode to use on your post or page to add the quiz, the shortcode to use on your post or page to add the leaderboard, the amount of views the quiz has had, and the amount of times the quiz was finished</p>
|
31 |
5. %FIFTH_PLACE_NAME%-%FIFTH_PLACE_SCORE%<br />";
|
32 |
$mlw_question_answer_default = "%QUESTION%<br /> Answer Provided: %USER_ANSWER%<br /> Correct Answer: %CORRECT_ANSWER%<br /> Comments Entered: %USER_COMMENTS%<br />";
|
33 |
$insert = "INSERT INTO " . $table_name .
|
34 |
+
"(quiz_id, quiz_name, message_before, message_after, message_comment, 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, quiz_views, quiz_taken, deleted) " .
|
35 |
+
"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, 0)";
|
36 |
$results = $wpdb->query( $insert );
|
37 |
if ($results != false)
|
38 |
{
|
122 |
$mlw_duplicate_quiz_id = $_POST["duplicate_quiz_id"];
|
123 |
$mlw_duplicate_quiz_name = $_POST["duplicate_new_quiz_name"];
|
124 |
$mlw_qmn_duplicate_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "mlw_quizzes WHERE quiz_id=%d", $mlw_duplicate_quiz_id ) );
|
125 |
+
$results = $wpdb->query( "INSERT INTO ".$table_name." (quiz_id, quiz_name, message_before, message_after, message_comment, 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, quiz_views, quiz_taken, deleted) VALUES (NULL , '".$mlw_duplicate_quiz_name."' , '".$mlw_qmn_duplicate_data->message_before."', '".$mlw_qmn_duplicate_data->message_after."', '".$mlw_qmn_duplicate_data->message_comment."', '".$mlw_qmn_duplicate_data->user_email_template."', '".$mlw_qmn_duplicate_data->admin_email_template."', '".$mlw_qmn_duplicate_data->submit_button_text."', '".$mlw_qmn_duplicate_data->name_field_text."', '".$mlw_qmn_duplicate_data->business_field_text."', '".$mlw_qmn_duplicate_data->email_field_text."', '".$mlw_qmn_duplicate_data->phone_field_text."', '".$mlw_qmn_duplicate_data->comment_field_text."', '".$mlw_qmn_duplicate_data->email_from_text."', '".$mlw_qmn_duplicate_data->question_answer_template."', '".$mlw_qmn_duplicate_data->leaderboard_template."', ".$mlw_qmn_duplicate_data->system.", ".$mlw_qmn_duplicate_data->randomness_order.", ".$mlw_qmn_duplicate_data->loggedin_user_contact.", ".$mlw_qmn_duplicate_data->show_score.", ".$mlw_qmn_duplicate_data->send_user_email.", ".$mlw_qmn_duplicate_data->send_admin_email.", ".$mlw_qmn_duplicate_data->contact_info_location.", ".$mlw_qmn_duplicate_data->user_name.", ".$mlw_qmn_duplicate_data->user_comp.", ".$mlw_qmn_duplicate_data->user_email.", ".$mlw_qmn_duplicate_data->user_phone.", '".get_option( 'admin_email', 'Enter email' )."', ".$mlw_qmn_duplicate_data->comment_section.", 0, 0, 0)" );
|
126 |
if ($results != false)
|
127 |
{
|
128 |
$hasDuplicatedQuiz = true;
|
166 |
<!-- css -->
|
167 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
168 |
<!-- jquery scripts -->
|
169 |
+
<?php
|
170 |
+
wp_enqueue_script( 'jquery' );
|
171 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
172 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
173 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
174 |
+
wp_enqueue_script( 'jquery-effects-blind' );
|
175 |
+
wp_enqueue_script( 'jquery-effects-explode' );
|
176 |
+
?>
|
177 |
+
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
|
178 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>-->
|
179 |
<script type="text/javascript">
|
180 |
var $j = jQuery.noConflict();
|
181 |
// increase the default animation speed to exaggerate the effect
|
198 |
} );
|
199 |
});
|
200 |
$j(function() {
|
201 |
+
$j("button, #prev_page, #next_page").button({
|
202 |
+
icons: {
|
203 |
+
primary: "ui-icon-circle-plus"
|
204 |
+
}
|
205 |
+
});
|
206 |
|
207 |
});
|
208 |
$j(function() {
|
465 |
echo "</form>";
|
466 |
?>
|
467 |
</div>
|
468 |
+
<div id="dialog" title="Help" style="display:none;">
|
469 |
<h3><b>Help</b></h3>
|
470 |
<p>This page shows all of the quizzes currently on your website.</p>
|
471 |
<p>The table shows the quiz id, the name of your quiz, the shortcode to use on your post or page to add the quiz, the shortcode to use on your post or page to add the leaderboard, the amount of views the quiz has had, and the amount of times the quiz was finished</p>
|
includes/mlw_quiz_options.php
CHANGED
@@ -352,8 +352,19 @@ function mlw_generate_quiz_options()
|
|
352 |
<!-- css -->
|
353 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
354 |
<!-- jquery scripts -->
|
355 |
-
|
356 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
<script type="text/javascript">
|
358 |
var $j = jQuery.noConflict();
|
359 |
// increase the default animation speed to exaggerate the effect
|
@@ -535,10 +546,12 @@ function mlw_generate_quiz_options()
|
|
535 |
|
536 |
$j('#new_question_button').click(function() {
|
537 |
$j('#new_question_dialog').dialog('open');
|
|
|
538 |
return false;
|
539 |
} );
|
540 |
$j('#new_question_button_two').click(function() {
|
541 |
$j('#new_question_dialog').dialog('open');
|
|
|
542 |
return false;
|
543 |
} );
|
544 |
});
|
352 |
<!-- css -->
|
353 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
354 |
<!-- jquery scripts -->
|
355 |
+
<?php
|
356 |
+
wp_enqueue_script( 'jquery' );
|
357 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
358 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
359 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
360 |
+
wp_enqueue_script( 'jquery-ui-accordion' );
|
361 |
+
wp_enqueue_script( 'jquery-ui-tooltip' );
|
362 |
+
wp_enqueue_script( 'jquery-ui-tabs' );
|
363 |
+
wp_enqueue_script( 'jquery-effects-blind' );
|
364 |
+
wp_enqueue_script( 'jquery-effects-explode' );
|
365 |
+
?>
|
366 |
+
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
|
367 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>-->
|
368 |
<script type="text/javascript">
|
369 |
var $j = jQuery.noConflict();
|
370 |
// increase the default animation speed to exaggerate the effect
|
546 |
|
547 |
$j('#new_question_button').click(function() {
|
548 |
$j('#new_question_dialog').dialog('open');
|
549 |
+
document.getElementById("question_name").focus();
|
550 |
return false;
|
551 |
} );
|
552 |
$j('#new_question_button_two').click(function() {
|
553 |
$j('#new_question_dialog').dialog('open');
|
554 |
+
document.getElementById("question_name").focus();
|
555 |
return false;
|
556 |
} );
|
557 |
});
|
includes/mlw_results.php
CHANGED
@@ -47,8 +47,19 @@ function mlw_generate_quiz_results()
|
|
47 |
<!-- css -->
|
48 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
49 |
<!-- jquery scripts -->
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
<script type="text/javascript">
|
53 |
var $j = jQuery.noConflict();
|
54 |
// increase the default animation speed to exaggerate the effect
|
@@ -70,9 +81,6 @@ function mlw_generate_quiz_results()
|
|
70 |
return false;
|
71 |
} );
|
72 |
});
|
73 |
-
$j(function() {
|
74 |
-
$j( document ).tooltip();
|
75 |
-
});
|
76 |
$j(function() {
|
77 |
$j("button").button();
|
78 |
|
47 |
<!-- css -->
|
48 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
49 |
<!-- jquery scripts -->
|
50 |
+
<?php
|
51 |
+
wp_enqueue_script( 'jquery' );
|
52 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
53 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
54 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
55 |
+
wp_enqueue_script( 'jquery-ui-accordion' );
|
56 |
+
wp_enqueue_script( 'jquery-ui-tooltip' );
|
57 |
+
wp_enqueue_script( 'jquery-ui-tabs' );
|
58 |
+
wp_enqueue_script( 'jquery-effects-blind' );
|
59 |
+
wp_enqueue_script( 'jquery-effects-explode' );
|
60 |
+
?>
|
61 |
+
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
|
62 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>-->
|
63 |
<script type="text/javascript">
|
64 |
var $j = jQuery.noConflict();
|
65 |
// increase the default animation speed to exaggerate the effect
|
81 |
return false;
|
82 |
} );
|
83 |
});
|
|
|
|
|
|
|
84 |
$j(function() {
|
85 |
$j("button").button();
|
86 |
|
includes/mlw_results_details.php
CHANGED
@@ -19,8 +19,19 @@ function mlw_generate_result_details()
|
|
19 |
<!-- css -->
|
20 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
21 |
<!-- jquery scripts -->
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<script type="text/javascript">
|
25 |
var $j = jQuery.noConflict();
|
26 |
// increase the default animation speed to exaggerate the effect
|
@@ -42,9 +53,6 @@ function mlw_generate_result_details()
|
|
42 |
return false;
|
43 |
} );
|
44 |
});
|
45 |
-
$j(function() {
|
46 |
-
$j( document ).tooltip();
|
47 |
-
});
|
48 |
$j(function() {
|
49 |
$j("button").button();
|
50 |
|
19 |
<!-- css -->
|
20 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
21 |
<!-- jquery scripts -->
|
22 |
+
<?php
|
23 |
+
wp_enqueue_script( 'jquery' );
|
24 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
25 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
26 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
27 |
+
wp_enqueue_script( 'jquery-ui-accordion' );
|
28 |
+
wp_enqueue_script( 'jquery-ui-tooltip' );
|
29 |
+
wp_enqueue_script( 'jquery-ui-tabs' );
|
30 |
+
wp_enqueue_script( 'jquery-effects-blind' );
|
31 |
+
wp_enqueue_script( 'jquery-effects-explode' );
|
32 |
+
?>
|
33 |
+
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
|
34 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>-->
|
35 |
<script type="text/javascript">
|
36 |
var $j = jQuery.noConflict();
|
37 |
// increase the default animation speed to exaggerate the effect
|
53 |
return false;
|
54 |
} );
|
55 |
});
|
|
|
|
|
|
|
56 |
$j(function() {
|
57 |
$j("button").button();
|
58 |
|
includes/mlw_tools.php
CHANGED
@@ -12,8 +12,19 @@ function mlw_generate_quiz_tools(){
|
|
12 |
<!-- css -->
|
13 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
14 |
<!-- jquery scripts -->
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<script type="text/javascript">
|
18 |
var $j = jQuery.noConflict();
|
19 |
// increase the default animation speed to exaggerate the effect
|
12 |
<!-- css -->
|
13 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
14 |
<!-- jquery scripts -->
|
15 |
+
<?php
|
16 |
+
wp_enqueue_script( 'jquery' );
|
17 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
18 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
19 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
20 |
+
wp_enqueue_script( 'jquery-ui-accordion' );
|
21 |
+
wp_enqueue_script( 'jquery-ui-tooltip' );
|
22 |
+
wp_enqueue_script( 'jquery-ui-tabs' );
|
23 |
+
wp_enqueue_script( 'jquery-effects-blind' );
|
24 |
+
wp_enqueue_script( 'jquery-effects-explode' );
|
25 |
+
?>
|
26 |
+
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
|
27 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>-->
|
28 |
<script type="text/javascript">
|
29 |
var $j = jQuery.noConflict();
|
30 |
// increase the default animation speed to exaggerate the effect
|
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);
|
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.4.1";
|
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.
|
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.4.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,11 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
|
|
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
|
@@ -261,6 +266,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
|
|
261 |
|
262 |
== Upgrade Notice ==
|
263 |
|
|
|
|
|
|
|
264 |
= 1.2.1 =
|
265 |
This update adds pagination to the quizzes, audit trail, and question tables to make using the admin side easier. It also adds the ability to duplicate a quiz. Fixes various minor bugs.
|
266 |
|
3 |
Tags: quiz, test, score, survey, contact
|
4 |
Requires at least: 3.3
|
5 |
Tested up to: 3.8.1
|
6 |
+
Stable tag: 1.4.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.4.1 (February 20, 2014) =
|
69 |
+
* Enhanced Plugins Compatibility With Other Plugins
|
70 |
+
* Hints Are Now Hidden By Default
|
71 |
+
* Minor Bug Fixes
|
72 |
+
|
73 |
= 1.3.1 (February 18, 2014) =
|
74 |
* Added Ability To Choose Whether Logged-in Users Can Enter Contact Info
|
75 |
* Fixed Editing Hint Field Error
|
266 |
|
267 |
== Upgrade Notice ==
|
268 |
|
269 |
+
= 1.4.1 =
|
270 |
+
This update helps plugin work better with other plugins. The hints for the quiz are now hidden by default.
|
271 |
+
|
272 |
= 1.2.1 =
|
273 |
This update adds pagination to the quizzes, audit trail, and question tables to make using the admin side easier. It also adds the ability to duplicate a quiz. Fixes various minor bugs.
|
274 |
|