Home › Forums › Legacy Support › Support queries › Other issues › Disable Quizes after finished course
Tagged: disable, finished course, quizes
- This topic has 15 replies, 4 voices, and was last updated 5 years, 8 months ago by Anshuman Sahu.
-
AuthorPosts
-
October 25, 2018 at 8:48 pm #181701gabrielcapiSpectatorHello, I asked you in an email to disable the Quizes in the course content just after the Student finished the course. You told me that I can have a fix for that. Thank you very much.October 27, 2018 at 1:44 am #181894MrVibeKeymasterI have added this setting by default. If the quiz is connected to a course in quiz settings and the course is marked as finished, then the retake count is set to 0.October 30, 2018 at 3:36 pm #182401gabrielcapiSpectatorOk, but we want when the students finish the course, and they want to see again the course they could see only the units, not the quizzes. Thanks :)October 31, 2018 at 5:23 pm #182595gabrielcapiSpectatorSo, is it possible?November 8, 2018 at 4:38 pm #183613gabrielcapiSpectatorHello, I finished a course like a Student, then I saw the retake quiz button and it's enable to retake. So it's not working as you mentioned. regardsNovember 14, 2018 at 6:43 am #184350MrVibeKeymasterThe update with the fix is not yet out. We're releasing it this week.November 28, 2018 at 4:15 pm #186350gabrielcapiSpectatorHello, I saw that there is a new update in WPLMS, is this update include the requirement of this ticket? thank you :)November 29, 2018 at 1:24 pm #186510Anshuman SahuKeymasterWell we have included the fix with the quiz retakes . when user finishes the course the quiz retakes are reset . But we have not added any settings to remove the quizzes from curriculum if user has already finished this course .November 29, 2018 at 9:29 pm #186582gabrielcapiSpectatorOk, is there a way to help us with that?November 30, 2018 at 3:16 pm #186766Anshuman SahuKeymasterIm sorry that is not possible as of now in wplms .January 4, 2019 at 1:32 pm #191234MrVibeKeymasterYou can try this : add_filter('bp_course_get_course_curriculum',function($curriculum,$course_id){ if(is_user_logged_in()){ if(bp_course_is_member($course_id,get_current_user_id())){ if(bp_course_get_user_course_status(get_current_user_id(),$course_id) > 2){ $bp_course_template = BP_Course_Template::init(); $course_curriculum= $bp_course_template->get_curriculum($course_id); foreach($course_currculum as $key=>$item_id){ if(get_post_type($item_id) == 'quiz'){ unset($course_curriculum[$key]); } } } } } return $curriculum; },10,2);February 28, 2019 at 4:16 pm #198838gabrielcapiSpectatorOk, where Can I try it? WPLMS-cutstomizer ? Thanks! :DFebruary 28, 2019 at 10:21 pm #198851gabrielcapiSpectatorI tried it, and it's showing the next warning: Warning: Invalid argument supplied for foreach() in /home/global74/public_html/cursos/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 137 I tried it in this course: https://www.online.globalstd.com/curso/rq-iso-37001/ Thank you.March 1, 2019 at 1:59 pm #198966MkModeratorremove above code and Please add this code add_filter('bp_course_get_course_curriculum',function($curriculum,$course_id){ if(is_user_logged_in()){ if(bp_course_is_member($course_id,get_current_user_id())){ if(bp_course_get_user_course_status(get_current_user_id(),$course_id) > 2){ $bp_course_template = BP_Course_Template::init(); $course_curriculum= $bp_course_template->get_curriculum($course_id); foreach($course_curriculum as $key=>$item_id){ if(get_post_type($item_id) == 'quiz'){ unset($course_curriculum[$key]); } } } } } return $course_curriculum; },10,2);March 1, 2019 at 3:16 pm #198971gabrielcapiSpectatorIt works! Thank you a lot, this is very important for us.
-
AuthorPosts
- The topic ‘Disable Quizes after finished course’ is closed to new replies.