hoangemini
Forum Replies Created
-
I also have the same problem
File: wp-content/plugins/contact-form-7/includes/contact-form.php 1054: $result += $submission->get_result();I try print_r line 1504 it goes through 2 times, the first time it works properly, the second time the error appears.
A temporary fix, I don’t know the exact fix yet, but you have to fix the plugin.
Add this line of code:global $wpcf7_control_init_inited; if ($wpcf7_control_init_inited) { return; } $wpcf7_control_init_inited=1;In the function wpcf7_control_init at the file wp-content/plugins/contact-form-7/includes/controller.php
The completed code will look like below, the error will be fixed:
File: wp-content/plugins/contact-form-7/includes/controller.php 13: /** 14: * Handles a submission in non-Ajax mode. 15: */ 16: function wpcf7_control_init() { 17: global $wpcf7_control_init_inited; 18: if ($wpcf7_control_init_inited) { 19: return; 20: } 21: $wpcf7_control_init_inited=1; 22: 23: if ( WPCF7_Submission::is_restful() ) { 24: return; 25: } 26: 27: if ( isset( $_POST['_wpcf7'] ) ) { 28: $contact_form = wpcf7_contact_form( (int) $_POST['_wpcf7'] ); 29: 30: if ( $contact_form ) { 31: $contact_form->submit(); 32: } 33: } 34: }@cbutlerjr thank you! <3
By adding
subscribers_only: trueit works, I’m stupid!Forum: Plugins
In reply to: [Flamingo] Meta user login not stored@takayukister thank! it is works well
Forum: Plugins
In reply to: [Flamingo] How to disable save to Flamingo Contact Form 7 Multi-StepI found the solution by adding options
demo_mode: on@cbutlerjr Thank you very much!
#1 I did it, it worked fine, I was silly not reading the document and ignoring the $action variable. Good!!!#2 So the action of sending a password reset link to the current email has not been done? A little sad.
I have read here for the function of sending an activation link by email, and it works well. So I thought there was a way to send a similar link to perform a password reset.
https://rocketgeek.com/filter-hooks/send-new-user-an-activation-link-in-the-new-registration-email/I want to ask a little more! is there a way when Login Failed won’t hide the login form. Now it will show
wpmem_msgand hide the Login Form, I want it to show both, wpmem_msg above the Login Form- This reply was modified 5 years, 10 months ago by hoangemini.
Forum: Plugins
In reply to: [DCO Comment Attachment] How to get link image by get_commentsAfter self-study, I know how to get the url image in the comment with the following code, this code put in the functions.php file.
functions.php:function get_attachment_url_image_comment($comment_id) { $meta_key = 'attachment_id'; $attachment_id = get_comment_meta( $comment_id, $meta_key, true ); $full_img_url = wp_get_attachment_image_url( $attachment_id, 'full' ); return $full_img_url; }view:
<?php $comments = get_comments($param) ?> <?php foreach($comments as $comment): ?> echo get_attachment_url_image_comment($comment->comment_ID); <?php endforeach; ?>It works fine!
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Set email verificationGreat question! I also want to do this, I will read the document, thank @leons363 and @cbutlerjr
Forum: Plugins
In reply to: [Polylang] How to open new tab when switch language?I already know the answer for myself, use
$translations = pll_the_languages(array('raw'=>1));to create custom language switcherForum: Plugins
In reply to: [Polylang] How to open new tab when switch language?@the Coder thank you! How to build language switcher?