nitneuq22
Forum Replies Created
-
Hi !
Sorry for the delay, I tried this :
add_filter( 'forminator_quiz_is_submittable', 'custom_limit_quiz_submission', 10, 3 );
function custom_limit_quiz_submission( $can_submit, $quiz_id, $quiz_settings ) {
? ? // Limite des soumissions à 1 par utilisateur
? ? if ( ! empty( $quiz_settings['logged-users'] ) && filter_var( $quiz_settings['logged-users'], FILTER_VALIDATE_BOOLEAN ) ) {
? ? ? ? if ( is_user_logged_in() ) {
? ? ? ? ? ? $user_submitted = Forminator_Form_Entry_Model::count_user_entries( $quiz_id );
? ? ? ? ? ? if ( $user_submitted >= 1 ) {
? ? ? ? ? ? ? ? $can_submit = array(
? ? ? ? ? ? ? ? ? ? 'can_submit' => false,
? ? ? ? ? ? ? ? ? ? 'error' ? ? ?=> esc_html__( 'You’ve already taken this quiz.', 'forminator' ),
? ? ? ? ? ? ? ? );
? ? ? ? ? ? }
? ? ? ? } else {
? ? ? ? ? ? $can_submit = array(
? ? ? ? ? ? ? ? 'can_submit' => false,
? ? ? ? ? ? ? ? 'error' ? ? ?=> esc_html__( 'You must be logged in to take this quiz.', 'forminator' ),
? ? ? ? ? ? );
? ? ? ? }
? ? }
? ? return $can_submit;
}But unfortunately it won’t work, i don’t know why, the system is the same, maybe it’s the filter
Hi @wpmudevsupport13 !
Thank you ?? I’ll be waiting then ^^
Thank you for your quick answer !
Could you guide me on where I can find the system for the “classic” forms (the plugin’s files) ? maybe I can adapt the code and use an other hook to get this to work.
Thank you ??
Forum: Plugins
In reply to: [ACF Quick Edit Fields] Data gets erased when quickeditHello it’s been a while now, can someone help me ?
I installed the 3.1.3 version, it didn’t work at first. Then I deactivated WP Rocket as your troubleshooting documentation said, and it worked this time… I didn’t think WP Rocket would act on admin pages…
Okay then this topic can be marked as solved, I will open a new one, thank you ??
- This reply was modified 1 year, 3 months ago by nitneuq22.
I already tried the beta version, the 3.1.3 version and 3.1.0 version, and the issue is still here unfortunately
Well… I was on another website, to update the version of the plugin, and I realized that there is the issue I described with the beta version… Everything looks fine, the date is displayed, but when I try to set a date like in 2 minutes, well, 2 minutes later the post is still published.
So it is solved for one of the websites, but not the other one
When I go to the database, it successfully created the actions like this : ‘{“expireType”:”private”,”category”:[],”categoryTaxonomy”:””,”date”:1701331440}’
But they are not taken when the time has come to make them private (I don’t really know if what I’m saying is english sorry about that)
Edit : It seems to work, I was using the beta version you sent me, and it didn’t work. Now that I have created the table in the database, I put the 3.1.3 stable version and it worked
- This reply was modified 1 year, 3 months ago by nitneuq22.
I modified the command to match the prefix of my database, it successfully created the table, and the plugin has no longer database structure problems. The thing is, now, when I try to add an expiration date, I tested one minute later but it didn’t work. I suppose it solved the issue at 90% for the new version, but it still doesn’t work, the wished actions aren’t done
Hi ! I tried on the clone I made, and it worked. But then I tried on the “real” website, but still doesn’t work. I’m quite sure there is a problem transfering data from the old structure to the new, but I can’t figure out why the “Fix Database” option doesn’t work. I assume it creates database tables ?
Forum: Plugins
In reply to: [ACF Quick Edit Fields] Data gets erased when quickeditHi, I’ll keep sending messages, I really need an answer
Hi !
I actually have no clue on how to solve this problem. I can’t update, downgrade the version, it works on 2.9.0 but only for posts, whereas I also need it for my CPT, so how is it possible to solve it, especially when it’s not the only website I’m facing this issue with…
Can someone share at least a trail with me ? I thought about deleting corresponding lines in database, to completely recreate the structure, but I’m not used to the plugin so I don’t really know what cell or line to modify.
It seems that there is an incompatibility between the old structure (2.9.0) and the new structure. The plugin can’t transfer the informations from the old to the new, maybe it can help to have these informations.
Hello, do you have any idea ? It’s been a while now…
I tried to uninstall the plugin and reinstall the new version, to make sure I can set my expiration dates. But even like this there is a configuration problem… There is no solution ? I can’t uninstall, I can’t update, the plugin doesn’t work with this version (2.9.0) and I can’t change it, what can I do ?
Edit : It works with posts for version 2.9.0, but not for my CPT anymore
- This reply was modified 1 year, 4 months ago by nitneuq22.
Forum: Plugins
In reply to: [ACF Quick Edit Fields] Data gets erased when quickeditHello, is someone here to help ?