Kingsley eLearning Solutions

You have big dreams for your eLearning.
We'll make them come true.

image of Kingsley

Preventing Resume after Articulate Course Completion

Submitted by Kingsley 👑 on Thu, 03/24/2011 - 09:47

Articulate has a wonderful feature that if turned on will ask the student they want to resume the course when they left off. Sometimes you may decide to turn this off and force a student to begin all over again but most of the time we course developers leave it on.
But there are a few times that you wish you could force a student to start over if they have already completed the course. For instance… let’s say you have a course and separate quiz. The student must complete course in order to move on the quiz. But if the student fails the quiz and goes back to the review the content you may not want them to resume… on the last slide. In fact I would venture to guess that if a student has completed a course you wouldn’t want them to resume on the last slide… so why ask them? Plus, if you have restricted your navigation to force students to move linearly through the course you might not want to let move freely just because they got to the end once; particularly if they failed the quiz.
So here is the solution, and it only takes a few lines of JavaScript. Open up your player.html file in your favorite text editor and find this JavaScript function (around line 368):

if (g_bLMS)
	{
		if (g_bAPIPresent && !g_bAOSupport)
		{
			RetrieveStateData();
			strFlashVars += "&vResumeSlide=" + String(g_SlideLastViewed);
			strFlashVars += "&vStateData=" + String(g_strResumeData);
			strFlashVars += "&vLMSPresent=" + String(g_bLMSPresent);
		}
	} 


This is where Articulate gets the resume data. What we want to do is say… “if this course has been completed please reset the slide viewed and remove all the resume data.” We can do this with some of Articulate’s built in JavaScript variables.

if(g_bLessonCompleted){
  g_SlideLastViewed =1
  g_strResumeData = ""
}


That variable “g_bLessonCompleted” tells us if the course has been completed (true/false). And if it has reset some of Articulate’s other variables. We need to do all this after the data has been grabbed from the LMS and before they are passed on to the player. So we put our code between “RetrieveStateData();” and before the “strFlashVars” is appended. Like so:

if (g_bLMS)
	{
		if (g_bAPIPresent && !g_bAOSupport)
		{
			RetrieveStateData();
			if(g_bLessonCompleted){
				g_SlideLastViewed =1
				g_strResumeData = ""
			}
			strFlashVars += "&vResumeSlide=" + String(g_SlideLastViewed);
			strFlashVars += "&vStateData=" + String(g_strResumeData);
			strFlashVars += "&vLMSPresent=" + String(g_bLMSPresent);
		}
	}


Ta Da! That’s it.
Remember to check out eLearning Enhanced for prebuilt Articulate Widgets and contact us with your Articulate wish list. We love building custom solutions.

Comments

The resume action you created for me did not work since the code var g_bLMS = true must be var g_bLMS = false in order for my Articulate file to load in our ANGEL LMS environment. This variable is also used before (around line 364) and after the place where the 3 new lines of code were entered. Any suggestions would be appreciated.

Submitted by WilliamJex (not verified) on Mon, 11/20/2017 - 17:27

Permalink

<a href=http://www.walarte.com.br/fotoretoque/router.asp?bib=95-Viagra-Costo-In… Costo In Italia</a>
If you've obtained your iphone moist, refrain from transforming it on. Make use of a cloth to dried up it, and then use it inside a covered plastic-type material handbag of dry, white-colored rice. Allow it to sit immediately. If it's dried out the subsequent morning, turn it on, and you simply will find it operating once more.
<a href=http://www.likyamarble.com/temp/kontakt.php?sayfa=67-Cialis-Nebenwirkun… Nebenwirkungen</a>
Article marketing is a wonderful way to distributed details and get your information heard across the world wide web. Supplying free of charge, high quality content implies you could be reposted on many sites. So, your thoughts will be heard. This is certainly fantastic enthusiasm from the writing standpoint but in addition a good marketing plan.
<a href=http://www.lhrepresentacoesma.com.br/images/Products.php?k=68-jintropin… online</a>
Don't let the auto car dealership let you know just how much vehicle your financial allowance can afford. You should know this yourself. You should have a budget drafted, and you ought to be-well informed as to the room for the reason that price range. Don't enable yourself look at the best alternatively, get the bargain that meets your monetary demands.
<a href=http://www.cfdlab.ugal.ro/templates/class.php?cert=310>Igf 1 Uk</a>

Submitted by Angelgup (not verified) on Mon, 11/20/2017 - 23:03

Permalink

Submitted by Robertadors (not verified) on Sat, 11/25/2017 - 18:18

Permalink

Submitted by WilliamPlauh (not verified) on Sun, 11/26/2017 - 14:02

Permalink

Submitted by Manueloresy (not verified) on Sun, 11/26/2017 - 20:41

Permalink

Submitted by Brycesligh (not verified) on Mon, 11/27/2017 - 10:57

Permalink

[url=http://www.survivalsports.nl/449-armani-nette-schoenen.html]Armani Nette Schoenen[/url]
Consider the ranking for the life coverage firm that you are interested in getting from. You could be squandering your money if you do not have a coverage from the business by using a protect history. You wish to get a company with a minimum of an "A" rating.

[img]https://www.samsharp.nl/images/hum2/12158-asics-wandelschoenen.jpg[/img]

There are many different methods that you can make cocktails with caffeine, outside the standard day cup. Flowing caffeine right into a mug and incorporating Irish Skin cream and Lavish Mariner can really make for a good hot beverage on a cold time. Put whipped cream to the very top allow it that additional enjoyable kick.

[img]https://www.voetbalschoenengoedkoop.nl/images/que2/2877-messi-adidas-sh…]

Add new comment

Tags