TutorLMS class (hook ) not working as expected
-
Hello there, i writed down a code to create an experience bar that is filled by user when he achieve certain things like completing any course or any lesson or any quiz, but the problem is :
when he complete a course everything run smoothly and experience points are given but it’s definitly not the case when he complete any lesson of any course or any quiz despite i used the right TutorClass in documentation which is :
tutor_lesson_completed_after
and tutor_quiz/attempt_ended
here is the code (including the function that display progress bar, but the problem is within the function award_experience_points :
https://codeshare.io/qP48qk
Steps to reproduce the problem :
Use this account or create a new one :
[email protected]
password : Aucoeurdesombres
or create a new dummy one
enroll in a course and explore test lesson, mark it as complete.
Experience points will not be attributed to the progress bar unlike when the course is completed.- This topic was modified 1 year, 10 months ago by .
- This topic was modified 1 year, 10 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘TutorLMS class (hook ) not working as expected’ is closed to new replies.