Set the course duration 9999 days, But course is EXPIRED

Home Forums Legacy Support Support queries How-to & Troubleshooting Set the course duration 9999 days, But course is EXPIRED

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #206313
    KAIST
    Spectator
    Hi! I posted a new course today and assigned 9999 days (parameter in days) However, I do not know why the course is EXPIRED. Could you check what I did wrong? thank you! https://screencast-o-matic.com/watch/cqfOeyZaWQ
    #206397
    logan
    Member
    This reply has been marked as private.
    #206462
    KAIST
    Spectator
    Thank you logan. Exactly there was a problem. when I add "Total Unit Duration [ All Users (logged in/logged out) ]" it shows as Expired https://screencast-o-matic.com/watch/cqfOoKZzEz Perhaps before I add this makes problem With the help of alex. "Show number of units and units in Course Details in "one line"" . add_filter('wplms_course_details_widget','wplms_show_unit_count_and_time2',1,1); function wplms_show_unit_count_and_time2($course_details){
    $course_id = get_the_ID();
    
    $units=bp_course_get_curriculum_units($course_id);
    
    $duration = $total_duration = 0;
    
    foreach($units as $unit){
    
        $duration = get_post_meta($unit,'vibe_duration',true);
    
        if(get_post_type($unit)=='unit'){
    
           $unit_duration_parameter = apply_filters('vibe_unit_duration_parameter',60,$unit);
    
        }elseif(get_post_type($unit)=='quiz'){
    
           $unit_duration_parameter = apply_filters('vibe_quiz_duration_parameter',60,$unit);
    
        }
    
    
    
        $total_duration =  $total_duration + $duration*$unit_duration_parameter;
    
     }
    
    
    
     $course_details['units_duration'] = '<li>'.count($units).' Units,&lt;i class="icon-clock-1"&gt;&lt;/i&gt;'.tofriendlytime(( $total_duration)).'</li>';
    
     return $course_details;
    
    } So it came out like this. https://imgur.com/sHHnIRu By the way, I do not know what to do if I want to make it visible again in the front end. any idea please. thank you!!
    #206516
    logan
    Member
    Hello, this is code's logic related. i will discuss with alex about this. till then wait. remind me by monday,
    #208122
    KAIST
    Spectator
    and after update new version all 9999 days for life time turn to "27 years, 9 months" ( Not a lifetime as before. ) https://screencast-o-matic.com/watch/cqhjnsZsax please check this also. thank you so much!
    #208128
    logan
    Member
    Hello, thats a bug, we have taken note of it. we will fix this in coming update. thanks.
    #210520
    KAIST
    Spectator
    thank you logan, But Is there any tip to show course duration as life time? 27 YEARS, 8 MONTHS is looks funny and unfinished feeling. thanks
    #210540
    logan
    Member
    Hello, for now, this is a bug. we are working on it. there is no fix for now. please hide this section for the single course.
    #211893
    KAIST
    Spectator
    thank you logan. It is fixed this new version. thank you. resolved!
    #211929
    logan
    Member

    Hi,

    Above everything else, our purpose and objective at WPLMS is to serve our customers. Our goal is to make you superhuman workers who can communicate/ teach more clearly, and save everyone around you time.

    We wanted to personally thank you for supporting the product and helping us become an essential tool used by thousands of businesses and over 20K+ people. There's still a lot left to do, and we're excited to hear your reviews to build an even better experience for you, your customers & your students.

    Here: https://themeforest.net/item/wplms-learning-management-system/reviews/6780226

    -Logan, #vibeTeam

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Set the course duration 9999 days, But course is EXPIRED’ is closed to new replies.