Version Description
(September 02, 2020) = * Bug: Fixed problem with questions on front end while using random questions option. * Bug: Fixed submit button overlapping issue with progress bar for auto pagination. * Bug: Fixed the UI of meta boxes on Dashboard Page, Tools Page and Help Page.
Download this release
Release Info
Developer | expresstech |
Plugin | Quiz And Survey Master (Formerly Quiz Master Next) |
Version | 7.1.1 |
Comparing to | |
See all releases |
Code changes from version 7.1.0 to 7.1.1
- css/admin-dashboard.css +7 -0
- css/common.css +2 -1
- css/qsm-admin.css +4 -1
- js/qsm-quiz.js +9 -1
- mlw_quizmaster2.php +3 -3
- php/admin/admin-results-page.php +1 -1
- php/admin/help-page.php +1 -1
- php/admin/tools-page.php +7 -2
- php/classes/class-qmn-quiz-manager.php +7 -2
- php/template-variables.php +1 -1
- readme.txt +7 -2
css/admin-dashboard.css
CHANGED
@@ -423,6 +423,13 @@
|
|
423 |
div#quiz_settings_wrapper #timer_limit {
|
424 |
width: 100px;
|
425 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
@media screen and (min-width: 1200px){
|
427 |
#quiz_settings_wrapper tr td fieldset > br{
|
428 |
display: none;
|
423 |
div#quiz_settings_wrapper #timer_limit {
|
424 |
width: 100px;
|
425 |
}
|
426 |
+
.postbox .handlediv{
|
427 |
+
position: absolute;
|
428 |
+
right: 0;
|
429 |
+
}
|
430 |
+
h2.hndle.ui-sortable-handle {
|
431 |
+
border-bottom: 1px solid #ccd0d4;
|
432 |
+
}
|
433 |
@media screen and (min-width: 1200px){
|
434 |
#quiz_settings_wrapper tr td fieldset > br{
|
435 |
display: none;
|
css/common.css
CHANGED
@@ -130,7 +130,7 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
130 |
}
|
131 |
.quiz_section .mlw_qmn_new_question{
|
132 |
font-weight: bold;
|
133 |
-
display: inline
|
134 |
width: auto;
|
135 |
margin-bottom: 10px;
|
136 |
}
|
@@ -229,6 +229,7 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
229 |
padding: 0;
|
230 |
position: absolute;
|
231 |
z-index: 1;
|
|
|
232 |
}
|
233 |
.qmn_quiz_container.qsm_auto_pagination_enabled .quiz_section:not(.quiz_begin) {
|
234 |
display: none;
|
130 |
}
|
131 |
.quiz_section .mlw_qmn_new_question{
|
132 |
font-weight: bold;
|
133 |
+
display: inline;
|
134 |
width: auto;
|
135 |
margin-bottom: 10px;
|
136 |
}
|
229 |
padding: 0;
|
230 |
position: absolute;
|
231 |
z-index: 1;
|
232 |
+
margin-bottom: 15px;
|
233 |
}
|
234 |
.qmn_quiz_container.qsm_auto_pagination_enabled .quiz_section:not(.quiz_begin) {
|
235 |
display: none;
|
css/qsm-admin.css
CHANGED
@@ -423,7 +423,10 @@ span.qsm-quiz-name {
|
|
423 |
width: 15%;
|
424 |
float: right;
|
425 |
}
|
426 |
-
|
|
|
|
|
|
|
427 |
@media screen and (min-width: 1200px) {
|
428 |
|
429 |
.qsm-quiz-page-wrapper-with-ads {
|
423 |
width: 15%;
|
424 |
float: right;
|
425 |
}
|
426 |
+
.qsm-help-page .handle-order-higher ,
|
427 |
+
.qsm-help-page .handle-order-lower {
|
428 |
+
display: none;
|
429 |
+
}
|
430 |
@media screen and (min-width: 1200px) {
|
431 |
|
432 |
.qsm-quiz-page-wrapper-with-ads {
|
js/qsm-quiz.js
CHANGED
@@ -907,7 +907,14 @@ function qmnNextSlide( pagination, go_to_top, quiz_form_id ) {
|
|
907 |
$container.find(".mlw_qmn_quiz_link.mlw_next").show();
|
908 |
$container.find(".g-recaptcha").hide();
|
909 |
}
|
910 |
-
jQuery(quiz_form_id + " .quiz_section.slide" + slide_number).show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
911 |
if (1 == jQuery(quiz_form_id + " .quiz_section.slide" + slide_number).data('prevbtn')) {
|
912 |
$container.find(".mlw_qmn_quiz_link.mlw_previous").hide();
|
913 |
}
|
@@ -1010,6 +1017,7 @@ function qmnPrevSlide( pagination, go_to_top, quiz_form_id ) {
|
|
1010 |
}
|
1011 |
}
|
1012 |
jQuery( quiz_form_id ).closest( '.qmn_quiz_container' ).find('.current_page_hidden').val( page_number );
|
|
|
1013 |
qmnInitProgressbarOnClick(quiz_id, page_number, total_page_number);
|
1014 |
}
|
1015 |
|
907 |
$container.find(".mlw_qmn_quiz_link.mlw_next").show();
|
908 |
$container.find(".g-recaptcha").hide();
|
909 |
}
|
910 |
+
jQuery(quiz_form_id + " .quiz_section.slide" + slide_number).show();
|
911 |
+
if( jQuery(quiz_form_id + " .quiz_section.quiz_end").is(':visible') ){
|
912 |
+
var button_width = jQuery( quiz_form_id + ' .qsm-submit-btn' ).width();
|
913 |
+
var progress_width = jQuery( quiz_form_id ).parent().find('.qmn_pagination').width();
|
914 |
+
jQuery( quiz_form_id ).parent().find('.qmn_pagination').css('width', progress_width - button_width - 40 );
|
915 |
+
}else{
|
916 |
+
jQuery( quiz_form_id ).parent().find('.qmn_pagination').css('width', '100%' );
|
917 |
+
}
|
918 |
if (1 == jQuery(quiz_form_id + " .quiz_section.slide" + slide_number).data('prevbtn')) {
|
919 |
$container.find(".mlw_qmn_quiz_link.mlw_previous").hide();
|
920 |
}
|
1017 |
}
|
1018 |
}
|
1019 |
jQuery( quiz_form_id ).closest( '.qmn_quiz_container' ).find('.current_page_hidden').val( page_number );
|
1020 |
+
jQuery( quiz_form_id ).parent().find('.qmn_pagination').css('width', '100%' );
|
1021 |
qmnInitProgressbarOnClick(quiz_id, page_number, total_page_number);
|
1022 |
}
|
1023 |
|
mlw_quizmaster2.php
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Quiz And Survey Master
|
4 |
* Description: Easily and quickly add quizzes and surveys to your website.
|
5 |
-
* Version: 7.1.
|
6 |
* Author: ExpressTech
|
7 |
* Author URI: https://quizandsurveymaster.com/
|
8 |
* Plugin URI: https://expresstech.io/
|
9 |
* Text Domain: quiz-master-next
|
10 |
*
|
11 |
* @author QSM Team
|
12 |
-
* @version 7.1.
|
13 |
* @package QSM
|
14 |
*/
|
15 |
|
@@ -37,7 +37,7 @@ class MLWQuizMasterNext {
|
|
37 |
* @var string
|
38 |
* @since 4.0.0
|
39 |
*/
|
40 |
-
public $version = '7.1.
|
41 |
|
42 |
/**
|
43 |
* QSM Alert Manager Object
|
2 |
/**
|
3 |
* Plugin Name: Quiz And Survey Master
|
4 |
* Description: Easily and quickly add quizzes and surveys to your website.
|
5 |
+
* Version: 7.1.1
|
6 |
* Author: ExpressTech
|
7 |
* Author URI: https://quizandsurveymaster.com/
|
8 |
* Plugin URI: https://expresstech.io/
|
9 |
* Text Domain: quiz-master-next
|
10 |
*
|
11 |
* @author QSM Team
|
12 |
+
* @version 7.1.1
|
13 |
* @package QSM
|
14 |
*/
|
15 |
|
37 |
* @var string
|
38 |
* @since 4.0.0
|
39 |
*/
|
40 |
+
public $version = '7.1.1';
|
41 |
|
42 |
/**
|
43 |
* QSM Alert Manager Object
|
php/admin/admin-results-page.php
CHANGED
@@ -372,7 +372,7 @@ function qsm_results_overview_tab_content() {
|
|
372 |
$quotes_list .= "<td><span style='font-size:16px;'>" . $mlw_quiz_info->point_score . " Points</span></td>";
|
373 |
}
|
374 |
if ( $mlw_quiz_info->quiz_system == 3 ) {
|
375 |
-
$quotes_list .= "<td><span style='font-size:16px;'>" . $mlw_quiz_info->correct ." out of ".$
|
376 |
}
|
377 |
}
|
378 |
$quotes_list .= "<td><span style='font-size:16px;'>" . $mlw_complete_time ."</span></td>";
|
372 |
$quotes_list .= "<td><span style='font-size:16px;'>" . $mlw_quiz_info->point_score . " Points</span></td>";
|
373 |
}
|
374 |
if ( $mlw_quiz_info->quiz_system == 3 ) {
|
375 |
+
$quotes_list .= "<td><span style='font-size:16px;'>" . $mlw_quiz_info->correct ." out of ".$out_of_q." or ".$mlw_quiz_info->correct_score."%</span><br/><span style='font-size:16px;'>" . $mlw_quiz_info->point_score . " Points</span></td>";
|
376 |
}
|
377 |
}
|
378 |
$quotes_list .= "<td><span style='font-size:16px;'>" . $mlw_complete_time ."</span></td>";
|
php/admin/help-page.php
CHANGED
@@ -26,7 +26,7 @@ function qsm_generate_help_page() {
|
|
26 |
add_meta_box( 'wpss_mrts', __( 'Need Help?', 'quiz-master-next' ), 'qsm_documentation_meta_box_content', 'meta_box_help' );
|
27 |
add_meta_box( 'wpss_mrts', __( 'System Info', 'quiz-master-next' ), 'qsm_system_meta_box_content', 'meta_box_sys_info' );
|
28 |
?>
|
29 |
-
<div class="wrap">
|
30 |
<h2><?php esc_html_e( 'Help Page', 'quiz-master-next' ); ?></h2>
|
31 |
<?php qsm_show_adverts(); ?>
|
32 |
|
26 |
add_meta_box( 'wpss_mrts', __( 'Need Help?', 'quiz-master-next' ), 'qsm_documentation_meta_box_content', 'meta_box_help' );
|
27 |
add_meta_box( 'wpss_mrts', __( 'System Info', 'quiz-master-next' ), 'qsm_system_meta_box_content', 'meta_box_sys_info' );
|
28 |
?>
|
29 |
+
<div class="wrap qsm-help-page">
|
30 |
<h2><?php esc_html_e( 'Help Page', 'quiz-master-next' ); ?></h2>
|
31 |
<?php qsm_show_adverts(); ?>
|
32 |
|
php/admin/tools-page.php
CHANGED
@@ -25,10 +25,15 @@ function qsm_generate_quiz_tools() {
|
|
25 |
#qsm_restore_box .hndle,
|
26 |
#qsm_audit_box .hndle{
|
27 |
padding-left: 15px;
|
28 |
-
padding-bottom:
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
</style>
|
31 |
-
<div class="wrap">
|
32 |
<h2><?php esc_html_e('Tools', 'quiz-master-next'); ?></h2>
|
33 |
|
34 |
<div style="float:left; width:100%;" class="inner-sidebar1">
|
25 |
#qsm_restore_box .hndle,
|
26 |
#qsm_audit_box .hndle{
|
27 |
padding-left: 15px;
|
28 |
+
padding-bottom: 0;
|
29 |
+
}
|
30 |
+
.qsm-tools-page .handle-order-higher,
|
31 |
+
.qsm-tools-page .handle-order-lower,
|
32 |
+
.qsm-tools-page .handle-actions{
|
33 |
+
display: none;
|
34 |
}
|
35 |
</style>
|
36 |
+
<div class="wrap qsm-tools-page">
|
37 |
<h2><?php esc_html_e('Tools', 'quiz-master-next'); ?></h2>
|
38 |
|
39 |
<div style="float:left; width:100%;" class="inner-sidebar1">
|
php/classes/class-qmn-quiz-manager.php
CHANGED
@@ -876,7 +876,7 @@ class QMNQuizManager {
|
|
876 |
$question_id_list .= $mlw_question->question_id . "Q";
|
877 |
$mlw_qmn_section_count = $mlw_qmn_section_count + 1;
|
878 |
$style = '';
|
879 |
-
if( $mlw_qmn_section_count != 1 ){
|
880 |
$style = "style='display: none;'";
|
881 |
}
|
882 |
$question_display .= "<div class='quiz_section {$animation_effect} question-section-id-{$mlw_question->question_id} slide{$mlw_qmn_section_count}' {$style}>";
|
@@ -952,7 +952,12 @@ class QMNQuizManager {
|
|
952 |
$section_display = '';
|
953 |
$section_display .= '<br />';
|
954 |
$mlw_qmn_section_count = $mlw_qmn_section_count + 1;
|
955 |
-
$
|
|
|
|
|
|
|
|
|
|
|
956 |
if (!empty($qmn_quiz_options->message_end_template)) {
|
957 |
$message_end = wpautop(htmlspecialchars_decode($qmn_quiz_options->message_end_template, ENT_QUOTES));
|
958 |
$message_end = apply_filters('mlw_qmn_template_variable_quiz_page', $message_end, $qmn_array_for_variables);
|
876 |
$question_id_list .= $mlw_question->question_id . "Q";
|
877 |
$mlw_qmn_section_count = $mlw_qmn_section_count + 1;
|
878 |
$style = '';
|
879 |
+
if( $mlw_qmn_section_count != 1 && $pagination_optoin > 0 ){
|
880 |
$style = "style='display: none;'";
|
881 |
}
|
882 |
$question_display .= "<div class='quiz_section {$animation_effect} question-section-id-{$mlw_question->question_id} slide{$mlw_qmn_section_count}' {$style}>";
|
952 |
$section_display = '';
|
953 |
$section_display .= '<br />';
|
954 |
$mlw_qmn_section_count = $mlw_qmn_section_count + 1;
|
955 |
+
$pagination_optoin = $qmn_quiz_options->pagination;
|
956 |
+
$style = '';
|
957 |
+
if( $pagination_optoin > 0 ){
|
958 |
+
$style = "style='display: none;'";
|
959 |
+
}
|
960 |
+
$section_display .= "<div class='quiz_section slide$mlw_qmn_section_count quiz_end' {$style}>";
|
961 |
if (!empty($qmn_quiz_options->message_end_template)) {
|
962 |
$message_end = wpautop(htmlspecialchars_decode($qmn_quiz_options->message_end_template, ENT_QUOTES));
|
963 |
$message_end = apply_filters('mlw_qmn_template_variable_quiz_page', $message_end, $qmn_array_for_variables);
|
php/template-variables.php
CHANGED
@@ -413,7 +413,7 @@ function mlw_qmn_variable_question_answers( $content, $mlw_quiz_array ) {
|
|
413 |
$logic_rules = $mlwQuizMasterNext->pluginHelper->get_quiz_setting( 'logic_rules' );
|
414 |
$logic_rules = unserialize( $logic_rules );
|
415 |
$hidden_questions = isset($mlw_quiz_array['hidden_questions']) ? $mlw_quiz_array['hidden_questions'] : array();
|
416 |
-
if(
|
417 |
$hidden_questions = isset($mlw_quiz_array['results']['hidden_questions']) ? $mlw_quiz_array['results']['hidden_questions'] : array();
|
418 |
}
|
419 |
|
413 |
$logic_rules = $mlwQuizMasterNext->pluginHelper->get_quiz_setting( 'logic_rules' );
|
414 |
$logic_rules = unserialize( $logic_rules );
|
415 |
$hidden_questions = isset($mlw_quiz_array['hidden_questions']) ? $mlw_quiz_array['hidden_questions'] : array();
|
416 |
+
if(empty($hidden_questions)) {
|
417 |
$hidden_questions = isset($mlw_quiz_array['results']['hidden_questions']) ? $mlw_quiz_array['results']['hidden_questions'] : array();
|
418 |
}
|
419 |
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: quizsurvey,expresstech
|
3 |
Tags: quiz, survey, lead, test, score, exam, questionnaire, question,wordpress quiz plugin
|
4 |
Requires at least: 4.9
|
5 |
-
Tested up to: 5.5
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 7.1.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -135,6 +135,11 @@ This is usually a theme conflict. You can [checkout out our common conflict solu
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
|
|
|
|
138 |
= 7.1.0 (August 31, 2020) =
|
139 |
* Enhancement: Added a new variable %USER_ANSWERS_DEFAULT% to improve default result page. All new quizzes will have this variable by default.
|
140 |
* Enhancement: Created new %AMOUNT_INCORRECT% and %AMOUNT_ATTEMPTED% template variable to enhance the quiz result page.
|
2 |
Contributors: quizsurvey,expresstech
|
3 |
Tags: quiz, survey, lead, test, score, exam, questionnaire, question,wordpress quiz plugin
|
4 |
Requires at least: 4.9
|
5 |
+
Tested up to: 5.5.1
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 7.1.1
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 7.1.1 (September 02, 2020) =
|
139 |
+
* Bug: Fixed problem with questions on front end while using random questions option.
|
140 |
+
* Bug: Fixed submit button overlapping issue with progress bar for auto pagination.
|
141 |
+
* Bug: Fixed the UI of meta boxes on Dashboard Page, Tools Page and Help Page.
|
142 |
+
|
143 |
= 7.1.0 (August 31, 2020) =
|
144 |
* Enhancement: Added a new variable %USER_ANSWERS_DEFAULT% to improve default result page. All new quizzes will have this variable by default.
|
145 |
* Enhancement: Created new %AMOUNT_INCORRECT% and %AMOUNT_ATTEMPTED% template variable to enhance the quiz result page.
|