BuddyBoss Home – Web Support Forums Solutions Social Learner Lessons & Modules Order

Viewing 5 posts - 1 through 5 (of 5 total)
  • Question

    #61848
    @ammocan

    Can you please share with me, where I can find the code to change the order of how lessons and modules are presented when viewing a single course?

    Currently, if a course has lessons both in and out of a module, the lessons not in a module are being presented before the lessons in a module.

    I have tried figuring out how to change their order, but I haven’t been very successful.

    I sure would appreciate any assistance you could provide. By the way, this is for the Sensei flavor of Social Learner.

    Thank you!

    Answers

    #62039

    Anonymous
    @

    Hi @ammocan, you can move the lessons now in a module by adding following hooks in functions.php

    
    remove_action( 'sensei_single_course_content_inside_after', 'course_single_lessons', 10 );
    add_action( 'sensei_single_course_content_inside_after', 'course_single_lessons', 25 );
    

    Regards

    #62051
    @ammocan

    @pallavi Thank you for your reply! You were on the right track, but not for my exact issue.

    By default, the Sensei plugin orders Modules before the “Other Lessons” on a course page. However, when activating the boss-sensei plugin, this changes to the “Other Lessons” being before the Modules, which isn’t as it was intended and provides a horrible user experience.

    boss-sensei -> includes -> main-class.php

    Once again, I pinpointed the culprit to being in the “main-class.php” file in the boss-sensei plugin. I corrected this by changing the priority parameter on line 1940 of the “public function boss_edu_change_modules()” from ’20’ to ‘8’.

    #62604

    Anonymous
    @

    Hi @ammocan, Thanks for your hard work…I have suggested same to our development team to see if it also help them to get it fixed.

    Regards

    #62809
    @ammocan

    @pallavi Outstanding! Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The question ‘Lessons & Modules Order’ is closed to new replies.