thomasplevy on "[Plugin: LifterLMS] Unlimited quiz attempts"

ساخت وبلاگ

I was working on something with quizzes and I have some problem/notice.

If the quiz is set to unlimited attempts(blank) that quiz can be take only once even if there is notation on the quiz page that allowed attempts: unlimited.

Is this normal ?

If i change allowed attempts to something for example 2, i can retake the quiz.

https://wordpress.org/support/plugin/lifterlms

https://wordpress.org/plugins/lifterlms/

@jurasjo,

Unlimited quizzes *definitely* allow users to take a quiz an unlimited number of times. I'm not seeing any issues here.

Do you have a URL where I can register for a free course with a quiz and take a look at what's going on firsthand?

I know you've been heavily customizing LifterLMS's front end via JS and CSS, are you certain you haven't accidentally hidden a button that would allow you to retake the quiz?

Thanks,

I have found what is the problem.

It is related to translation and that piece of code in start-button.php

<?php
if ( empty( $quiz ) || 'unlimited' === $attempts || $attempts > 0 || '' == $quiz->get_end_date( $user_id ) ) {
?>

When word 'unlimited' is translated button doesn't appear.

If translation is removed(Loco translate) or if I change word 'unlimited' to word which is matching translated word in Loco, then it works.

@jurasjo,

Thanks for this find,

I'll fix this in a future release and let you know when it's available to actually translate.

Take care,

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 327 تاريخ : پنجشنبه 31 تير 1395 ساعت: 4:46