BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Lessons & Modules Order
Tagged: lessons, module, order, sensei, social learner
- This topic has 4 replies, 2 contibutors, and was last updated 8 years, 7 months ago by Ammo.
Question
March 7, 2016 at 7:33 am #61848@ammocanCan 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
March 8, 2016 at 4:43 am #62039@
AnonymousHi @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
March 8, 2016 at 6:05 am #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’.
March 11, 2016 at 2:52 pm #62604@
AnonymousHi @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
March 13, 2016 at 1:50 pm #62809@ammocan@pallavi Outstanding! Thank you!
- The question ‘Lessons & Modules Order’ is closed to new replies.