SCORM Launch Window

SCORM Launch Window

by John Papworth -
Number of replies: 14

Hi

How do I clear the SCORM window.  I only want it to launch with the SCO - not with elements of the theme in there.

Is there any instruction on how to do this?

Thanks in Advance

John

Average of ratings: -
In reply to John Papworth

Re: SCORM Launch Window

by Andre Paz Leal -

Hi John, on your Scorm Settings, go to the tab Appearance, and set the "Display course structure in player" to "Disabled". Please rate me as Useful.

In reply to Andre Paz Leal

Re: SCORM Launch Window

by John Papworth -

Hi

Already done that, and it wasn't what I was asking for.

Thanks anyway.

In reply to John Papworth

Re: SCORM Launch Window

by Gennady Kucheruk -

Hi John,

I'm working on this right now as I can't find the answer in the forum. We also want only presentation in the window so it will resize on mobile devices the same way as the HTML iSpring presentation we have does. This thread has some info on it:
https://moodle.org/mod/forum/discuss.php?d=185138
The presentation is launched in iframe within /mod/scorm/player.php (player.php takes care of the reports data and it couldn't be omitted), so I'm trying to take out all the other elements but the iframe and make it open in the full browser window. I'll try to post back the solution. I'm using Moodle 2.6.1+ and Essential bootstrap based theme.

Regards,
Gennady

Average of ratings:Useful (1)
In reply to Gennady Kucheruk

Re: SCORM Launch Window

by John Papworth -

Hi Gennady

This is exactly what I am looking for - we are using .  Please let me know if you come to a successful conclusion.

 

Regards

John

In reply to John Papworth

Re: SCORM Launch Window

by Amy Groshek -

You may want to try to customize your theme. In the theme's config.php file find $THEME->layouts. This array designates which page elements are shown in which layouts. If you are displaying SCORM in a new window, then the layout in question is "popup". You can also create your own custom layout file and direct the theme to use that.

See http://docs.moodle.org/dev/Creating_a_theme#Configuring_our_theme

In reply to John Papworth

Re: SCORM Launch Window

by Gennady Kucheruk -

Hi John,
Here is the solution that works for me. Unzip the file and read instructions in the readme1st.txt. Apply all the changes considering the theme you use. I was fishing them out one by one with CSS inspector in Chrome so you may get idea what to change in your own theme. The added popup layout is for the opening presentation in the same window, so in the SCORM settings set Display package under Appearance to Current window.

 

Regards,
Gennady

In reply to John Papworth

Re: SCORM Launch Window

by Gennady Kucheruk -

Here is an updated version of the solution above, tested on the new installation. There are maybe some unnecessary CSS codes inside scorm.php, so you may play with it if you wish.

Cheers,Gennady

In reply to Gennady Kucheruk

Re: SCORM Launch Window

by Gennady Kucheruk -

please also note that as we deleted all the HTML elements from scorm layout you will need on the very last slide of that SCORM presentation add the links to where you want to send the user to, e.g.:

to download certificate:
/moodle/mod/simplecertificate/view.php?id=18

or back to the course page:
/moodle/course/view.php?id=5

In reply to Gennady Kucheruk

Re: SCORM Launch Window

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

Hi Gennady - a simpler solution would be to change the "popup" layout used to "embedded" which should operate the same way - I have a bug in the tracker that suggests changing to using "embedded" instead of "popup" but I see you've added a new layout instead - I'm open to doing this instead of switching to "embedded" but wasn't sure if it was actually needed. It would be good to have feedback on whether we actually need a new layout type - are there any other reasons why you think we should have a layout type just for pop-up scorms?

In reply to Dan Marsden

Re: SCORM Launch Window

by Gennady Kucheruk -

Hi Dan,

And thank you so much for the SCORM module development and offering your support on the subject. I think for all of us it doesn't matter which way this "full browser window" feature is implemented as long as it does what we need, is stable and works on the majority of the web browsers. Sure it would be great if it could be turned on by just simple tick of the checkbox. Also if we could choose for it to run either in the current window or in the new tab (instead of the popup).

It's because if we created a really good, media reach presentation we want to show it by using as much of the screen space as possible. This especially important for mobile devices, e.g. now in the full browser window it plays well on my Nexus 5. The added "scorm" layout is basically the same as the "embedded" one, but has additional CSS and "reload presentation on the device orientation change" codes, that is why I decided to add it instead of using existing "embedded" layout, so not to break the other pages that already might use "embedded". Plus there are couple more changes in the player.php and module.js to make the presentation to go "full browser window".

So this is my view on the problem.

Regards,
Gennady

 

In reply to Gennady Kucheruk

Re: SCORM Launch Window

by Matteo Scaramuccia -

HI Gennady,
for your reference here is the tracked issue: MDL-43011.

HTH,
Matteo

In reply to Matteo Scaramuccia

Re: SCORM Launch Window

by Gennady Kucheruk -

Thank you Matteo,

I would copy my description and updated files there, but unfortunately I need to have Moodle Tracker account. Plus Dan Marsden already aware of this thread.

Regards,
Gennady

In reply to Gennady Kucheruk

Re: SCORM Launch Window

by Matteo Scaramuccia -

Hi Gennady,
no need for doing that at all, indeed wink. Just a reference for the Community.

Matteo

In reply to Gennady Kucheruk

Re: SCORM Launch Window

by David Jumeau -

Is this the latest code or is there a modification on Github?

David