Home › Forums › Legacy Support › Support queries › Styling issues › display course duration parameter
Tagged: course duration parameter
- This topic has 15 replies, 5 voices, and was last updated 5 years ago by logan.
-
AuthorPosts
-
March 17, 2019 at 8:15 am #200970dramalanguageSpectatorHi wplms
- 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
- unlimited duration I want to mark the course duration parameter of free content as unlimited as below. https://prnt.sc/myyt93
March 18, 2019 at 9:49 am #201035AvaMemberHi Dramalanguage Please share the URL of the website and admin credentials in private reply.March 19, 2019 at 2:56 am #201168dramalanguageSpectatorThis reply has been marked as private.March 19, 2019 at 1:53 pm #201286AvaMemberHi 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.March 24, 2019 at 7:58 am #201742dramalanguageSpectatorThis reply has been marked as private.March 25, 2019 at 1:49 pm #201904AvaMemberHi 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.March 28, 2019 at 7:25 am #202275dramalanguageSpectatorThe 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/myz2koMarch 29, 2019 at 1:04 pm #202472MkModeratorIf you are changing course duration . Remember it will not work for old students. You will need to add new students to check it.April 4, 2019 at 8:36 am #203192dramalanguageSpectatorI added new students and tested. But The duration is still displayed as 9999.April 5, 2019 at 7:30 am #203369loganMemberHello, 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);April 8, 2019 at 1:37 am #203618dramalanguageSpectatorI've added the above codes, but they still don't workable.April 8, 2019 at 5:26 am #203640loganMemberHello, 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.April 8, 2019 at 9:57 am #203671dramalanguageSpectatorThis reply has been marked as private.April 9, 2019 at 7:35 am #203787loganMemberYes !! 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.April 10, 2019 at 2:11 am #203942dramalanguageSpectatorI 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. -
AuthorPosts
- The topic ‘display course duration parameter’ is closed to new replies.