• Resolved adamkowalski

    (@adamkowalski)


    We are trying to simplify the steps users take in between each course and are looking for some advice.

    Currently when you finish one lesson, you must first hit the mark complete button, followed by the next lesson button. I am wondering if there is already built in functionality for programmatically marking a course complete at an arbitrary trigger. Is there some ajax request that we can make which would allow us to do this without making a full page reload?

    The use case for example would be to listen for the end of the video being shown, and then automatically trigger the next lesson so that you have a seamless transition from one lesson to another.

    https://www.ads-software.com/plugins/lifterlms/

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can check LifterLMS>General Settings>Courses>Automatically advance to the next lesson when a student clicks the Mark Complete button.

    @adamkowalski,

    The automatic advance via video / audio completion is something we intend to do in a future release but is not something we’ve prioritized yet.

    We do not have an AJAX enabled functionality to allow seamless reloading.

    All of this is 100% possible programmatically but is not currently available in LifterLMS.

    You can streamline this through auto-advancing as @jurasjo has pointed out, which eliminates the reload and the “Next Lesson” but the “Mark as Complete” is still required.

    Take care,

    I see that the automatic video advance is not available from LifterLMS “out of the box” yet. But if I’m creating a custom theme for LifterLMS that includes video, and I can detect via JavaScript when an embedded HTML5 video finishes playing, could I automatically call the function that marks the lesson complete?

    Thread Starter adamkowalski

    (@adamkowalski)

    @jurasjo

    Thanks for the tip, I will definitely take advantage of this!

    @thomasplevy, @kenfrederick

    This is what I was planning on doing, essentially I want to check in code whether the video has finished playing and then trigger a lesson complete action. I guess I am wondering if there is an idiomatic way to do just that last part.

    Do you guys provide an API for triggering a lesson complete / course complete action given a student id and a course id?

    @kenfrederick and @adamkowalski

    LifterLMS 3.0.0 will have a better API for this, but at this very moment you’ll want to do something along the lines of the following:

    https://gist.github.com/thomasplevy/672487a618f7c8d92605ceb46ff86ecb

    This currently cascades up to complete various other things based on the completion of the lesson.

    Take care,

    Marking as resolved due to inactivity

    Reply if you still need help and I’ll reopen

    Take care,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Marking a course complete’ is closed to new replies.