<< Back
Message for this thread
Posted by Messages text
Jim Barrington

Noavatar
Total post : 11
> Profile
Written on : 19/09/2006 20:52 ( more than one month )
Object : Course Category Count Error
When you create a category with subcategories and insert a course into the subcategory folders, the highest level category counts the course as (0) instead of however many courses are inside the subcategory folders.

Example:                           Top Category (0)   <-- If the category has two subcategories each with 1 course this should count (2) not (0)
                                                                |____ Subcategory (1)
                                                                |____ Subcategory (1)

Jim
 
Jim Barrington

Noavatar
Total post : 11
> Profile
Written on : 02/10/2006 15:19 ( more than one month )
Object : Re: Course Category Count Error
I badly need a fix to this problem. I am demonstrating a proposed online campus to charities and business advisory services with a view to getting it sponsored and the ones I have sent to the demo tell me there are no courses they can view (because the top level count says (0).

If nobody can offer a code fix for this bug can someone point me to which files need to be edited so I can try to fix it myself.

Which files are called and what are the dependencies? Are there changes needed in the database?

kind regards

Jim
 
Erba Claudio

Avatar
Total post : 2688
> Profile
Written on : 02/10/2006 18:18 ( more than one month )
Object : Re: Course Category Count Error
hope that Fabio will read this
I will send hm an e-mail.
Claudio
Docebo CEO and Founder
www.docebo.com
 
THIOLET Damien

Noavatar
Total post : 12
> Profile
Attachment : file
Object : Re: Course Category Count Error (Damien contribution)
Hello,

I saw the problem of Category Count Error. I agree it would be much better to see in parent categories the total of courses included in subcategories. As I didn't see any reaction here, I decided to look inside the code.

Here is my contribution. Please find here attached the  \doceboLms\lib\lib.course.php file I changed to get the following result.  (see attachment link on top right)

Main category   ----  Category  1 (course content (3))   -----Category  2 (course content (1)) -----Course (a)

                                                                                   -----Category  3 (course content (2)) -----Course (b)
                                                                                                                                         ------
Course (c)

You can imagine all possible organization of your courses and parent categories will always show total courses including itself + all sub categories.

I also suggest you change using the administration panel, menu "Principal or Main', 'languages"    in leaarning management system, module course, the key _category_empty   message to suggest visitors visiting subcategories instead of having  "no course in this category" message.

For thoose who want to have a look into the code, look the enclosed file under Notpad++ or any other editor from line  947 to 535.  I made some comment to help.

Before copying the enclosed  file to your ftp server, please rename old file and keep a copy. But all tests I made were successful.

I suggest developers to test and publish it or adapt.  ( I precise I'm not a developer, I just have some basic knowledge)

Enjoy !

Damien
Message modified by : Damien on : 10/01/2007 20:00
 
ee hang liang

Avatar
Total post : 144
> Profile
Written on : 18/03/2010 10:16 ( more than one month )
Object : Re: Course Category Count Error
Hi Damien,

I am using Course Catalog for controlling the course visibilities. The Course Category Count is also error.

I am using Docebo 3.6.0.3.

Can your file helps?

Appreciate your reply.

From LiangEH
 
<< Back