Babstonks
Forum Replies Created
-
Hi,
My request was not complete sorry.
Yes the problem came since the custom code was added.
By “two filters” I mean “two keywords” and only this.
And it’s in CSV export. The multi keywords works well
Best Regards
Hey,
I’m back. The plugins work well but i found a bug. When you want to export entries with 2 filters or more the exportation doesn’t work and give an empty file.
Thanks
Hi,
Finally it works well ! Thank you for your patience and you did a good job !
A precision: for the plugin to work you must replace on this line “wp” by the prefix of your database
$sql = str_replace( 'WHERE', 'WHERE metas.entry_id IN ( SELECT entry_id FROM wp_frmt_form_entry_meta WHERE', $sql );Thanks a lot,
Kind Regards.Hi,
Oh but I understand that you have a lot of work! I must not be the only one asking you for plugins.
Thank you for listening to my request.
I await your news.Kind Regards
Hi!
Do you have any news regarding my request ?
I tried to develop my own plugin without sucess.Best regards.
Forum: Fixing WordPress
In reply to: Problem with e-mail notificationHi,
dnschecker doesn’t found any problem especially just a warning on SMTP.
How can I update Mail records ? Because the mailbox works but not when email comes from WP.
Best regards
Thanks for your answer!
I’m waiting for your answer.Best regards !
Hi,
I’ll try to re-explain what I’m trying to achieve :
I would like to search with several filters on different fields.
For example, two fields : Name and City. I would like, when i search in the filter field : James, London all entries that combine these two words. Not all James and all London but the both (AND logic). There is the code you gave to me : `<?php<?php add_filter( 'forminator_query_entries_where', 'wpmudev_allow_multiple_filters', 10, 2 ); function wpmudev_allow_multiple_filters( $where, $args ){ global $wpdb; if( !isset( $args['search'] ) ){ return $where; } if( strpos( $args['search'], ',' ) == false ) { return $where; } $search = explode(',', $args['search']); foreach( $search as $key => $value ){ if( $key == 0 ){ continue; } $where = str_replace( $value,'', $where ); $where.= $wpdb->prepare( " AND metas.meta_value LIKE '%s'", '%' . $wpdb->esc_like( trim( $value ) ) . '%' ); } $where = str_replace( ',','', $where ); return $where; }Here’s an export of my form : https://docs.google.com/document/d/1TBg-xBHzmASLrIbHZgXyaWs415WzwUVtkCQ5Makhmns/edit?usp=sharing
Maybe it’s clearer now, I’m bot native english speaker so it’s not the easiest way for me to find a solution.
Best regards.
Hello,
Unfortunately, when i change the “OR” by “AND” It doesn’t working and I don’t know why :/
One key word search works but with 2, it doesnt works.
I write key words like this : “primo, caen” and display nothing.
Just “primo” or “caen” works alone.Best regards
Thanks for your answer, but,
I replaced “OR” by “AND” and I tested this but when I wrote, for exemple : “Primo, Caen” nothing appeared, only research with one word works.
I added screenshots to the gdoc if you wantBest Regards.
Hi !
Oh my bad, I didn’t notice the “OR”. Obviously I was looking for submissions that contain all the keywords at the same time.
I’m not sure if I just replace “OR” by “AND” it will be working (I tested :D).
How can I change it to a “AND” logic ?
I precise that I search through all the fields too.Thanks a lot.
Hi,
Thanks for your answer.
I followed the tutorial to implement the plugin. In my “must use” plugin section the “multi-filters” file that I’ve created is activate and it’s write that the plugin will be launch automatically. So I tried the plugin for filter submissions and I dind’t get succes ^^. Here a link to my screen captures : https://docs.google.com/document/d/127GycK4nH7_1ur7Cr-ngJ9ooshtKZh7FNCyhkdQIu74/edit?usp=sharing
Hope you will understand my problem.
Thanks a lot.
Best Regards.It’s a pleasure to speak with an active team like you.
Waiting for your return,Kind Regards.
Ok thanks for your answer, I think it can be a good additional function for the plugin :D.
Kind Regards.
Hi,
Thanks for your reply, your answer resolve the problem.
Best regards