diff --git a/mod/scorm/player.php b/mod/scorm/player.php index 383f3fb5143..fcf21c15ae8 100755 --- a/mod/scorm/player.php +++ b/mod/scorm/player.php @@ -100,8 +100,8 @@ } } - add_to_log($course->id, 'scorm', 'view', "player.php?id=$cm->id&scoid=$sco->id", "$scorm->id"); - + add_to_log($course->id, 'scorm', 'view', "player.php?id=$cm->id&scoid=$sco->id", "$scorm->id", $cm->id); + $scoidstr = '&scoid='.$sco->id; $scoidpop = '&scoid='.$sco->id; $modestr = '&mode='.$mode; @@ -180,8 +180,8 @@ $orgstr = '¤torg='.$currentorg; - if (($scorm->hidenav == 0) && ($sco->previd != 0) && ($sco->previous == 0)) { - + if (($scorm->hidenav == 0) && ($sco->previd != 0) && (!isset($sco->previous) || $sco->previous == 0)) { + // Print the prev LO button $scostr = '&scoid='.$sco->previd; @@ -198,8 +198,8 @@ - if (($scorm->hidenav == 0) && ($sco->nextid != 0) && ($sco->next == 0)) { - + if (($scorm->hidenav == 0) && ($sco->nextid != 0) && (!isset($sco->next) || $sco->next == 0)) { + // Print the next LO button $scostr = '&scoid='.$sco->nextid; @@ -266,8 +266,8 @@
- \ No newline at end of file + \ No newline at end of file diff --git a/mod/scorm/rd.js b/mod/scorm/rd.js index f54dc52665b..6a3e908321a 100644 --- a/mod/scorm/rd.js +++ b/mod/scorm/rd.js @@ -72,6 +72,19 @@ function scorm_resize () { var scoframe2 = document.getElementById('scoframe1'); document.getElementById('scormobject').style.height = (winheight - totalheight) + 'px'; } - + // resize the content container too to move the footer below the SCORM content + var contenti3 = document.getElementById('content-i3'); + if (contenti3) { + contenti3.style.height = (winheight - totalheight + 30) + 'px'; + } else { + document.getElementById('content').style.height = (winheight - totalheight + 30) + 'px'; + } + // resize the content container too to move the footer below the SCORM content + var contenti3 = document.getElementById('content-i3'); + if (contenti3) { + contenti3.style.height = (winheight - totalheight + 30) + 'px'; + } else { + document.getElementById('content').style.height = (winheight - totalheight + 30) + 'px'; + } } ---> +--> \ No newline at end of file diff --git a/mod/scorm/report.php b/mod/scorm/report.php index f31249c63c7..309b5fee753 100755 --- a/mod/scorm/report.php +++ b/mod/scorm/report.php @@ -47,8 +47,8 @@ error('You are not allowed to use this script'); } - add_to_log($course->id, 'scorm', 'report', 'report.php?id='.$cm->id, $scorm->id); - + add_to_log($course->id, 'scorm', 'report', 'report.php?id='.$cm->id, $scorm->id, $cm->id); + if (!empty($user)) { $userdata = scorm_get_user_data($user); } else { diff --git a/mod/scorm/view.php b/mod/scorm/view.php index 5c6b0826b5e..19500fb5c27 100755 --- a/mod/scorm/view.php +++ b/mod/scorm/view.php @@ -57,8 +57,8 @@ $pagetitle = strip_tags($course->shortname.': '.format_string($scorm->name)); - add_to_log($course->id, 'scorm', 'pre-view', 'view.php?id='.$cm->id, "$scorm->id"); - + add_to_log($course->id, 'scorm', 'pre-view', 'view.php?id='.$cm->id, "$scorm->id", $cm->id); + if ((has_capability('mod/scorm:skipview', get_context_instance(CONTEXT_MODULE,$cm->id))) && scorm_simple_play($scorm,$USER)) { exit; }