Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Update
Tagged: update
- This topic has 13 replies, 3 voices, and was last updated 3 years, 3 months ago by
Veronica.
Viewing 14 posts - 1 through 14 (of 14 total)
-
AuthorPosts
-
April 30, 2021 at 6:00 pm #355432
studiomedicopavesi_0412
SpectatorHello, please tell me if now it's possible: 1 hide quizzes once passed 2 Randomize quiz answers in multiple choice quiz. Thank youMay 1, 2021 at 3:54 am #355466Diana
ParticipantPoint 1: There is no functionality available for this Point 2: randomize quiz option is not available in wplms4 for multiple choice questionsMay 3, 2021 at 1:03 pm #355729studiomedicopavesi_0412
SpectatorIt will be possible in the future, as it was with previous Wplms version?May 4, 2021 at 12:07 pm #355906Veronica
Moderatorhi 1. what passed course or quiz and where to hide? 2. will be great if you can share screenshotMay 4, 2021 at 1:33 pm #355931studiomedicopavesi_0412
Spectator1. As you can see I selected Randomize quiz question, but they appear always in the same order, in previous Wplms version it worked http://prnt.sc/12h8olu 2 Once passed quiz it was possible to hide it with no chanche to retake it, I added a code in wplms customizer.php, something like this: add_filter('wplms_quiz_retake_count','remove_retake_button_if_user_passed_the_quiz',10,4); function remove_retake_button_if_user_passed_the_quiz($retakes,$quiz_id,$course,$user_id){ $user_marks=get_post_meta($quiz_id,$user_id,true); $quiz_passing_marks=get_post_meta($quiz_id,'vibe_quiz_passing_score',true); if(empty($quiz_passing_marks)) return $retakes; if($user_marks >= $quiz_passing_marks){ ?> <style> .vibebp_main .incourse.quiz_retake { display:none !important; } </style> <?php return 0;} else return $retakes; }May 5, 2021 at 1:17 pm #356092Veronica
Moderatorhi for1 we have setting but it's not working so created a Trello card https://trello.com/c/OCe040NY and for 2: we need to check this on localMay 11, 2021 at 9:55 am #356908studiomedicopavesi_0412
SpectatorThis reply has been marked as private.May 12, 2021 at 7:06 am #357011Veronica
Moderatorhi please check this topic link https://wplms.io/support/forums/topic/hide-quizzes-when-passed/May 12, 2021 at 4:24 pm #357088studiomedicopavesi_0412
SpectatorHi Veronica, I asked if there was an update because at the end of the topic you suggested to me there was this issue: Sorry to say but this is all I can provide for this issue. This does not remove the retake button just after submitting but disables the button and when refreshing the page retake button is removed.May 13, 2021 at 12:09 pm #357172Veronica
Moderatorhi a. Enable Quiz passing score in WP-Admin – LMS – Settings b. Set a passing score in Quiz settings. c. Add this code in child theme functions.php or WPLMS customizer:
please try this and let me knowadd_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)){ $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);
May 13, 2021 at 1:10 pm #357186studiomedicopavesi_0412
SpectatorThis reply has been marked as private.May 14, 2021 at 12:52 pm #357388Veronica
Moderatorhi please remove the old code and add the above code i have updated the code so please check that and let us knowMay 17, 2021 at 4:20 pm #357806studiomedicopavesi_0412
SpectatorHi Veronica, WOW, now it works! Thank you hor your help!May 18, 2021 at 9:42 am #357898Veronica
Moderatorgood to know this works thanks for your confirmation -
AuthorPosts
Viewing 14 posts - 1 through 14 (of 14 total)
- The topic ‘Update’ is closed to new replies.