evangv
Forum Replies Created
-
For those who are interested in this modification, you can edit the complete.php file located in wp-content > themes > eduma > learnpress-v3 > content-quiz > buttons.
<?php /** * Template for displaying Complete button in quiz. * * This template can be overridden by copying it to yourtheme/learnpress/content-quiz/buttons/complete.php. * * @author ThimPress * @package Learnpress/Templates * @version 3.0.0 */ /** * Prevent loading this file directly */ defined( 'ABSPATH' ) || exit(); ?> <?php $quiz = LP_Global::course_item_quiz(); /* start edit */ $current_question_id = $quiz->get_viewing_question( 'id' ); $next_id = $quiz->get_next_question($current_question_id); /* finish edit */ ?> <?php/* start edit */?> <?php if ( !$next_id ) { ?> <?php/* finish edit */?> <?php do_action( 'learn-press/quiz/before-complete-button' ); ?> <form name="complete-quiz" class="complete-quiz form-button lp-form" method="post" enctype="multipart/form-data"> <?php do_action( 'learn-press/quiz/begin-complete-button' ); ?> <button type="submit" class="button-finish-quiz"><?php _e( 'Complete', 'eduma' ); ?></button> <?php do_action( 'learn-press/quiz/end-complete-button' ); ?> <?php LP_Nonce_Helper::quiz_action( 'complete', $quiz->get_id(), get_the_ID() ); ?> <input type="hidden" name="noajax" value="yes"> </form> <?php do_action( 'learn-press/quiz/after-complete-button' ); ?> <?php/* start edit */?> <?php } ?> <?php/* finish edit */?>
Forum: Plugins
In reply to: [GamiPress - LearnPress integration] Quiz Event: passing quizIt finally worked! There was a strange setting that helped this trigger work, that you might want to take into consideration in your next update:
The quiz was regarded as passed when I changed the course setting->Assessment->from ‘evaluate via quizzes’ to ‘evaluate via lessons’. In my case it doesn’t make a difference, because I have deactivated the course completion, but it seems to affect the trigger somehow.Forum: Plugins
In reply to: [GamiPress - LearnPress integration] Quiz Event: passing quizNo, I haven’t tried that. Only when ‘finish a quiz’ and it works.
Forum: Plugins
In reply to: [GamiPress - LearnPress integration] Quiz Event: passing quizI have tried everything: deactivated all the plugins, tried different kind of marks, updated all the plugins. The strange thing is that my quizzes appear passed in LearnPress (Gradebook and in site messages – green ticks appear) but Gamipress still receives them as failed.
I will wait until new versions of LearnPress and gamimpress are available.
Thank you.Forum: Plugins
In reply to: [GamiPress - LearnPress integration] Quiz Event: passing quizAfter reading the logs of Gamipress, I think I finally found out the problem!
Every time I pass a quiz, the fail event is triggered!
https://i.ibb.co/0MTDLPY/2020-03-12-2-34-55.pngAny ideas why this is happening?
Forum: Plugins
In reply to: [GamiPress - LearnPress integration] Quiz Event: passing quizI have tried all of these but no result.
Forum: Plugins
In reply to: [GamiPress - LearnPress integration] Quiz Event: passing quizI still can’t seem to make it work, even after the latest update. Adding a credit when a user finishes a quiz works fine, but when they pass it, doesn’t work. Should I notice anything special ?
Forum: Plugins
In reply to: [GamiPress - LearnPress integration] Quiz Event: passing quizHello and thank you for this feature, but I tried it 3 times (add a credit when I pass a quiz) and it did not work. I tried it both for already existing and for new quiz. Could you please check this?