display course duration parameter

Home Forums Legacy Support Support queries Styling issues display course duration parameter

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #200970
    dramalanguage
    Spectator
    Hi wplms
    1. course duration parameter on a day I want to do course duration parameter on a day basis. So I set the following settings on course manager page: https://prnt.sc/myyrab
    However, it still appears in 'month, weeks', as shown below. https://prnt.sc/myyrpx How can it be displayed in day parameter as shown below? https://prnt.sc/myysl6
    1. unlimited duration I want to mark the course duration parameter of free content as unlimited as below. https://prnt.sc/myyt93
    So I wrote the content duration in 9999, as shown below. https://prnt.sc/myz2ko However, it still looks in 'year, months' like this.
    #201035
    Ava
    Member
    Hi Dramalanguage Please share the URL of the website and admin credentials in private reply.
    #201168
    dramalanguage
    Spectator
    This reply has been marked as private.
    #201286
    Ava
    Member
    Hi We have tried to debug this issue and tried the possible fixes. But none of them seems to be working. We need more time, we are still working on it, so please have patience.   Also, please share the FTP credentials in private reply.
    #201742
    dramalanguage
    Spectator
    This reply has been marked as private.
    #201904
    Ava
    Member
    Hi We have already fix the issue. You can check now: In case, you need to know, we have added the below custom css to Editor >Customiser.php add_filter('wplms_course_details_widget',function ($course_details,$course_id){     $seconds = bp_course_get_course_duration($course_id);       if($seconds<0)       $seconds = 0;   $time = $seconds/(246060);   $course_details['time'] =  '<li class="course_time"><i class="icon-clock"></i>'.$time. ' 주</li>';   return $course_details; },99999,2);     Hope this helps. Please let us know.
    #202275
    dramalanguage
    Spectator
    The course duration parameter on a day works well. Thank you very much. But 'unlimited duration' is not work. I already wrote the content duration in 9999, as shown below. https://prnt.sc/myz2ko
    #202472
    Mk
    Moderator
    If you are changing course duration . Remember it will not work for old students. You will need to add new students to check it.
    #203192
    dramalanguage
    Spectator
    I added new students and tested. But The duration is still displayed as 9999.
    #203369
    logan
    Member
    Hello, Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel: the above code was not complete. the updated code is here: add_filter('wplms_course_details_widget',function ($course_details,$course_id){       $seconds = bp_course_get_course_duration($course_id);       if($seconds<0)         $seconds = 0;       $time = $seconds/(86400);       if($seconds == 0){         $course_details['time'] =  '<li class="course_time"><i class="icon-clock"></i>Expired</li>';       }elseif($time >= 9999){         $course_details['time'] =  '<li class="course_time"><i class="icon-clock"></i>Unlimited Access</li>';       }else{         $course_details['time'] =  '<li class="course_time"><i class="icon-clock"></i>'.$time. ' Days</li>';       }             return $course_details;   },99999,2);
    #203618
    dramalanguage
    Spectator
    I've added the above codes, but they still don't workable.
    #203640
    logan
    Member
    Hello, I have tested this code on my test setup and it works fine. Please share your wp-admin credentials with ftp credentials. you have changed older ones.
    #203671
    dramalanguage
    Spectator
    This reply has been marked as private.
    #203787
    logan
    Member
    Yes !! it is working i have checked it here: http://prntscr.com/n9fp5i The mail problem is you have using a cache plugin and after making changes you need to clear all browser's cache only then it will be visible.
    #203942
    dramalanguage
    Spectator
    I checked. It works fine. Thank you very much for accessing my homepage and modifying wplms-customizer.php and explaining the detailed screenshot. Close this topic.
Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘display course duration parameter’ is closed to new replies.