Index: temp_moodle_dev/moodle/course/lamsbuttons.php =================================================================== diff -u -r0dded590d4dda0d11f3cd3ef189e0d87209bf800 -r6579677aae8ab971c67749b6d02e8cc7ec45bef7 --- temp_moodle_dev/moodle/course/lamsbuttons.php (.../lamsbuttons.php) (revision 0dded590d4dda0d11f3cd3ef189e0d87209bf800) +++ temp_moodle_dev/moodle/course/lamsbuttons.php (.../lamsbuttons.php) (revision 6579677aae8ab971c67749b6d02e8cc7ec45bef7) @@ -22,6 +22,7 @@ $lamsupdateurl = optional_param('lamsUpdateURL', PARAM_TEXT); $returnurl = optional_param('returnUrl', PARAM_TEXT); // lams url to proceed to next in sequence $isfinished = optional_param('isfinished',false, PARAM_TEXT); //if you have done the activity at least once the variable will be true + $is_learner = optional_param('is_learner', 0, PARAM_INT);//0 IF IS A LEARNER AND 1 IF IS A TEACHER ?> /* Function to display Next or Finish button in LAMS sequence*/ function toggle(id) { var state = document.getElementById(id).style.display; @@ -53,7 +54,7 @@ '; - if($isfinished=='true'){//if you have done the activity at least once let trhe Next Activity button appeare + if($isfinished=='true'||($is_learner==0&&$lamsupdateurl==null)){//if you have done the activity at least once let trhe Next Activity button appeare echo('');