diff --git a/js/qsm-admin.js b/js/qsm-admin.js index f9530c038..24b546fad 100644 --- a/js/qsm-admin.js +++ b/js/qsm-admin.js @@ -3132,8 +3132,6 @@ var import_button; jQuery(document).trigger('qsm_question_type_change_after', [question_val]); }); - - //Add new category $(document).on('click', '#qsm-category-add-toggle', function () { if ($('#qsm-category-add').is(":visible")) { diff --git a/js/qsm-quiz.js b/js/qsm-quiz.js index b448452b3..50af5e8b2 100644 --- a/js/qsm-quiz.js +++ b/js/qsm-quiz.js @@ -867,9 +867,7 @@ function qmnFormSubmit(quiz_form_id) { fd.append("currentuserTimeZone", Intl.DateTimeFormat().resolvedOptions().timeZone); qsmEndTimeTakenTimer(quiz_id); - if (qmn_quiz_data[quiz_id].hasOwnProperty('advanced_timer') && qmn_quiz_data[quiz_id].advanced_timer.hasOwnProperty('show_stop_timer') ) { - QSMPageTimer.endPageTimer(quiz_id); - } + if (qmn_quiz_data[quiz_id].hasOwnProperty('timer_limit')) { QSM.endTimer(quiz_id); } diff --git a/php/admin/admin-results-page.php b/php/admin/admin-results-page.php index dbd117d61..4d9fdf8a4 100644 --- a/php/admin/admin-results-page.php +++ b/php/admin/admin-results-page.php @@ -571,7 +571,7 @@ function qsm_results_overview_tab_content() { /> - + /> diff --git a/php/admin/options-page-questions-tab.php b/php/admin/options-page-questions-tab.php index 3a90549d0..9cdd5f2d3 100644 --- a/php/admin/options-page-questions-tab.php +++ b/php/admin/options-page-questions-tab.php @@ -173,13 +173,22 @@ function qsm_options_questions_tab_content() { $target_link = sprintf( ''.__('Error! ', 'quiz-master-next').''.$target_text.'%s', esc_url( $item_url ), __( 'Click here to renew', 'quiz-master-next' ) ); echo wp_kses_post($target_link); } - if ( isset($settings_data['last_validate']) && "invalid" == $settings_data['last_validate'] ) { + if ( ( isset($settings_data['last_validate']) && "invalid" == $settings_data['last_validate'] ) || empty($settings_data) ) { $read_only = 'readonly'; $disable_class = 'qsm-disabled-td'; $background = "#F0F0F0"; - $target_text = __(' Your Advanced Timer Settings are not saved successfully. Validate license to save the settings. ', 'quiz-master-next'); - $target_link = sprintf( ''.__('Error! ', 'quiz-master-next').''.$target_text.'' ); - echo wp_kses_post($target_link); + $admin_page_url = esc_url(admin_url('admin.php?page=qmn_addons&tab=advanced-timer')); + $error_message = sprintf( + ' + %s %s %s %s + ', + __('Error! ', 'quiz-master-next'), + __('Your Advanced Timer Settings are not saved successfully. ', 'quiz-master-next'), + $admin_page_url, + __('Validate license', 'quiz-master-next'), + __('to save the settings. ', 'quiz-master-next') + ); + echo wp_kses_post($error_message); } $advancetimer = 'qsm-advanced-timer/qsm-advanced-timer.php'; $plugin_data = get_plugin_data(WP_PLUGIN_DIR . '/'. $advancetimer); diff --git a/php/question-types/qsm-question-type-dropdown.php b/php/question-types/qsm-question-type-dropdown.php index 49b9166c9..603381bfb 100644 --- a/php/question-types/qsm-question-type-dropdown.php +++ b/php/question-types/qsm-question-type-dropdown.php @@ -27,24 +27,24 @@ function qmn_drop_down_display( $id, $question, $answers ) { $show = apply_filters( 'qsm_check_show_answer_drop_down', $show, $id, $question, $answers ); if ( $show ) { ?> - - - $answer ) { - $mlw_answer_total++; - if ( '' !== $answer[0] ) { - $answer_text = trim( htmlspecialchars_decode( $answer[0], ENT_QUOTES ) ); - $answer_text = $mlwQuizMasterNext->pluginHelper->qsm_language_support( $answer_text, "answer-" . $id . "-" . $answer_index, "QSM Answers" ); - ?> - - " name="question"> + + $answer ) { + $mlw_answer_total++; + if ( '' !== $answer[0] ) { + $answer_text = trim( htmlspecialchars_decode( $answer[0], ENT_QUOTES ) ); + $answer_text = $mlwQuizMasterNext->pluginHelper->qsm_language_support( $answer_text, "answer-" . $id . "-" . $answer_index, "QSM Answers" ); + ?> + + - + ?> + get_user_answer(); $correct_text_array = $current_question->get_correct_answer(); $return_array['user_text'] = ! empty( $user_text_array ) ? implode( ', ', $user_text_array ) : '' ; diff --git a/readme.txt b/readme.txt index c6c85a51e..47488decb 100644 --- a/readme.txt +++ b/readme.txt @@ -163,12 +163,13 @@ This is usually a theme conflict. You can [checkout out our common conflict solu 18. Database == Changelog == -= 8.2.0 (December 04, 2023) = += 8.2.0 (December 14, 2023) = +* Feature: Added option to change deselect answer text * Feature: Added option to duplicate quiz theme settings * Bug: Fixed issue related to limiting random questions by category * Bug: Fixed issue with images and video tags in the correct answer info * Enhacements: Improved login form validations -* Enhacements: Reduce number of cookies +* Enhacements: Improved performance by optimizing cookies = 8.1.19 (November 08, 2023) = * Feature: Added an option to display result URLs on the admin result page