Home › Forums › Legacy Support › Support queries › Setup issues › Retake Quiz button visible when student finishes
Tagged: retake quiz button
- This topic has 27 replies, 4 voices, and was last updated 5 years, 3 months ago by Ava.
-
AuthorPosts
-
November 30, 2018 at 6:45 pm #186788gabrielcapiSpectatorHi, is there an option to show the "Retake quiz button" if the student doesn't pass the quiz? something like here: image example or is it possible to show a message with something like "You don't pass the quiz, please retake it here. (retake quiz button)" Cause actually the only way to see it is clicking in the show results. Thanks for your support.November 30, 2018 at 7:56 pm #186793trevor705SpectatorI am also very interested inDecember 1, 2018 at 11:04 am #186870Anshuman SahuKeymasteryes this is possible refer : https://wplms.io/support/knowledge-base/disable-quiz-retakes-when-user-gets-marks-more-than-passing-score/December 4, 2018 at 5:40 pm #187384gabrielcapiSpectatorHello Alex, All right, I set the 3 steps but it's not working. I put the code in wplms-customizer.phpDecember 5, 2018 at 12:58 pm #187543Anshuman SahuKeymasterYup I noticed it now the tip has been outdated .We will be updating this tip .Please provide some time .Ping us back for reminder.December 5, 2018 at 4:29 pm #187580gabrielcapiSpectatorOK Alex, thank you.December 6, 2018 at 12:04 pm #187717Anshuman SahuKeymasterplease try adding this given code in your wplms-customizer.php file in wplms customizer plugin : add_filter('bp_course_fetch_user_quiz_retake_count',function ($retake_count,$quiz_id,$user_id){ $passing_score = get_post_meta($quiz_id,'vibe_quiz_passing_score',true); if(isset($passing_score) && is_numeric($passing_score)){ $user_id = get_current_user_id(); $score = get_post_meta($quiz_id,$user_id,true); if($score > $passing_score){ return get_post_meta($quiz_id,'vibe_quiz_retakes',true); } } return $retake_count; },10,3);December 6, 2018 at 6:36 pm #187786gabrielcapiSpectatorThanks Alex, I added the code but I don't see any change, just 2 warning in the quiz results: Warning: Missing argument 2 for {closure}(), called in /home/global74/public_html/cursos/wp-includes/class-wp-hook.php on line 288 and defined in /home/global74/public_html/cursos/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 95 Warning: Missing argument 3 for {closure}(), called in /home/global74/public_html/cursos/wp-includes/class-wp-hook.php on line 288 and defined in /home/global74/public_html/cursos/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 95December 7, 2018 at 1:42 pm #187932Anshuman SahuKeymasterPlease remove the previously given code and add this one : add_filter('bp_course_fetch_user_quiz_retake_count',function ($retake_count,$quiz_id,$user_id){ $passing_score = get_post_meta($quiz_id,'vibe_quiz_passing_score',true); if(isset($passing_score) && is_numeric($passing_score)){ $user_id = get_current_user_id(); $score = get_post_meta($quiz_id,$user_id,true); if($score > $passing_score){ return get_post_meta($quiz_id,'vibe_quiz_retakes',true); } } return $retake_count; },10,3);December 7, 2018 at 8:01 pm #187967gabrielcapiSpectatorHello Alex, I tried with that code there is any warning but I don't see the retake quiz button.December 8, 2018 at 8:01 am #188011Anshuman SahuKeymasterPlease set the retakes in quiz to 100 and then check this up .December 10, 2018 at 4:28 pm #188332gabrielcapiSpectatorI set the retakes in all the quizzes in 100, I still not seeing the retake quiz button.December 11, 2018 at 8:37 am #188434Anshuman SahuKeymastergetting this error trying to login and check : http://prntscr.com/ltfavc please share your site url , admin credentials and valid FTP credentials in private reply to check this issue at your end .December 11, 2018 at 4:34 pm #188491gabrielcapiSpectatorThis reply has been marked as private.December 12, 2018 at 8:38 am #188582Anshuman SahuKeymasterWell I could login via ftp but could not find your site folder ? CAn you please tell after logging with ftp which folder I should look for ?
-
AuthorPosts
- The topic ‘Retake Quiz button visible when student finishes’ is closed to new replies.