Award only one time | WordPress.org

[ad_1]

Hi @giannis4

I have performed a test with h5p points per score with two different users by checking the “Award only one time” option and both have achieved the points.

Please could you make sure that you are using different users in each test and make sure that the lesson is being completed correctly?

Feel free to open a ticket at [email protected] and include detailed screenshots.

Best regards.

Hi @dioni00,

Thank you for the answer. I am not referring to the points for completing the lesson but awarding the H5P score the student achieved in the lesson as points.

Checking the plugin’s code I saw the following in filters.php like 58:

// Skip if points of this type has been already awarded
            if( (bool) get_post_meta( $content_id, $prefix . $points_type . '_awarded', true ) ) {
                continue;
            }

This seems to check a flag of the lesson whether the points have been awarded instead of checking if the student has completed the lesson.

Hi @giannis4

Thanks for your reply.

After checking the integration, we have detected the error, thank you for sharing the code part. We have notified the development team to fix this issue.
The update will be released as soon as possible.

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer