Home › Forums › Legacy Support › Support queries › Setup issues › Don’t show results if test is not passed
- This topic has 20 replies, 3 voices, and was last updated 4 years, 7 months ago by logan.
-
AuthorPosts
-
September 13, 2019 at 3:53 pm #225873dianaw84SpectatorHi, I've a doubt: I would like to show the results if the student passes the test, I set this option, but I noticed they are showed also if the test is not passed (and the student can retake the test). How can I disable it in this case? Thank you!September 14, 2019 at 5:37 am #225898loganMemberHello,
Please go to wp-admin -> lms-> settings -> quiz settings -> " Hide correct answers " .
please also make sure that the quiz should be connected to the course in quiz settings.
refer: http://prntscr.com/glcz72
and then try retaking the quiz .Also, note here once the course is finished for the user, she can see the correct answers.
--- if you want to hide it forever then,to hide the answer lists please follow these steps .
1. Add this code in your wplms-customizer.php file in wplms customizer plugin :
add_filter('wplms_hide_quiz_result_details',function($flag,$quiz_id){
return 1;
},10,2);
2. Add this script in your wp-admin -> wplms -> footer -> google anaylitics script :<script>
jQuery(document).ready(function(){
jQuery('body').find('.quiz_results_popup').attr('href',(jQuery('.quiz_results_popup').attr('href')+'&force'));
jQuery('.unit_content').on('unit_traverse',function(){
jQuery('body').find('.quiz_results_popup').attr('href',(jQuery('.quiz_results_popup').attr('href')+'&force'));
});
});
</script>
September 16, 2019 at 2:17 pm #226181dianaw84SpectatorHi Logan, thank you but I've yet set "Hide correct answers" but when test is finished, it shows results also if student didn't pass the quiz and I checked the quizes, they are connected to the course. I don't want to hide results forever, only I want to show them only for who has passed quiz.September 17, 2019 at 1:41 pm #226389dianaw84SpectatorPlease, help me I need to finish this site as long as possible...I've only the last problems to solve...thank youSeptember 17, 2019 at 1:50 pm #226392dianaw84SpectatorAnd I noticed that the button "Retake test" is inside the results...but if I don't want to show result if test is not passed how is possible to display it? Let me know if you need credentials...thank you againSeptember 17, 2019 at 1:57 pm #226393Anshuman SahuKeymasterplease try adding this given code in your wplms-customizer.php file in wplms customizer plugin : add_filter('wplms_hide_quiz_result_details',function($flag,$quiz_id){ $user_id = get_current_user_id(); $passing_marks= get_post_meta($quiz_id,'vibe_quiz_passing_score',true); $user_marks= get_post_meta($quiz_id,$user_id,true); if(!empty($passing_marks) && $user_marks < $passing_marks){ $flag = 1; } return $flag; },999999,2);September 17, 2019 at 2:53 pm #226408dianaw84SpectatorThank you very much, but after past it on wplms-customizer.php, it give me white screen.September 17, 2019 at 3:03 pm #226410dianaw84SpectatorThis reply has been marked as private.September 18, 2019 at 12:24 pm #226581loganMemberThis reply has been marked as private.September 18, 2019 at 1:48 pm #226601dianaw84SpectatorThank you for your help, but I tried to fail a quiz now, but the results are shown again. Check the link: http://somup.com/cqQFIEepq3 I know there is a new version of WPLMS, but yesterday I saw on my Envato profile to download it but there is the version 3.9.5September 19, 2019 at 8:57 am #226732dianaw84SpectatorSorry Logan if I bother, I'm thinking on a thing: LMS option "Hide correct answers Correct answers in quizzes are not displayed unless student has finished/submitted the course." I read it with more attention, it is referred to not show the correct answer, but not about results. If test is not passed, LMS shows only the results and which answers are correct or not, but not the correct answers where the answers are wrong. So the idea is not wrong and it's not a bug. So please, for now don't do anything, I have to ask to my customers if they don't want at all to show results or if they are fine as it is. I'll let you know their answer tomorrow. For now, thank you and all the staff very much for the availability, for this and for all the other problems you have solved in the past. I am completing the site and I hope to finish everything soon and not to disturb you so much anymore.September 20, 2019 at 1:14 pm #226996loganMemberHaha thank you so much for understanding our burden but trust me you did not irritate me. it's our job and serve the people. you could ask questions as many as you want. not a big deal dear. we are pleased to help you :) greetings from India :)September 20, 2019 at 1:34 pm #227009dianaw84SpectatorThank you very very much, you are so kind! I'm happy to know it. Yesterday I asked my customers about this, they confirmed me they don't want at all to show results if quiz is not passed (only the score, ad es. 4/30), while if quiz is passed is ok. Do you think it could be possible to do? Thank you again!September 21, 2019 at 7:24 am #227092Anshuman SahuKeymasterOk found the issue .Actually there is some mistake in vibe course module plugin itself . Fixed it at your end same will be available in next update of vibe course module plugin .September 24, 2019 at 7:06 am #227442dianaw84SpectatorThank you very much Alex! Today I'll test it and I'll let you know. -
AuthorPosts
- The topic ‘Don’t show results if test is not passed’ is closed to new replies.