SPLMS - "Course Duration" Information Display is Incorrect... - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

SPLMS - "Course Duration" Information Display is Incorrect...

CP

Carl B Parker

Template 2 years ago

Hello, the Course Duration on the individual course listing page is not showing correctly. It always says "10:00:00"

Please see image in hidden link.

0
7 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #96752

Hello Carl B Parker

Which template are you using? Please share the page link for checking the issue.

Best regards

0
CP
Carl B Parker
Accepted Answer
2 years ago #97030

It's Language School Template. Did you download the image I sent a link to? Putting direct link in hidden asset.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #97050

It shows the lesson video duration of that course. Please change your lesson video duration and you will see the changes. It is 10:00:00 because by default the lesson video duration is set to it.

0
CP
Carl B Parker
Accepted Answer
2 years ago #99184

This makes no sense. There is no place to change that (video duration) as a parameter. All there is is a "Video URL" which is pointless if I'm not using a video. Are you forcing us to use videos for every Course description? If we don't, it will display some misleading time on the page under "course duration"? This looks like it's only meant to service on-line classes which is useless in many applications.

0
CP
Carl B Parker
Accepted Answer
2 years ago #100548

Hello, I need a real answer to this. so far it's a definite bug in the component and I'd like it fixed.

You have given me no way to change the "Course Duration" value which is some random video duration value that I have no access too. It's making me publish infomration on my site which is confusing, wrong and meaningless. All you do is tell me to change and value (Lesson Video Duration) that does not exist. Really?

Offer a real solution to this please. It's your product. Noone else can fix it. I've already paid people to fix other stuff you stone-wall paying customers on. Fixing this bug to pull information from the ACTUAL "Course Duration" field in the back end would be a good start.

Burying heads in sand does not make a problem go away.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 2 years ago #110184

Apology for the delayed response.

  • The course duration is only shown on the courses menu where all courses are shown.
  • The course details page shows lesson duration.
0
CC
CHRIS CAPO
Accepted Answer
2 years ago #111958

Carl B Parker

I went to:

/components/com_splms/models

course.php

And commented out

// Duration
            $query->select("CASE WHEN lessonsDuration.timeSum IS NULL THEN '00:00:00' ELSE lessonsDuration.timeSum END as duration")
                ->join('LEFT', '( SELECT b.course_id, SEC_TO_TIME( ROUND( SUM( TIME_TO_SEC(b.video_duration) ) ) ) AS timeSum FROM #__splms_lessons b WHERE b.published = 1 GROUP By b.course_id) AS lessonsDuration ON a.id = lessonsDuration.course_id');

And it seems to work

0