Home › Forums › Legacy Support › Support queries › Setup issues › Cannot hide correct answers
- This topic has 13 replies, 3 voices, and was last updated 5 years, 7 months ago by Anshuman Sahu.
Viewing 14 posts - 1 through 14 (of 14 total)
-
AuthorPosts
-
September 14, 2017 at 9:04 am #128986bertus84ParticipantHi. I am trying to hide the correct answers when someone clicks on "Check Result" after a quiz. The course is set up to only allow someone to access the next unit if they pass the quiz, but if they can just see the correct answers after one attempt, then they can just copy the answers for the second attempt which defeats the purpose. Please assist. Thank youSeptember 14, 2017 at 12:23 pm #128996bertus84ParticipantIn summary if I can just hide the answers and explanations completely but still allow the user to retake the quiz it would also work. Thank you.September 14, 2017 at 1:56 pm #129034Anshuman SahuKeymasteryes this option is available in wplms . Please goto wp-admin -> lms-> settings -> quiz settings -> " Hide correct answers " .September 14, 2017 at 1:59 pm #129035bertus84ParticipantHi Alex. Thank you, but I already tried this option, it is switched on, but the users can still see the correct answers and explanations when they click on "Check Results" after a quiz. How do I fix this?September 15, 2017 at 5:32 am #129075Anshuman SahuKeymasterOk 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 quiz . If it still does not works then please share your site url and admin credentials to check this issue at your end .September 15, 2017 at 5:45 am #129078bertus84ParticipantThis reply has been marked as private.September 16, 2017 at 9:48 am #129167Anshuman SahuKeymasterThis reply has been marked as private.September 16, 2017 at 10:21 pm #129195bertus84ParticipantThis reply has been marked as private.September 16, 2017 at 11:33 pm #129196bertus84ParticipantThis reply has been marked as private.September 18, 2017 at 6:04 am #129251Anshuman SahuKeymasterWell im sorry that is not available by default . 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 18, 2017 at 11:25 pm #129337bertus84ParticipantHi Alex Thank you so much. I am just not sure where to find the <span style="color: #4b4d4d; font-family: Lato; font-size: 14px;">wplms-customizer.php -file. In which folder could I get it?</span> ThanksSeptember 19, 2017 at 10:43 am #129404Anshuman SahuKeymasterPlease check : https://wplms.io/support/knowledge-base/how-to-use-coding-tips/ just copy the code from here and then goto wp-admin -> plugins -> editor -> select wplms customizer plugin to edit .Add the code there . If you are not able to do this then I will add the code for you .Just give me you ftp credentials .September 7, 2018 at 1:53 am #175226phietzSpectatorHello, After try your code, I get error in my WPLMS : http://elearningfisikasma1.pppkpetra.or.id When i press one of my course http://elearningfisikasma1.pppkpetra.or.id/course-status/, it says "This <span style="overflow-wrap: break-word;">elearningfisikasma1.pppkpetra.or.id</span> page can’t be found". Can u help me ?September 8, 2018 at 6:27 am #175430Anshuman SahuKeymasterPlease try to re-save the permalinks . IF still issue appears then please create your own topic sharing your site url , admin credentials and a valid ftp credentials in a private reply there with us to check the issue at your end .
-
AuthorPosts
Viewing 14 posts - 1 through 14 (of 14 total)
- The topic ‘Cannot hide correct answers’ is closed to new replies.