Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Assignment Submission and Unit Locking
Tagged: assignments, submission, unit locking
- This topic has 22 replies, 3 voices, and was last updated 4 years, 9 months ago by logan.
-
AuthorPosts
-
October 15, 2018 at 5:18 pm #180161info2growSpectatorHi there, a couple of things regarding assignments. We would like to keep unit locking on but change the accepted status for the student to progress from evaluated to submitted. It was mentioned 2 years ago that this was coming in the next update. Am I just missing a setting somewhere? https://wplms.io/support/forums/topic/submit-assignment-must-allow-a-student-to-proceed-to-next-unit/ Also for an upload assignment can we block submission until a something has been uploaded? Thanks! LawrenceOctober 16, 2018 at 12:33 pm #180271DianaParticipant@info2grow Make sure you have the latest version of the theme and plugins. When you edit the assignment. Make sure the assignment settings are like this Refer: http://prntscr.com/l6pokg So whenever a student tries to submit an assignment without uploading anything. It will throw an error to upload something. The submission of assignment will not occur until user upload somethingNovember 1, 2018 at 8:10 pm #182787info2growSpectatorHi Diana, I can confirm that my settings match and I can still submit an assignment without uploading anything. This is on our test site which only has WPLMS related plugins, no customization and everything is up to date. Also how can we would like to keep unit locking on but change the accepted status for the student to progress for assignments from evaluated to submitted. ThanksNovember 2, 2018 at 12:17 pm #182913DianaParticipant@info2grow Yes, we found a bug and it will be fixed in the next update but I can fix the bug on your site if you'll share the admin credentials in a private reply hereNovember 2, 2018 at 2:23 pm #182946info2growSpectatorI will post credentials shortly but also happy to update a file if you let me know the change. Will the updated code also us to keep unit locking on but change the accepted status for the student to progress past assignments from evaluated to submitted?November 2, 2018 at 5:05 pm #182973info2growSpectatorThis reply has been marked as private.November 3, 2018 at 4:46 pm #183112DianaParticipantThis reply has been marked as private.January 30, 2019 at 6:12 pm #194570info2growSpectatorOkay that worked although the error message is on a blank page with no prompt as to what to do next. Would be nice if it showed near the submit button without taking the user away from the page. Failing that would be nice to at least add to the message "User your browser's back button to try again." Still left with the challenge that we want to allow users to proceed once they have submitted an assignment. Currently the assignment has to be graded first. Is this possible?January 30, 2019 at 8:12 pm #194577info2growSpectatorHere's ho I made it happen... wp-content/themes/wplms/includes/func.php
// Line 474 - Allow progress on assignment submission if(isset($unit_assignments) && is_array($unit_assignments) &&is_numeric($unit_assignments[0])){ foreach($unit_assignments as $unit_assignment){ if (is_numeric($unit_assignment)){ $user_id = get_current_user_ID(); $assignment_complete = get_post_meta($unit_assignment,$user_id,true); if((isset($assignment_complete) && is_numeric($assignment_complete)) ){ $flag=0; }else{ $flag=1; } }//end-if }//end-for } }
January 30, 2019 at 8:18 pm #194578info2growSpectatorThat's updated code so it need to replace the similar code already there.January 31, 2019 at 1:25 pm #194679loganMemberdisable assignment locking from wp-admin -> wplms -> course manager and add this code in your wplms-customizer.php file in wplms customizer plugin : add_filter('wplms_unit_mark_complete','wplms_assignments_force_unit_complete2',1,3); function wplms_assignments_force_unit_complete2($mark_unit_html,$unit_id,$course_id){ $flag=0; $unit_assignments = get_post_meta($unit_id,'vibe_assignment',false); if(is_Array($unit_assignments) && is_array($unit_assignments[0])) $unit_assignments = vibe_sanitize($unit_assignments); if(isset($unit_assignments) && is_array($unit_assignments)) foreach($unit_assignments as $unit_assignment){ if(is_numeric($unit_assignment)){ $user_id = get_current_user_id(); $assignment_complete = get_post_meta($unit_assignment,$user_id,true); if(isset($assignment_complete)){ $flag=0; }else{ $flag=1; } }//end-if }//end-for if($flag) return '<a>'.__('FINISH ASSIGNMENT TO MARK UNIT COMPLETE','vibe').'</a>'; return $mark_unit_html; }January 31, 2019 at 5:08 pm #194719info2growSpectatorWill try that thanks! Also is it possible to exclude submitted assignments from course marks if they have not been marked yet? We had to set the assignment grade to 0 so unmarked assignments didn't factor into the course marks when doing the above.February 1, 2019 at 2:47 pm #194864loganMemberWell there is a setting available for this in course : http://prntscr.com/mfa606February 1, 2019 at 6:04 pm #194877info2growSpectatorYes but if I turn this off then we can't use the unit locking to block course progression until the student submits an assignment. Is that right?February 4, 2019 at 12:15 pm #195146loganMemberWell both of these things are not connected to each other .The code will work as it should regardless of this setting . This setting (http://prntscr.com/mfa606) will only come in picture when course is being evaluated -
AuthorPosts
- The topic ‘Assignment Submission and Unit Locking’ is closed to new replies.