Nick Mariano
Forum Replies Created
-
Hi @ulf01,
As we haven’t had any response in over a week, I am going to mark this thread as resolved. Please reopen or post a new thread if you require further assistance.Hi @ulf01,
As we haven’t had any response in over a week I am going to mark this thread as resolved. Please reopen or post a new thread if you require further assistance.Hi @dartanidi,
In this case, the following JavaScript code snippet below will redirect the student to Google once the course is complete. So you just need to replace"https://www.google.com/"with your desired URL inside double quotes. To add the code below to your site, please follow the instructions in lifterlms.com/docs/how-do-i-add-custom-code-to-lifterlms/#code-snippets.add_action( "wp_footer", "custom_redirect_logic_for_lessons", PHP_INT_MAX );
function custom_redirect_logic_for_lessons() {
if ( is_singular( "lesson" ) ):
?>
<script type="text/javascript">
(function($){
$(document).ready(function(){
var notificationsDisplayed = false;
var progress = '0%';
var count = 0;
/* Check that we are in the last lesson of a course. */
if ( 0 == $(".llms-next-lesson").length ) {
/* Create the timer only when we are on the last lesson of a course. */
var timer = setInterval(function() {
console.log("Timer running.");
/* Every increment of 1 corresponds to 100 milliseconds. */
count += 1;
console.log('count: ', count);
/* Always check the current value of the progress bar. */
if ( $('.progress-bar-complete').length > 0 ) {
progress = $('.progress-bar-complete').data('progress');
}
if ( '100%' != progress && count >= 10 ) {
clearInterval(timer);
console.log("Timer not running.");
}
/* Once the notifcation has been set to true, do not change it. */
if ( $(".llms-notification.visible").length > 0 && false == notificationsDisplayed ) {
notificationsDisplayed = true;
}
/* If notifications are not displayed within the first 1 second, stop the timer. */
if ( !notificationsDisplayed && count >= 10 ) {
clearInterval(timer);
console.log("Timer not running.");
}
/* If notifications are displayed let's wait for 1 second before redirecting. */
if ( notificationsDisplayed && count >= 10 ) {
/* Don't redirect unless notifications have been displayed in the same viewing session. */
if ( '100%' == progress && notificationsDisplayed ) {
clearInterval(timer);
console.log("Timer not running.");
window.location.replace("https://www.google.com/");
}
}
}, 100);
}
});
})(jQuery);
</script>
<?php
endif;
}Hi @ulf01,
Since you are using a paid theme named Total from ThemeForest, we’re not able to replicate the frontend sidebar issue on our end since we don’t have a copy of that paid theme. Please note that LifterLMS does register a Course Sidebar widget area and a Lesson Sidebar widget area in/wp-admin/widgets.php. However, how (or if) that sidebar appears is ultimately determined by the current theme that you are using. For example, Kadence has a setting that allows LifterLMS courses to have sidebars or not. If you switch to themes like the Twenty Twenty-Four Theme, the default layout has no sidebar. On the other hand, in the Sky Pilot theme, the default course layout has a sidebar.
If the Total theme you are using does not support sidebars, kindly follow the instructions in lifterlms.com/docs/lifterlms-sidebar-support and in lifterlms.com/docs/super-sidebars-lab to try to add sidebar support on your site. We also recommend reaching out to the support team of your current theme to confirm if they have sidebar support so you can check if using extra PHP code is really necessary.Hi @isuru24,
As we haven’t had any response in over a week, I am going to mark this thread as resolved. Please reopen or post a new thread if you require further assistance.
Hi @isuru24,
At the moment, the only APIs you can use are the following:
- To retrieve all the sections in a given course with course ID
{ID}, use/courses/{ID}/content - To retrieve all lessons in a given section with section ID
{ID}, use/sections/{ID}/content
If you are using JavaScript to build your UI, the first REST API call will be for
/courses/{ID}/content. Once that returns the list of sections, the second REST API call will loop (asynchronously) over the section IDs and then fetch the lessons for each of these sections using/sections/{ID}/content.
On the other hand, if you need a single API call that will list both sections and the lessons they contain, a feature request for a syllabus REST API (e.g., something like/courses/{ID}/syllabus) can be filed at lifterlms.com/feature-request.Hi @ewafeuille,
LifterLMS 7.7.4 has just been released. Could you let us know if everything is okay now on your site? Thanks.
Hi @dargye,
Please note that LifterLMS does not have a concept of video optimization. We only rely on the built-in video functionality that WordPress provides to us. In particular, video players and hosts like YouTube, Vimeo and Wistia are responsible for delivering the video in the best possible way for your viewers, so you as the video uploader don’t have to worry about video optimization. What we recommend is that you host your videos in any one of those three platforms (YouTube, Vimeo or Wistia), and then use the video link with LifterLMS. The YouTube tutorial at the bottom of lifterlms.com/docs/using-course-builder/#how-to-add-and-view-lesson-content should give you a comprehensive introduction into adding multimedia content to your lessons, specially one or more videos in a single lesson.
Hi @draftandgraft,
That’s awesome. The free WP Rollback plugin is what we recommend when rolling back LifterLMS to a previous version.
Hi @draftandgraft,
That’s awesome. The free WP Rollback plugin is what we recommend when rolling back LifterLMS to a previous version.
Hi @draftandgraft,
We currently have an open issue about this in our GitHub repository. Looking at the conversations between our developers in our internal channel, it appears that there is already a patch/fix for this submitted as a pull request to our GitHub repository. However, at the moment, I cannot give an estimated timeline on when that fix will be tested, or when that fix will be released. Right now, the only workaround it to continue using LifterLMS 7.6.3 (instead of LifterLMS 7.7.0) until the fix has been released.Hi @draftandgraft,
It appears that you have also reported the same issue in wordpress.org/support/topic/lifterlms-breaking-site-media-had-to-be-deactived-yesterday-to-restore-site, so we’ll continue discussion on that specific issue there.Hi @draftandgraft,
When you mentioned that your “media is missing”, did you mean to say that you can no longer seeWordPress Dashboard > Mediaas soon as you upgrade to LifterLMS 7.7.0? I wasn’t able to replicate this issue on my end. However, if rolling back to LifterLMS 7.6.3 fixes the issue for you, could it be that either LifterLMS 7.7.0 may have conflicts with your other plugins or conflict with the version of WordPress you are using? If you can let us know what version of WordPress you are using (as well as what version of LifterLMS you are using prior to the upgrade), that would help us a lot.Hi @jurasjo,
I was able to replicate the issue you are reporting. In particular,Course Options > General > Featured Videoworks when using LifterLMS 7.6.3 but not once I upgraded to LifterLMS 7.7.0. I already informed our developers about this. I’ll follow up on you if ever this gets fixed. Just please note that we cannot provide any estimate on when the issue will be fixed, or when the fix will be released.Hi @mansourikhah,
As we haven’t had any response in over a month I am going to mark this thread as resolved. Please reopen or post a new thread if you require further assistance.
- To retrieve all the sections in a given course with course ID