Course Duration Parameter in Hours Issue

Home Forums Legacy Support Support queries How-to & Troubleshooting Course Duration Parameter in Hours Issue

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #36349
    ewanb
    Participant
    I am creating a new course I set the duration of course to "150" and the duration parameter to "hours". However, on the course page on the website, it becomes "19 days", as if it has divided 150 by 24 and diplayed it in days... I want "150 hours" displayed on the course page. How can this be done? Thanks
    #36444
    Anshuman Sahu
    Keymaster
    Well that won't be possible as of now . It round of the time to the next closest parameter in the duration also the duration also changes when the user is added to the course coz it shows the remaining duration of the course when the user subscribes to course .
    #36448
    ewanb
    Participant
    I would just like an estimation of the time needed to follow the full course, without being decreased as user follow the course (as each user can learn at his own speed). It's a very basic feature for a LMS, isn't it ?  
    #36682
    Anshuman Sahu
    Keymaster
    Okay for that please try adding the given code in your wplms-customizer.php file in wplms customizer plugin :   add_filter('wplms_course_details_widget','new_vibe_custom2'); function new_vibe_custom2($course_details){    global $post;    $duration = get_post_meta($post->ID,'vibe_duration',true);    $vibe_course_duration_parameter=apply_filters('vibe_course_duration_parameter',86400,$post->ID);    $duration=$duration*$vibe_course_duration_parameter;     $course_details['time'] = '<li><i class="icon-clock"></i>'.tofriendlytime($duration).'</li>';     return $course_details;   }
    #36730
    ewanb
    Participant
    It looks like it is not decrementing when users takes the course, so this point is ok. However, it displays "6 days, 6 hours" instead of "150 hours" How can I force it to use only hours? Thanks
    #36936
    H.K. Latiyan
    Participant
    Sorry this is not available as of now. You can hire a freelancer for such customizations. PS:Customization is not the part of theme support.
    #37296
    ewanb
    Participant
    No need for a freelancer and a customization, I just needed to add a custom field, as this page explains... Disappointed that I had to find this by myself
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Course Duration Parameter in Hours Issue’ is closed to new replies.