Version Description
Upgrade to fix minor bugs and enable pagination on results page.
Download this release
Release Info
Developer | fpcorso |
Plugin | Quiz And Survey Master (Formerly Quiz Master Next) |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.6 to 2.0.1
- includes/mlw_dashboard.php +17 -14
- includes/mlw_quiz.php +12 -9
- includes/mlw_quiz_admin.php +41 -8
- includes/mlw_quiz_options.php +35 -3
- includes/mlw_results.php +74 -7
- includes/mlw_results_details.php +128 -21
- includes/mlw_tools.php +33 -1
- includes/mlw_update.php +5 -1
- mlw_quizmaster2.php +1 -1
- readme.txt +14 -5
includes/mlw_dashboard.php
CHANGED
@@ -52,9 +52,12 @@ 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", 'My Local Webstop Services', "mlw_dashboard_box_six", "quiz_wpss6");
|
56 |
add_meta_box("wpss_mrts", 'Support', "mlw_dashboard_box_seven", "quiz_wpss7");
|
57 |
-
|
|
|
|
|
|
|
|
|
58 |
add_meta_box("wpss_mrts", 'News From My Local Webstop', "mlw_dashboard_box_nine", "quiz_wpss9");
|
59 |
add_meta_box("wpss_mrts", 'Quizzes Taken Today', "mlw_qmn_daily_percent_taken_widget", "quiz_wpss10");
|
60 |
add_meta_box("wpss_mrts", 'Quizzes Taken Last 7 Days', "mlw_qmn_weekly_percent_taken_widget", "quiz_wpss11");
|
@@ -144,7 +147,7 @@ function mlw_generate_quiz_dashboard(){
|
|
144 |
<h2>Quiz Master Next <?php _e("Dashboard", "mlw_qmn_text_domain"); ?><a id="opener" href="">(?)</a></h2>
|
145 |
|
146 |
<h3>Version <?php echo $mlw_quiz_version; ?></h3>
|
147 |
-
<p>Thank you for
|
148 |
|
149 |
<!--Display Widget Boxes-->
|
150 |
<div style="float:left; width:19%;" class="inner-sidebar1">
|
@@ -164,7 +167,7 @@ function mlw_generate_quiz_dashboard(){
|
|
164 |
</div>
|
165 |
|
166 |
<div style="float:right; width:24%; " class="inner-sidebar1">
|
167 |
-
<?php do_meta_boxes('quiz_wpss6','advanced',''); ?>
|
168 |
</div>
|
169 |
|
170 |
<div style="float:left; width:38%;" class="inner-sidebar1">
|
@@ -196,7 +199,7 @@ function mlw_generate_quiz_dashboard(){
|
|
196 |
</div>
|
197 |
|
198 |
<div style="float:right; width:24%; " class="inner-sidebar1">
|
199 |
-
<?php do_meta_boxes('quiz_wpss8','advanced',''); ?>
|
200 |
</div>
|
201 |
|
202 |
<div style="clear:both">
|
@@ -479,19 +482,19 @@ function mlw_dashboard_box_six()
|
|
479 |
?>
|
480 |
<div>
|
481 |
<h2>Plugin Premium Support</h2>
|
482 |
-
<p>Plugin Premium Support includes priority
|
483 |
-
<p>
|
484 |
-
<
|
|
|
485 |
<h2>Plugin Installation Services</h2>
|
486 |
-
<p>We will install any or all of our WordPress plugins on your existing WordPress site
|
487 |
-
<p>
|
|
|
488 |
<hr />
|
489 |
<h2>WordPress Maintenance Services</h2>
|
490 |
-
<p>Our maintenance service includes around the clock security monitoring, off-site backups, plugin updates, theme updates, WordPress updates,
|
491 |
-
<p>Our Premium Plugin Support is included!</p>
|
492 |
<p>Up to 30 minutes of support, consultation, and training included each month.</p>
|
493 |
-
<
|
494 |
-
<p>Visit our <a href="http://mylocalwebstop.com/services/" target="_blank" style="color:blue;">services</a> page for details.</p>
|
495 |
</div>
|
496 |
<?php
|
497 |
}
|
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", 'Support', "mlw_dashboard_box_seven", "quiz_wpss7");
|
56 |
+
if ( get_option('mlw_advert_shows') == 'true' )
|
57 |
+
{
|
58 |
+
add_meta_box("wpss_mrts", 'My Local Webstop Services', "mlw_dashboard_box_six", "quiz_wpss6");
|
59 |
+
add_meta_box("wpss_mrts", 'Contribution', "mlw_dashboard_box_eight", "quiz_wpss8");
|
60 |
+
}
|
61 |
add_meta_box("wpss_mrts", 'News From My Local Webstop', "mlw_dashboard_box_nine", "quiz_wpss9");
|
62 |
add_meta_box("wpss_mrts", 'Quizzes Taken Today', "mlw_qmn_daily_percent_taken_widget", "quiz_wpss10");
|
63 |
add_meta_box("wpss_mrts", 'Quizzes Taken Last 7 Days', "mlw_qmn_weekly_percent_taken_widget", "quiz_wpss11");
|
147 |
<h2>Quiz Master Next <?php _e("Dashboard", "mlw_qmn_text_domain"); ?><a id="opener" href="">(?)</a></h2>
|
148 |
|
149 |
<h3>Version <?php echo $mlw_quiz_version; ?></h3>
|
150 |
+
<p>Thank you for using this plugin. I hope you find it beneficial to your website. <?php if ( get_option('mlw_advert_shows') == 'true' ) { ?> If it is, please consider a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RTGYAETX36ZQJ">donation</a>, a <a href="http://wordpress.org/support/view/plugin-reviews/quiz-master-next">review</a>, or taking this <a href="http://mylocalwebstop.com/sample-survey/" target="_blank">survey</a>. <?php } ?>Thank you!</p>
|
151 |
|
152 |
<!--Display Widget Boxes-->
|
153 |
<div style="float:left; width:19%;" class="inner-sidebar1">
|
167 |
</div>
|
168 |
|
169 |
<div style="float:right; width:24%; " class="inner-sidebar1">
|
170 |
+
<?php if ( get_option('mlw_advert_shows') == 'true' ) {do_meta_boxes('quiz_wpss6','advanced','');} ?>
|
171 |
</div>
|
172 |
|
173 |
<div style="float:left; width:38%;" class="inner-sidebar1">
|
199 |
</div>
|
200 |
|
201 |
<div style="float:right; width:24%; " class="inner-sidebar1">
|
202 |
+
<?php if ( get_option('mlw_advert_shows') == 'true' ) {do_meta_boxes('quiz_wpss8','advanced','');} ?>
|
203 |
</div>
|
204 |
|
205 |
<div style="clear:both">
|
482 |
?>
|
483 |
<div>
|
484 |
<h2>Plugin Premium Support</h2>
|
485 |
+
<p>Plugin Premium Support includes 1 year of priority support, priority feature requests, and access to WordPress training videos.</p>
|
486 |
+
<p>You can also purchase 1-on-1 training to go with your support!</p>
|
487 |
+
<p>For details, visit our <a href="http://mylocalwebstop.com/product/plugin-premium-support/" target="_blank" style="color:blue;">Plugin Premium Support</a> page.</p>
|
488 |
+
<hr />
|
489 |
<h2>Plugin Installation Services</h2>
|
490 |
+
<p>We will install and configure any or all of our WordPress plugins on your existing WordPress site.</p>
|
491 |
+
<p>We also offer 1-on-1 training to go with your installation!</p>
|
492 |
+
<p>For details, visit our <a href="http://mylocalwebstop.com/product/plugin-installation/" target="_blank" style="color:blue;">Plugin Installation</a> page.</p>
|
493 |
<hr />
|
494 |
<h2>WordPress Maintenance Services</h2>
|
495 |
+
<p>Our maintenance service includes around the clock security monitoring, off-site backups, plugin updates, theme updates, WordPress updates, WordPress training videos, and a Monthly Status Report.</p>
|
|
|
496 |
<p>Up to 30 minutes of support, consultation, and training included each month.</p>
|
497 |
+
<p>Visit our <a href="http://mylocalwebstop.com/wordpress-maintenance-services/" target="_blank" style="color:blue;">WordPress Maintenance Services</a> page for details.</p>
|
|
|
498 |
</div>
|
499 |
<?php
|
500 |
}
|
includes/mlw_quiz.php
CHANGED
@@ -70,6 +70,7 @@ function mlw_quiz_shortcode($atts)
|
|
70 |
$mlw_spam_email = $_POST["email"];
|
71 |
}
|
72 |
|
|
|
73 |
wp_enqueue_script( 'jquery' );
|
74 |
wp_enqueue_script( 'jquery-ui-core' );
|
75 |
wp_enqueue_script( 'jquery-effects-core' );
|
@@ -181,6 +182,7 @@ function mlw_quiz_shortcode($atts)
|
|
181 |
}
|
182 |
</script>
|
183 |
<style type="text/css">
|
|
|
184 |
a.mlw_qmn_quiz_link
|
185 |
{
|
186 |
border-radius: 4px;
|
@@ -561,6 +563,7 @@ function mlw_quiz_shortcode($atts)
|
|
561 |
//See which answers were correct and award points if necessary
|
562 |
$mlw_user_text = "";
|
563 |
$mlw_correct_text = "";
|
|
|
564 |
foreach($mlw_questions as $mlw_question) {
|
565 |
if (isset($_POST["question".$mlw_question->question_id]) || isset($_POST["mlwComment".$mlw_question->question_id]))
|
566 |
{
|
@@ -626,6 +629,8 @@ function mlw_quiz_shortcode($atts)
|
|
626 |
$mlw_question_answer_display = str_replace( "%USER_COMMENTS%" , $mlw_qm_question_comment, $mlw_question_answer_display);
|
627 |
$mlw_question_answer_display = str_replace( "%CORRECT_ANSWER_INFO%" , htmlspecialchars_decode($mlw_question->question_answer_info, ENT_QUOTES), $mlw_question_answer_display);
|
628 |
|
|
|
|
|
629 |
$mlw_question_answers .= $mlw_question_answer_display;
|
630 |
$mlw_question_answers .= "<br />";
|
631 |
}
|
@@ -857,6 +862,7 @@ EOC;
|
|
857 |
$mlw_message = str_replace( "%TIMER%" , $mlw_qmn_timer, $mlw_message);
|
858 |
$mlw_message = str_replace( "%CERTIFICATE_LINK%" , $mlw_certificate_link, $mlw_message);
|
859 |
$mlw_message = str_replace( "%CURRENT_DATE%" , date("F jS Y"), $mlw_message);
|
|
|
860 |
$mlw_message = str_replace( "\n" , "<br>", $mlw_message);
|
861 |
$mlw_message = str_replace( "<br/>" , "<br>", $mlw_message);
|
862 |
$mlw_message = str_replace( "<br />" , "<br>", $mlw_message);
|
@@ -885,7 +891,7 @@ EOC;
|
|
885 |
$mlw_message = str_replace( "%TIMER%" , $mlw_qmn_timer, $mlw_message);
|
886 |
$mlw_message = str_replace( "%CERTIFICATE_LINK%" , $mlw_certificate_link, $mlw_message);
|
887 |
$mlw_message = str_replace( "%CURRENT_DATE%" , date("F jS Y"), $mlw_message);
|
888 |
-
$mlw_message .= "
|
889 |
$mlw_message = str_replace( "\n" , "<br>", $mlw_message);
|
890 |
$mlw_message = str_replace( "<br/>" , "<br>", $mlw_message);
|
891 |
$mlw_message = str_replace( "<br />" , "<br>", $mlw_message);
|
@@ -897,21 +903,18 @@ EOC;
|
|
897 |
remove_filter( 'wp_mail_content_type', 'mlw_qmn_set_html_content_type' );
|
898 |
|
899 |
//Save the results into database
|
900 |
-
$
|
901 |
-
$mlw_quiz_results =
|
902 |
-
|
903 |
global $wpdb;
|
904 |
$table_name = $wpdb->prefix . "mlw_results";
|
905 |
-
$
|
906 |
-
"(result_id, quiz_id, quiz_name, quiz_system, point_score, correct_score, correct, total, name, business, email, phone, time_taken, time_taken_real, quiz_results, deleted) " .
|
907 |
-
"VALUES (NULL , " . $mlw_quiz_id . " , '".$mlw_quiz_options->quiz_name."', ".$mlw_quiz_options->system.", ".$mlw_points.", ".$mlw_total_score.", ".$mlw_correct.", ".$mlw_total_questions.", '".$mlw_user_name."', '".$mlw_user_comp."', '".$mlw_user_email."', '".$mlw_user_phone."', '".date("h:i:s A m/d/Y")."', '".date("Y-m-d H:i:s")."', '".$mlw_quiz_results."', 0)";
|
908 |
-
$results = $wpdb->query( $insert );
|
909 |
}
|
910 |
else
|
911 |
{
|
912 |
if (!$mlw_qmn_isAllowed)
|
913 |
{
|
914 |
-
$mlw_display .= $mlw_quiz_options->total_user_tries_text;
|
915 |
}
|
916 |
else { $mlw_display .= "Thank you."; }
|
917 |
}
|
70 |
$mlw_spam_email = $_POST["email"];
|
71 |
}
|
72 |
|
73 |
+
wp_enqueue_script( 'json2' );
|
74 |
wp_enqueue_script( 'jquery' );
|
75 |
wp_enqueue_script( 'jquery-ui-core' );
|
76 |
wp_enqueue_script( 'jquery-effects-core' );
|
182 |
}
|
183 |
</script>
|
184 |
<style type="text/css">
|
185 |
+
div.mlw_qmn_quiz input[type=submit],
|
186 |
a.mlw_qmn_quiz_link
|
187 |
{
|
188 |
border-radius: 4px;
|
563 |
//See which answers were correct and award points if necessary
|
564 |
$mlw_user_text = "";
|
565 |
$mlw_correct_text = "";
|
566 |
+
$mlw_qmn_answer_array = array();
|
567 |
foreach($mlw_questions as $mlw_question) {
|
568 |
if (isset($_POST["question".$mlw_question->question_id]) || isset($_POST["mlwComment".$mlw_question->question_id]))
|
569 |
{
|
629 |
$mlw_question_answer_display = str_replace( "%USER_COMMENTS%" , $mlw_qm_question_comment, $mlw_question_answer_display);
|
630 |
$mlw_question_answer_display = str_replace( "%CORRECT_ANSWER_INFO%" , htmlspecialchars_decode($mlw_question->question_answer_info, ENT_QUOTES), $mlw_question_answer_display);
|
631 |
|
632 |
+
$mlw_qmn_answer_array[] = array($mlw_question->question_name, htmlspecialchars($mlw_user_text, ENT_QUOTES), htmlspecialchars($mlw_correct_text, ENT_QUOTES), htmlspecialchars(stripslashes($mlw_qm_question_comment), ENT_QUOTES));
|
633 |
+
|
634 |
$mlw_question_answers .= $mlw_question_answer_display;
|
635 |
$mlw_question_answers .= "<br />";
|
636 |
}
|
862 |
$mlw_message = str_replace( "%TIMER%" , $mlw_qmn_timer, $mlw_message);
|
863 |
$mlw_message = str_replace( "%CERTIFICATE_LINK%" , $mlw_certificate_link, $mlw_message);
|
864 |
$mlw_message = str_replace( "%CURRENT_DATE%" , date("F jS Y"), $mlw_message);
|
865 |
+
if ( get_option('mlw_advert_shows') == 'true' ) {$mlw_message .= "<br>This email was generated by the Quiz Master Next plugin.";}
|
866 |
$mlw_message = str_replace( "\n" , "<br>", $mlw_message);
|
867 |
$mlw_message = str_replace( "<br/>" , "<br>", $mlw_message);
|
868 |
$mlw_message = str_replace( "<br />" , "<br>", $mlw_message);
|
891 |
$mlw_message = str_replace( "%TIMER%" , $mlw_qmn_timer, $mlw_message);
|
892 |
$mlw_message = str_replace( "%CERTIFICATE_LINK%" , $mlw_certificate_link, $mlw_message);
|
893 |
$mlw_message = str_replace( "%CURRENT_DATE%" , date("F jS Y"), $mlw_message);
|
894 |
+
if ( get_option('mlw_advert_shows') == 'true' ) {$mlw_message .= "<br>This email was generated by the Quiz Master Next script by Frank Corso";}
|
895 |
$mlw_message = str_replace( "\n" , "<br>", $mlw_message);
|
896 |
$mlw_message = str_replace( "<br/>" , "<br>", $mlw_message);
|
897 |
$mlw_message = str_replace( "<br />" , "<br>", $mlw_message);
|
903 |
remove_filter( 'wp_mail_content_type', 'mlw_qmn_set_html_content_type' );
|
904 |
|
905 |
//Save the results into database
|
906 |
+
$mlw_quiz_results_array = array( intval($mlw_qmn_timer), $mlw_qmn_answer_array, htmlspecialchars(stripslashes($mlw_qm_quiz_comments), ENT_QUOTES));
|
907 |
+
$mlw_quiz_results = serialize($mlw_quiz_results_array);
|
908 |
+
|
909 |
global $wpdb;
|
910 |
$table_name = $wpdb->prefix . "mlw_results";
|
911 |
+
$results = $wpdb->query( $wpdb->prepare( "INSERT INTO " . $table_name . " (result_id, quiz_id, quiz_name, quiz_system, point_score, correct_score, correct, total, name, business, email, phone, time_taken, time_taken_real, quiz_results, deleted) VALUES (NULL, %d, '%s', %d, %d, %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', 0)", $mlw_quiz_id, $mlw_quiz_options->quiz_name, $mlw_quiz_options->system, $mlw_points, $mlw_total_score, $mlw_correct, $mlw_total_questions, $mlw_user_name, $mlw_user_comp, $mlw_user_email, $mlw_user_phone, date("h:i:s A m/d/Y"), date("Y-m-d H:i:s"), $mlw_quiz_results) );
|
|
|
|
|
|
|
912 |
}
|
913 |
else
|
914 |
{
|
915 |
if (!$mlw_qmn_isAllowed)
|
916 |
{
|
917 |
+
$mlw_display .= htmlspecialchars_decode($mlw_quiz_options->total_user_tries_text, ENT_QUOTES);
|
918 |
}
|
919 |
else { $mlw_display .= "Thank you."; }
|
920 |
}
|
includes/mlw_quiz_admin.php
CHANGED
@@ -196,12 +196,12 @@ function mlw_generate_quiz_admin()
|
|
196 |
} );
|
197 |
});
|
198 |
$j(function() {
|
199 |
-
$j("
|
|
|
200 |
icons: {
|
201 |
primary: "ui-icon-circle-plus"
|
202 |
}
|
203 |
-
});
|
204 |
-
|
205 |
});
|
206 |
$j(function() {
|
207 |
$j('#new_quiz_dialog').dialog({
|
@@ -340,7 +340,6 @@ function mlw_generate_quiz_admin()
|
|
340 |
}
|
341 |
?>
|
342 |
<button id="new_quiz_button_two">Create New Quiz</button>
|
343 |
-
<br />
|
344 |
<?php
|
345 |
$quotes_list = "";
|
346 |
$display = "";
|
@@ -361,24 +360,26 @@ function mlw_generate_quiz_admin()
|
|
361 |
if( $mlw_qmn_quiz_page > 0 )
|
362 |
{
|
363 |
$mlw_qmn_previous_page = $mlw_qmn_quiz_page - 2;
|
364 |
-
$display .= "<a id=\"prev_page\" href=\"
|
365 |
if( $mlw_qmn_quiz_left > $mlw_qmn_table_limit )
|
366 |
{
|
367 |
-
$display .= "<a id=\"next_page\" href=\"
|
368 |
}
|
369 |
}
|
370 |
else if( $mlw_qmn_quiz_page == 0 )
|
371 |
{
|
372 |
if( $mlw_qmn_quiz_left > $mlw_qmn_table_limit )
|
373 |
{
|
374 |
-
$display .= "<a id=\"next_page\" href=\"
|
375 |
}
|
376 |
}
|
377 |
else if( $mlw_qmn_quiz_left < $mlw_qmn_table_limit )
|
378 |
{
|
379 |
$mlw_qmn_previous_page = $mlw_qmn_quiz_page - 2;
|
380 |
-
$display .= "<a id=\"prev_page\" href=\"
|
381 |
}
|
|
|
|
|
382 |
|
383 |
$display .= "<table class=\"widefat\">";
|
384 |
$display .= "<thead><tr>
|
@@ -404,6 +405,38 @@ function mlw_generate_quiz_admin()
|
|
404 |
|
405 |
<button id="new_quiz_button">Create New Quiz</button>
|
406 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
<!--Dialogs-->
|
408 |
|
409 |
<!--New Quiz Dialog-->
|
196 |
} );
|
197 |
});
|
198 |
$j(function() {
|
199 |
+
$j("#prev_page, #next_page").button();
|
200 |
+
$j("#new_quiz_button, #new_quiz_button_two").button({
|
201 |
icons: {
|
202 |
primary: "ui-icon-circle-plus"
|
203 |
}
|
204 |
+
});
|
|
|
205 |
});
|
206 |
$j(function() {
|
207 |
$j('#new_quiz_dialog').dialog({
|
340 |
}
|
341 |
?>
|
342 |
<button id="new_quiz_button_two">Create New Quiz</button>
|
|
|
343 |
<?php
|
344 |
$quotes_list = "";
|
345 |
$display = "";
|
360 |
if( $mlw_qmn_quiz_page > 0 )
|
361 |
{
|
362 |
$mlw_qmn_previous_page = $mlw_qmn_quiz_page - 2;
|
363 |
+
$display .= "<a id=\"prev_page\" href=\"?page=mlw_quiz_admin&&mlw_quiz_page=$mlw_qmn_previous_page\">Previous 10 Quizzes</a>";
|
364 |
if( $mlw_qmn_quiz_left > $mlw_qmn_table_limit )
|
365 |
{
|
366 |
+
$display .= "<a id=\"next_page\" href=\"?page=mlw_quiz_admin&&mlw_quiz_page=$mlw_qmn_quiz_page\">Next 10 Quizzes</a>";
|
367 |
}
|
368 |
}
|
369 |
else if( $mlw_qmn_quiz_page == 0 )
|
370 |
{
|
371 |
if( $mlw_qmn_quiz_left > $mlw_qmn_table_limit )
|
372 |
{
|
373 |
+
$display .= "<a id=\"next_page\" href=\"?page=mlw_quiz_admin&&mlw_quiz_page=$mlw_qmn_quiz_page\">Next 10 Quizzes</a>";
|
374 |
}
|
375 |
}
|
376 |
else if( $mlw_qmn_quiz_left < $mlw_qmn_table_limit )
|
377 |
{
|
378 |
$mlw_qmn_previous_page = $mlw_qmn_quiz_page - 2;
|
379 |
+
$display .= "<a id=\"prev_page\" href=\"?page=mlw_quiz_admin&&mlw_quiz_page=$mlw_qmn_previous_page\">Previous 10 Quizzes</a>";
|
380 |
}
|
381 |
+
|
382 |
+
$display .= "<br />";
|
383 |
|
384 |
$display .= "<table class=\"widefat\">";
|
385 |
$display .= "<thead><tr>
|
405 |
|
406 |
<button id="new_quiz_button">Create New Quiz</button>
|
407 |
|
408 |
+
<?php
|
409 |
+
if ( get_option('mlw_advert_shows') == 'true' )
|
410 |
+
{
|
411 |
+
?>
|
412 |
+
<style>
|
413 |
+
div.help_decide
|
414 |
+
{
|
415 |
+
display: block;
|
416 |
+
text-align:center;
|
417 |
+
letter-spacing: 1px;
|
418 |
+
margin: auto;
|
419 |
+
text-shadow: 0 1px 1px #000000;
|
420 |
+
background: #0d97d8;
|
421 |
+
border: 5px solid #106daa;
|
422 |
+
-moz-border-radius: 20px;
|
423 |
+
-webkit-border-radius: 20px;
|
424 |
+
-khtml-border-radius: 20px;
|
425 |
+
border-radius: 20px;
|
426 |
+
color: #FFFFFF;
|
427 |
+
}
|
428 |
+
div.help_decide a
|
429 |
+
{
|
430 |
+
color: yellow;
|
431 |
+
}
|
432 |
+
</style>
|
433 |
+
<div class="help_decide">
|
434 |
+
<p>Need support or features? Check out our Plugin Add-On Store for premium support, installation services, and more! Visit our <a href="http://mylocalwebstop.com/shop/">Plugin Add-On Store</a>!</p>
|
435 |
+
</div>
|
436 |
+
<?php
|
437 |
+
}
|
438 |
+
?>
|
439 |
+
|
440 |
<!--Dialogs-->
|
441 |
|
442 |
<!--New Quiz Dialog-->
|
includes/mlw_quiz_options.php
CHANGED
@@ -410,13 +410,13 @@ function mlw_generate_quiz_options()
|
|
410 |
{
|
411 |
if ($_POST["message_after_".$i] != "Delete")
|
412 |
{
|
413 |
-
$mlw_qmn_landing_each = array(intval($_POST["message_after_begin_".$i]), intval($_POST["message_after_end_".$i]), htmlspecialchars($_POST["message_after_".$i], ENT_QUOTES));
|
414 |
-
$mlw_qmn_new_landing_array[] = $mlw_qmn_landing_each;
|
415 |
}
|
416 |
$i++;
|
417 |
}
|
418 |
$mlw_qmn_new_landing_array = serialize($mlw_qmn_new_landing_array);
|
419 |
-
$mlw_new_landing_results = $wpdb->query( $wpdb->prepare( "UPDATE ".$wpdb->prefix."mlw_quizzes SET message_after
|
420 |
if ($mlw_new_landing_results != false)
|
421 |
{
|
422 |
$mlw_hasSavedLanding = true;
|
@@ -1993,6 +1993,38 @@ function mlw_generate_quiz_options()
|
|
1993 |
</div>
|
1994 |
</div>
|
1995 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1996 |
|
1997 |
|
1998 |
<!--Dialogs-->
|
410 |
{
|
411 |
if ($_POST["message_after_".$i] != "Delete")
|
412 |
{
|
413 |
+
$mlw_qmn_landing_each = array(intval($_POST["message_after_begin_".$i]), intval($_POST["message_after_end_".$i]), htmlspecialchars(stripslashes($_POST["message_after_".$i]), ENT_QUOTES));
|
414 |
+
$mlw_qmn_new_landing_array[] = $mlw_qmn_landing_each;
|
415 |
}
|
416 |
$i++;
|
417 |
}
|
418 |
$mlw_qmn_new_landing_array = serialize($mlw_qmn_new_landing_array);
|
419 |
+
$mlw_new_landing_results = $wpdb->query( $wpdb->prepare( "UPDATE ".$wpdb->prefix."mlw_quizzes SET message_after='%s' WHERE quiz_id=%d", $mlw_qmn_new_landing_array, $mlw_qmn_landing_id ) );
|
420 |
if ($mlw_new_landing_results != false)
|
421 |
{
|
422 |
$mlw_hasSavedLanding = true;
|
1993 |
</div>
|
1994 |
</div>
|
1995 |
</div>
|
1996 |
+
|
1997 |
+
<?php
|
1998 |
+
if ( get_option('mlw_advert_shows') == 'true' )
|
1999 |
+
{
|
2000 |
+
?>
|
2001 |
+
<style>
|
2002 |
+
div.help_decide
|
2003 |
+
{
|
2004 |
+
display: block;
|
2005 |
+
text-align:center;
|
2006 |
+
letter-spacing: 1px;
|
2007 |
+
margin: auto;
|
2008 |
+
text-shadow: 0 1px 1px #000000;
|
2009 |
+
background: #0d97d8;
|
2010 |
+
border: 5px solid #106daa;
|
2011 |
+
-moz-border-radius: 20px;
|
2012 |
+
-webkit-border-radius: 20px;
|
2013 |
+
-khtml-border-radius: 20px;
|
2014 |
+
border-radius: 20px;
|
2015 |
+
color: #FFFFFF;
|
2016 |
+
}
|
2017 |
+
div.help_decide a
|
2018 |
+
{
|
2019 |
+
color: yellow;
|
2020 |
+
}
|
2021 |
+
</style>
|
2022 |
+
<div class="help_decide">
|
2023 |
+
<p>Need support or features? Check out our Plugin Add-On Store for premium support, installation services, and more! Visit our <a href="http://mylocalwebstop.com/shop/">Plugin Add-On Store</a>!</p>
|
2024 |
+
</div>
|
2025 |
+
<?php
|
2026 |
+
}
|
2027 |
+
?>
|
2028 |
|
2029 |
|
2030 |
<!--Dialogs-->
|
includes/mlw_results.php
CHANGED
@@ -33,15 +33,28 @@ function mlw_generate_quiz_results()
|
|
33 |
}
|
34 |
|
35 |
global $wpdb;
|
36 |
-
|
37 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
if (isset($_GET["quiz_id"]) && $_GET["quiz_id"] != "")
|
39 |
{
|
40 |
-
$
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
-
$sql .= " ORDER BY result_id DESC";
|
43 |
-
|
44 |
-
$mlw_quiz_data = $wpdb->get_results($sql);
|
45 |
?>
|
46 |
<!-- css -->
|
47 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
@@ -81,7 +94,7 @@ function mlw_generate_quiz_results()
|
|
81 |
} );
|
82 |
});
|
83 |
$j(function() {
|
84 |
-
$j("button").button();
|
85 |
|
86 |
});
|
87 |
function deleteResults(id,quizName){
|
@@ -157,6 +170,28 @@ function mlw_generate_quiz_results()
|
|
157 |
$quotes_list .= "<td><span style='font-size:16px;'>" . $mlw_quiz_info->time_taken ."</span></td>";
|
158 |
$quotes_list .= "</tr>";
|
159 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
|
161 |
$display .= "<table class=\"widefat\">";
|
162 |
$display .= "<thead><tr>
|
@@ -173,6 +208,38 @@ function mlw_generate_quiz_results()
|
|
173 |
$display .= "</table>";
|
174 |
echo $display;
|
175 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
|
177 |
<div id="dialog" title="Help" style="display:none;">
|
178 |
<h3><b>Help</b></h3>
|
33 |
}
|
34 |
|
35 |
global $wpdb;
|
36 |
+
$mlw_qmn_table_limit = 30;
|
37 |
+
$mlw_qmn_results_count = $wpdb->get_var( "SELECT COUNT(result_id) FROM " . $wpdb->prefix . "mlw_results WHERE deleted='0'" );
|
38 |
+
|
39 |
+
if( isset($_GET['mlw_result_page'] ) )
|
40 |
+
{
|
41 |
+
$mlw_qmn_result_page = $_GET['mlw_result_page'] + 1;
|
42 |
+
$mlw_qmn_result_begin = $mlw_qmn_table_limit * $mlw_qmn_result_page ;
|
43 |
+
}
|
44 |
+
else
|
45 |
+
{
|
46 |
+
$mlw_qmn_result_page = 0;
|
47 |
+
$mlw_qmn_result_begin = 0;
|
48 |
+
}
|
49 |
+
$mlw_qmn_result_left = $mlw_qmn_results_count - ($mlw_qmn_result_page * $mlw_qmn_table_limit);
|
50 |
if (isset($_GET["quiz_id"]) && $_GET["quiz_id"] != "")
|
51 |
{
|
52 |
+
$mlw_quiz_data = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "mlw_results WHERE deleted='0' AND quiz_id=%d ORDER BY result_id DESC LIMIT %d, %d", intval($_GET["quiz_id"]), $mlw_qmn_result_begin, $mlw_qmn_table_limit ) );
|
53 |
+
}
|
54 |
+
else
|
55 |
+
{
|
56 |
+
$mlw_quiz_data = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM " . $wpdb->prefix . "mlw_results WHERE deleted='0' ORDER BY result_id DESC LIMIT %d, %d", $mlw_qmn_result_begin, $mlw_qmn_table_limit ) );
|
57 |
}
|
|
|
|
|
|
|
58 |
?>
|
59 |
<!-- css -->
|
60 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
94 |
} );
|
95 |
});
|
96 |
$j(function() {
|
97 |
+
$j("button, #prev_page, #next_page").button();
|
98 |
|
99 |
});
|
100 |
function deleteResults(id,quizName){
|
170 |
$quotes_list .= "<td><span style='font-size:16px;'>" . $mlw_quiz_info->time_taken ."</span></td>";
|
171 |
$quotes_list .= "</tr>";
|
172 |
}
|
173 |
+
|
174 |
+
if( $mlw_qmn_result_page > 0 )
|
175 |
+
{
|
176 |
+
$mlw_qmn_previous_page = $mlw_qmn_result_page - 2;
|
177 |
+
$display .= "<a id=\"prev_page\" href=\"?page=mlw_quiz_results&&mlw_result_page=$mlw_qmn_previous_page\">Previous $mlw_qmn_table_limit Quizzes</a>";
|
178 |
+
if( $mlw_qmn_result_left > $mlw_qmn_table_limit )
|
179 |
+
{
|
180 |
+
$display .= "<a id=\"next_page\" href=\"?page=mlw_quiz_results&&mlw_result_page=$mlw_qmn_result_page\">Next $mlw_qmn_table_limit Quizzes</a>";
|
181 |
+
}
|
182 |
+
}
|
183 |
+
else if( $mlw_qmn_result_page == 0 )
|
184 |
+
{
|
185 |
+
if( $mlw_qmn_result_left > $mlw_qmn_table_limit )
|
186 |
+
{
|
187 |
+
$display .= "<a id=\"next_page\" href=\"?page=mlw_quiz_results&&mlw_result_page=$mlw_qmn_result_page\">Next $mlw_qmn_table_limit Quizzes</a>";
|
188 |
+
}
|
189 |
+
}
|
190 |
+
else if( $mlw_qmn_result_left < $mlw_qmn_table_limit )
|
191 |
+
{
|
192 |
+
$mlw_qmn_previous_page = $mlw_qmn_result_page - 2;
|
193 |
+
$display .= "<a id=\"prev_page\" href=\"?page=mlw_quiz_results&&mlw_result_page=$mlw_qmn_previous_page\">Previous $mlw_qmn_table_limit Quizzes</a>";
|
194 |
+
}
|
195 |
|
196 |
$display .= "<table class=\"widefat\">";
|
197 |
$display .= "<thead><tr>
|
208 |
$display .= "</table>";
|
209 |
echo $display;
|
210 |
?>
|
211 |
+
|
212 |
+
<?php
|
213 |
+
if ( get_option('mlw_advert_shows') == 'true' )
|
214 |
+
{
|
215 |
+
?>
|
216 |
+
<style>
|
217 |
+
div.help_decide
|
218 |
+
{
|
219 |
+
display: block;
|
220 |
+
text-align:center;
|
221 |
+
letter-spacing: 1px;
|
222 |
+
margin: auto;
|
223 |
+
text-shadow: 0 1px 1px #000000;
|
224 |
+
background: #0d97d8;
|
225 |
+
border: 5px solid #106daa;
|
226 |
+
-moz-border-radius: 20px;
|
227 |
+
-webkit-border-radius: 20px;
|
228 |
+
-khtml-border-radius: 20px;
|
229 |
+
border-radius: 20px;
|
230 |
+
color: #FFFFFF;
|
231 |
+
}
|
232 |
+
div.help_decide a
|
233 |
+
{
|
234 |
+
color: yellow;
|
235 |
+
}
|
236 |
+
</style>
|
237 |
+
<div class="help_decide">
|
238 |
+
<p>Need support or features? Check out our Plugin Add-On Store for premium support, installation services, and more! Visit our <a href="http://mylocalwebstop.com/shop/">Plugin Add-On Store</a>!</p>
|
239 |
+
</div>
|
240 |
+
<?php
|
241 |
+
}
|
242 |
+
?>
|
243 |
|
244 |
<div id="dialog" title="Help" style="display:none;">
|
245 |
<h3><b>Help</b></h3>
|
includes/mlw_results_details.php
CHANGED
@@ -67,9 +67,7 @@ EOC;
|
|
67 |
|
68 |
|
69 |
//Load Results
|
70 |
-
$
|
71 |
-
$sql = "SELECT quiz_results FROM " . $wpdb->prefix . "mlw_results WHERE result_id=".$mlw_result_id."";
|
72 |
-
$mlw_results_data = $wpdb->get_results($sql);
|
73 |
|
74 |
?>
|
75 |
<!-- css -->
|
@@ -80,7 +78,6 @@ EOC;
|
|
80 |
wp_enqueue_script( 'jquery-ui-core' );
|
81 |
wp_enqueue_script( 'jquery-ui-dialog' );
|
82 |
wp_enqueue_script( 'jquery-ui-button' );
|
83 |
-
wp_enqueue_script( 'jquery-ui-accordion' );
|
84 |
wp_enqueue_script( 'jquery-ui-tooltip' );
|
85 |
wp_enqueue_script( 'jquery-ui-tabs' );
|
86 |
wp_enqueue_script( 'jquery-effects-blind' );
|
@@ -107,11 +104,9 @@ EOC;
|
|
107 |
$j('#opener').click(function() {
|
108 |
$j('#dialog').dialog('open');
|
109 |
return false;
|
110 |
-
|
111 |
-
});
|
112 |
-
$j(function() {
|
113 |
$j("button").button();
|
114 |
-
|
115 |
});
|
116 |
</script>
|
117 |
<style>
|
@@ -130,19 +125,99 @@ EOC;
|
|
130 |
<div class="wrap">
|
131 |
<div class='mlw_quiz_options'>
|
132 |
<h2>Quiz Results<a id="opener" href="">(?)</a></h2>
|
133 |
-
<
|
134 |
-
<
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
<div id="dialog" title="Help">
|
147 |
<h3><b>Help</b></h3>
|
148 |
<p>This page shows the results from the taken quiz.</p>
|
@@ -150,6 +225,38 @@ EOC;
|
|
150 |
<p>The bottom section shows the text from the comment box if enabled.</p>
|
151 |
</div>
|
152 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
</div>
|
154 |
|
155 |
<?php
|
67 |
|
68 |
|
69 |
//Load Results
|
70 |
+
$mlw_results_data = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "mlw_results WHERE result_id=".intval($mlw_result_id));
|
|
|
|
|
71 |
|
72 |
?>
|
73 |
<!-- css -->
|
78 |
wp_enqueue_script( 'jquery-ui-core' );
|
79 |
wp_enqueue_script( 'jquery-ui-dialog' );
|
80 |
wp_enqueue_script( 'jquery-ui-button' );
|
|
|
81 |
wp_enqueue_script( 'jquery-ui-tooltip' );
|
82 |
wp_enqueue_script( 'jquery-ui-tabs' );
|
83 |
wp_enqueue_script( 'jquery-effects-blind' );
|
104 |
$j('#opener').click(function() {
|
105 |
$j('#dialog').dialog('open');
|
106 |
return false;
|
107 |
+
});
|
|
|
|
|
108 |
$j("button").button();
|
109 |
+
$j( "#tabs" ).tabs();
|
110 |
});
|
111 |
</script>
|
112 |
<style>
|
125 |
<div class="wrap">
|
126 |
<div class='mlw_quiz_options'>
|
127 |
<h2>Quiz Results<a id="opener" href="">(?)</a></h2>
|
128 |
+
<div id="tabs">
|
129 |
+
<ul>
|
130 |
+
<li><a href="#tabs-1">Quiz Results</a></li>
|
131 |
+
<li><a href="#tabs-2">Quiz Tools</a></li>
|
132 |
+
</ul>
|
133 |
+
<div id="tabs-1">
|
134 |
+
<h2>Quiz Results From <?php echo $mlw_results_data->quiz_name; ?></h2>
|
135 |
+
<table>
|
136 |
+
<tr>
|
137 |
+
<td>Name Provided: </td>
|
138 |
+
<td><?php echo $mlw_results_data->name; ?></td>
|
139 |
+
</tr>
|
140 |
+
<tr>
|
141 |
+
<td>Business Provided: </td>
|
142 |
+
<td><?php echo $mlw_results_data->business; ?></td>
|
143 |
+
</tr>
|
144 |
+
<tr>
|
145 |
+
<td>Email Provided: </td>
|
146 |
+
<td><?php echo $mlw_results_data->email; ?></td>
|
147 |
+
</tr>
|
148 |
+
<tr>
|
149 |
+
<td>Phone Provided: </td>
|
150 |
+
<td><?php echo $mlw_results_data->phone; ?></td>
|
151 |
+
</tr>
|
152 |
+
<tr>
|
153 |
+
<td> </td>
|
154 |
+
</tr>
|
155 |
+
<tr>
|
156 |
+
<?php
|
157 |
+
if ($mlw_results_data->quiz_system == 0)
|
158 |
+
{
|
159 |
+
?>
|
160 |
+
<td>Score Received:</td>
|
161 |
+
<td><?php echo $mlw_results_data->correct."/".$mlw_results_data->total." or ".$mlw_results_data->correct_score."%"; ?></td>
|
162 |
+
<?php
|
163 |
+
}
|
164 |
+
else if ($mlw_results_data->quiz_system == 1)
|
165 |
+
{
|
166 |
+
?>
|
167 |
+
<td>Score Received:</td>
|
168 |
+
<td><?php echo $mlw_results_data->point_score." Points"; ?></td>
|
169 |
+
<?php
|
170 |
+
}
|
171 |
+
?>
|
172 |
+
</tr>
|
173 |
+
</table>
|
174 |
+
<br />
|
175 |
+
<br />
|
176 |
+
<h3>Answers Provided</h3>
|
177 |
+
<?php
|
178 |
+
$mlw_qmn_results_array = @unserialize($mlw_results_data->quiz_results);
|
179 |
+
if (!is_array($mlw_qmn_results_array)) {
|
180 |
+
echo htmlspecialchars_decode($mlw_results_data->quiz_results, ENT_QUOTES);
|
181 |
+
}
|
182 |
+
else
|
183 |
+
{
|
184 |
+
?>
|
185 |
+
This quiz was completed in <?php echo $mlw_qmn_results_array[0]; ?> seconds.<br />
|
186 |
+
<br />
|
187 |
+
The comments entered into the comment box (if enabled):<br />
|
188 |
+
<?php echo $mlw_qmn_results_array[2]; ?><br />
|
189 |
+
<br />
|
190 |
+
The answers were as follows:<br />
|
191 |
+
<br />
|
192 |
+
<?php
|
193 |
+
$mlw_qmn_answer_array = $mlw_qmn_results_array[1];
|
194 |
+
foreach( $mlw_qmn_answer_array as $mlw_each )
|
195 |
+
{
|
196 |
+
echo htmlspecialchars_decode($mlw_each[0], ENT_QUOTES)."<br />";
|
197 |
+
echo "Answer Provided: ".htmlspecialchars_decode($mlw_each[1], ENT_QUOTES)."<br />";
|
198 |
+
echo "Correct Answer: ".htmlspecialchars_decode($mlw_each[2], ENT_QUOTES)."<br />";
|
199 |
+
echo "Comments Entered: <br />".htmlspecialchars_decode($mlw_each[3], ENT_QUOTES)."<br />";
|
200 |
+
echo "<br /><br />";
|
201 |
+
}
|
202 |
+
?>
|
203 |
+
<?php
|
204 |
+
}
|
205 |
+
?>
|
206 |
+
</div>
|
207 |
+
<div id="tabs-2">
|
208 |
+
<form action="" method="post" name="create_certificate_form">
|
209 |
+
<input type="hidden" name="create_certificate" value="confirmation" />
|
210 |
+
<input type="submit" value="Create Certificate" />
|
211 |
+
</form>
|
212 |
+
<?php
|
213 |
+
if (isset($_POST["create_certificate"]) && $_POST["create_certificate"] == "confirmation")
|
214 |
+
{
|
215 |
+
echo "<a href='".$mlw_qmn_certificate_filename."' style='color: blue;'>Download Certificate Here</a><br />";
|
216 |
+
}
|
217 |
+
?>
|
218 |
+
</div>
|
219 |
+
|
220 |
+
|
221 |
<div id="dialog" title="Help">
|
222 |
<h3><b>Help</b></h3>
|
223 |
<p>This page shows the results from the taken quiz.</p>
|
225 |
<p>The bottom section shows the text from the comment box if enabled.</p>
|
226 |
</div>
|
227 |
</div>
|
228 |
+
<?php
|
229 |
+
if ( get_option('mlw_advert_shows') == 'true' )
|
230 |
+
{
|
231 |
+
?>
|
232 |
+
<style>
|
233 |
+
div.help_decide
|
234 |
+
{
|
235 |
+
display: block;
|
236 |
+
text-align:center;
|
237 |
+
letter-spacing: 1px;
|
238 |
+
margin: auto;
|
239 |
+
text-shadow: 0 1px 1px #000000;
|
240 |
+
background: #0d97d8;
|
241 |
+
border: 5px solid #106daa;
|
242 |
+
-moz-border-radius: 20px;
|
243 |
+
-webkit-border-radius: 20px;
|
244 |
+
-khtml-border-radius: 20px;
|
245 |
+
border-radius: 20px;
|
246 |
+
color: #FFFFFF;
|
247 |
+
}
|
248 |
+
div.help_decide a
|
249 |
+
{
|
250 |
+
color: yellow;
|
251 |
+
}
|
252 |
+
</style>
|
253 |
+
<div class="help_decide">
|
254 |
+
<p>Need support or features? Check out our Plugin Add-On Store for premium support, installation services, and more! Visit our <a href="http://mylocalwebstop.com/shop/">Plugin Add-On Store</a>!</p>
|
255 |
+
</div>
|
256 |
+
<?php
|
257 |
+
}
|
258 |
+
?>
|
259 |
+
</div>
|
260 |
</div>
|
261 |
|
262 |
<?php
|
includes/mlw_tools.php
CHANGED
@@ -70,7 +70,39 @@ function mlw_generate_quiz_tools(){
|
|
70 |
<?php do_meta_boxes('quiz_wpss','advanced',''); ?>
|
71 |
</div>
|
72 |
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
<div id="dialog" title="Help" style="display:none;">
|
76 |
<h3><b>Help</b></h3>
|
70 |
<?php do_meta_boxes('quiz_wpss','advanced',''); ?>
|
71 |
</div>
|
72 |
|
73 |
+
<div style="clear:both"></div>
|
74 |
+
|
75 |
+
<?php
|
76 |
+
if ( get_option('mlw_advert_shows') == 'true' )
|
77 |
+
{
|
78 |
+
?>
|
79 |
+
<style>
|
80 |
+
div.help_decide
|
81 |
+
{
|
82 |
+
display: block;
|
83 |
+
text-align:center;
|
84 |
+
letter-spacing: 1px;
|
85 |
+
margin: auto;
|
86 |
+
text-shadow: 0 1px 1px #000000;
|
87 |
+
background: #0d97d8;
|
88 |
+
border: 5px solid #106daa;
|
89 |
+
-moz-border-radius: 20px;
|
90 |
+
-webkit-border-radius: 20px;
|
91 |
+
-khtml-border-radius: 20px;
|
92 |
+
border-radius: 20px;
|
93 |
+
color: #FFFFFF;
|
94 |
+
}
|
95 |
+
div.help_decide a
|
96 |
+
{
|
97 |
+
color: yellow;
|
98 |
+
}
|
99 |
+
</style>
|
100 |
+
<div class="help_decide">
|
101 |
+
<p>Need support or features? Check out our Plugin Add-On Store for premium support, installation services, and more! Visit our <a href="http://mylocalwebstop.com/shop/">Plugin Add-On Store</a>!</p>
|
102 |
+
</div>
|
103 |
+
<?php
|
104 |
+
}
|
105 |
+
?>
|
106 |
|
107 |
<div id="dialog" title="Help" style="display:none;">
|
108 |
<h3><b>Help</b></h3>
|
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 = "
|
10 |
if ( ! get_option('mlw_quiz_master_version'))
|
11 |
{
|
12 |
add_option('mlw_quiz_master_version' , $data);
|
@@ -213,5 +213,9 @@ function mlw_quiz_update()
|
|
213 |
exit;
|
214 |
}
|
215 |
}
|
|
|
|
|
|
|
|
|
216 |
}
|
217 |
?>
|
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 = "2.0.1";
|
10 |
if ( ! get_option('mlw_quiz_master_version'))
|
11 |
{
|
12 |
add_option('mlw_quiz_master_version' , $data);
|
213 |
exit;
|
214 |
}
|
215 |
}
|
216 |
+
if ( ! get_option('mlw_advert_shows'))
|
217 |
+
{
|
218 |
+
add_option('mlw_advert_shows' , 'true');
|
219 |
+
}
|
220 |
}
|
221 |
?>
|
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:
|
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: 2.0.1
|
7 |
Author: Frank Corso
|
8 |
Author URI: http://www.mylocalwebstop.com/
|
9 |
Plugin URI: http://www.mylocalwebstop.com/
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: fpcorso
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RTGYAETX36ZQJ
|
4 |
Tags: quiz, test, score, survey, contact, form, email, answer, question
|
5 |
-
Requires at least: 3.
|
6 |
Tested up to: 3.8.1
|
7 |
-
Stable tag:
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.
|
@@ -55,7 +55,7 @@ Be sure to check out all of our plugins in our Master Suite. Visit our plugins p
|
|
55 |
== Installation ==
|
56 |
|
57 |
We now offer an installation service to assist you in this process. We will install any or all of our plugins and spend up to 2 hours with you for consultaion and training. Visit our website for details.
|
58 |
-
[My Local Webstop
|
59 |
|
60 |
**Or**
|
61 |
|
@@ -79,10 +79,10 @@ On each page, there is a "?" next to the page title. Clicking on it will bring u
|
|
79 |
There is a How-To page that has many useful how-to's to assist you on using the plugin. If you still have any trouble, feel free to use the widget on the quiz dashboard within the plugin to contact me and I will help you.
|
80 |
|
81 |
= I need a lot of help setting up my quiz, what can you do to help? =
|
82 |
-
We now offer a
|
83 |
|
84 |
= Do you offer any 1-on-1 training to assist me in using this plugin? =
|
85 |
-
We now offer an installation service that includes 1-on-1 training as well as a monthly support plan that includes 1-on-1 training. For details, visit our services page: [My Local Webstop Services](http://mylocalwebstop.com/
|
86 |
|
87 |
= I have an idea, how do I contact you? =
|
88 |
Feel free to use the widget on the quiz dashboard within the plugin or from the contact page at mylocalwebstop.com.
|
@@ -99,6 +99,12 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
= 1.9.6 (March 19, 2014) =
|
103 |
* Fixed Duplicate Quiz Bug
|
104 |
* Fixed Uneditable Question Bug
|
@@ -383,6 +389,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
|
|
383 |
|
384 |
== Upgrade Notice ==
|
385 |
|
|
|
|
|
|
|
386 |
= 1.9.2 =
|
387 |
Upgrade to have the ability to delete landing pages, allow users to go back when paginating questions, and have HTML in the correct answer info field!
|
388 |
|
2 |
Contributors: fpcorso
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RTGYAETX36ZQJ
|
4 |
Tags: quiz, test, score, survey, contact, form, email, answer, question
|
5 |
+
Requires at least: 3.5
|
6 |
Tested up to: 3.8.1
|
7 |
+
Stable tag: 2.0.1
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.
|
55 |
== Installation ==
|
56 |
|
57 |
We now offer an installation service to assist you in this process. We will install any or all of our plugins and spend up to 2 hours with you for consultaion and training. Visit our website for details.
|
58 |
+
[My Local Webstop Plugin Installation](http://mylocalwebstop.com/product/plugin-installation/)
|
59 |
|
60 |
**Or**
|
61 |
|
79 |
There is a How-To page that has many useful how-to's to assist you on using the plugin. If you still have any trouble, feel free to use the widget on the quiz dashboard within the plugin to contact me and I will help you.
|
80 |
|
81 |
= I need a lot of help setting up my quiz, what can you do to help? =
|
82 |
+
We now offer a premium support plan that offers priority response, access to a premium support-only forum, and includes 1-on-1 training! For details, visit our services page: [My Local Webstop Services](http://mylocalwebstop.com/product/plugin-premium-support/)
|
83 |
|
84 |
= Do you offer any 1-on-1 training to assist me in using this plugin? =
|
85 |
+
We now offer an installation service that includes 1-on-1 training as well as a monthly support plan that includes 1-on-1 training. For details, visit our services page: [My Local Webstop Services](http://mylocalwebstop.com/product/plugin-installation/)
|
86 |
|
87 |
= I have an idea, how do I contact you? =
|
88 |
Feel free to use the widget on the quiz dashboard within the plugin or from the contact page at mylocalwebstop.com.
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 2.0.1 (March 22, 2014) =
|
103 |
+
* Added Pagination On Quiz Results Page
|
104 |
+
* Redesigned Results Detail Page
|
105 |
+
* Fixed PHP Notice On Quizzes Page
|
106 |
+
* Allow HTML/CSS in Landing Pages
|
107 |
+
|
108 |
= 1.9.6 (March 19, 2014) =
|
109 |
* Fixed Duplicate Quiz Bug
|
110 |
* Fixed Uneditable Question Bug
|
389 |
|
390 |
== Upgrade Notice ==
|
391 |
|
392 |
+
= 2.0.1 =
|
393 |
+
Upgrade to fix minor bugs and enable pagination on results page.
|
394 |
+
|
395 |
= 1.9.2 =
|
396 |
Upgrade to have the ability to delete landing pages, allow users to go back when paginating questions, and have HTML in the correct answer info field!
|
397 |
|