• Resolved zakarias4783

    (@zakarias4783)


    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 zakarias4783.
    • This topic was modified 1 year, 10 months ago by zakarias4783.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dear @zakarias4783

    It seems like you are using a custom functions. I am very in that case we can’t help you. Because at this moment we are not providing any customization related support.

    Thank you

    Thread Starter zakarias4783

    (@zakarias4783)

    hello there i hope you’ll answer to this message in few hours :
    it’s not about fixing my code
    it’s about showing me how to correctly use your action hook :
    ‘tutor_lesson_completed_after’

    because till now, no matter the action i use the event is not triggered when a lesson is marked as a complete or finished.

    So i didn’t ask you for a customization, i asked you to show me how to use it properly

    hope to hear from you soon positively !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TutorLMS class (hook ) not working as expected’ is closed to new replies.