Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Jefferson,
Can you try re-downloading the plugin from your account page? I think there's some files missing or the download was broken.
February 25, 2020 at 4:29 PM in reply to: ✅How to filter post select field by metabox custom field? #18400Anh Tran
KeymasterHi Rick,
I think that can be done with some code. MB Builder couldn't help building complex queries.
This is a pseudo code that can help you to start with:
You might need to change the query to get the proper characters for you.
Anh Tran
KeymasterHi SIW, it's already supported.
February 25, 2020 at 4:18 PM in reply to: ✅Field conditional logic doesn't work with Gutenberg #18398Anh Tran
KeymasterHi Yumiko,
Thanks a lot for being our customer for years! I really appreciate that and your support!
Regarding this issue: a problem here is you set the meta box to appear to only 2 post types post and general. So, when you set the conditional logic for post type = page, it can't work (because the meta box is not loaded for that post type). Can you please change the
post_typesparameter of the meta box to includepageand try again? I've checked and seen that it supportspost_typerule.February 25, 2020 at 4:12 PM in reply to: ✅Allow editing form data which is submitted by "that" author #18397Anh Tran
KeymasterHi Calpaq,
In the latest version of the plugin, we added a check for permission, that only users with proper capability can edit posts. You can see it with this code:
private function user_can_edit() { if ( empty( $this->config['post_id'] ) ) { return true; } if ( ! is_user_logged_in() ) { return false; } $post = get_post( $this->config['post_id'] ); return $post && ( $post->post_author == get_current_user_id() || current_user_can( 'edit_post', $post->ID ) ); }That means only logged in users which either is the post author or have edit post permission can edit that post. If you allows non-logged in users to edit post, they can simply put any post ID in the URL and thus, can edit any post/page of your site.
Anh Tran
KeymasterHi Jon,
Did you mean creating a custom field "name" for products? If yes, then simply create a meta box with one text field for the
productpost type. Please see this guide to start.Anh Tran
KeymasterHi, thanks for your feedback. Basically, you should not use both the "required" checkbox in the builder (which uses browser validation) and the validation required rule (which uses a JS library to check). I'll check the error and submission and see if there's any bug with that.
Anh Tran
KeymasterHi James,
I think you can do that by using JS to count the
rwmb-cloneelements. Or if you use PHP, you can get viacount( $field_value )(as the value of a cloneable field is an array).Anh Tran
KeymasterHi boethius, you're right about the capability name. It should be
edit_others_posts.The plugin checks if user can edit the current post with this code:
current_user_can( 'edit_post', $post->ID )Can you please try a plugin like Members/User Roles Editor to make sure that roles can edit posts?
Anh Tran
KeymasterHi Kathrin,
I'm afraid I'm not very clear about your question. Can you please provide more details?
February 22, 2020 at 11:52 AM in reply to: ✅Field conditional logic doesn't work with Gutenberg #18374Anh Tran
KeymasterHi Yumikom,
I see you set a condition to show a field based on
post_type. Unfortunately, the plugin doesn't support that kind of condition. You can change the visibility of a field or a meta box based on a value of another field or another input.February 22, 2020 at 11:50 AM in reply to: ✅how to disable or readonly a fieldgroup for a specific user or user role ? #18373Anh Tran
KeymasterHi,
Thanks for the clarification. I think it can be done with custom JS code. Basically, you need to listen for changes in inputs and enable/disable the
readonlyattribute of fields.Anh Tran
KeymasterHI Nicola,
The VAT amount is automatically collected by the payment gateway (Gumroad in this case).
Can you please send me the total amount, so I can generate an invoice for you?
Anh Tran
KeymasterHi rfors,
Thanks for your message. Unfortunately, we haven't finished this feature yet. We'll let you know when it's done.
February 20, 2020 at 3:58 PM in reply to: ✅image_upload field select files not working on iphone #18354Anh Tran
KeymasterHi, let us check that. Thanks for reporting.
-
AuthorPosts