• First of all I’d like to thank you for this great plugin.

    Next, I’d like to point out a few glitches I’ve observed while using it.

    The course images are not getting displayed CORRECTLY. Stressing that they ARE getting displayed but NOT CORRECTLY. Meaning they are displayed out of the intended markup.
    Reason for this is the incorrect usage of the function course_image

    In file bp-sensei-functions.php at line number 262, lies this code:
    $active_html .= $woothemes_sensei->post_types->course->course_image( absint( $course_item->ID ) );

    In this call, the parameter “return” is not passed, so the image is being displayed (and out of the intended markup), instead of being returned.

    The problem is compounded when there are multiple courses and hence multiple images.

    Same thing is at the line no. 470 .

    Another glitch is that there is no space in text in the Course Progress.
    For example:

    31 Lessonsin XYZ0 of 31 lessons completed

    Note that there is no space between Lessons and in
    Similar no space between XYZ and 0

    Relevant code is in line 286 to 291 of bp-sensei-functions.php

    Is there a way to override this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author BuddyBoss

    (@buddyboss)

    Hi @shariqkhan2012
    1. Add this code inside your child theme’s functions.php: https://codeshare.io/KU2jh

    To overide the active-courses.php, copy: /plugins/sensei-buddypress/templates/active-courses.php to /themes/child-theme/bp-sensei/active-courses.php

    Replace line #15 with the next line

    $courses_html = bboss_sensei_get_active_courses_html();

    Do the same for line #470

    2. A following little custom css rule should fix the spacing between course process wording.

    section.entry span.course-lesson-progress {
        padding-left: 20px;
    }

    I don’t see line #470 in this file…

    Plugin Author BuddyBoss

    (@buddyboss)

    Hi @szmek9

    /plugins/sensei-buddypress/includes/bp-sensei-functions.php line #470

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Course Images are getting displayed incorrectly’ is closed to new replies.