Forum Replies Created
-
AuthorPosts
-
December 21, 2020 at 9:37 AM in reply to: ✅Administrator for to locate, edit and save any user's data #23657
Long Nguyen
ModeratorHi Brian,
If the client has an administrative role, the user dashboard in the backend supports to search and edit any users as well. If the client wants a user dashboard form on the frontend, please try to use other third-party plugins such as WP User Frontend https://wordpress.org/plugins/wp-user-frontend/.
I'm going to create a feature request for the developer team to support a form like this case. Thank you.
Long Nguyen
ModeratorHi Alex,
I recommend using the field
taxonomyortaxonomy_advancedto select a taxonomy for the post and show/hide another meta box base on the field value. See my screen record https://share.getcloudapp.com/YEuQkPlk.December 20, 2020 at 10:02 PM in reply to: ✅Unable to read multibyte text in code output by the builder #23649Long Nguyen
ModeratorHi Yumikom,
We've updated the Online Generator and MB Builder, used the PHP Encoder to encode the Tonal Language or accented charaters (Pestañas, Vehículo, Tiếng Việt) and optimize the generated PHP code.
If you use the Builder to generate the code then paste the code to the file functions.php, please re-type the name of the field. I’m going to discuss with the developer team to research and cover this case. Thank you.
Long Nguyen
ModeratorHi,
The PHP code is generated by the Builder, you can share it with other sites that do not have the MB Builder extension. And I've checked the code to see the settings of the meta box and custom fields. You can learn to use it in the documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code.
December 20, 2020 at 9:42 PM in reply to: ✅How to create a form with just a few fields of a Fields Group, without posting #23647Long Nguyen
ModeratorHi Beda,
The Frontend Submission form is an extension that lets developers create custom forms with custom fields so users can submit posts on the front end of a website. It only supports to show all custom fields in a meta box, not a field in a group so you can create a new meta box (Field Group) to show one field.
And of course, it will create a post after clicking the button Submit. If you do not want to create a post, the hook
rwmb_frontend_before_processwill help you to prevent the form fires to save/update a post.Get more details in the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#form-actions.
Long Nguyen
ModeratorGot the issue. You've added the prefix for the field ID, screenshot https://share.getcloudapp.com/DOuodQb7.
So the field ID when using the shortcode is
flipimagesingle_image_ngobiqx24ya. Get more details in the tab Code of Field Groups.add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $prefix = 'flipimage'; $meta_boxes[] = [ 'title' => esc_html__( 'Flip Image', 'text-domain' ), 'id' => 'flip-image', 'post_types' => ['post', 'portfolio'], 'context' => 'side', 'priority' => 'low', 'fields' => [ [ 'id' => $prefix . 'single_image_ngobiqx24ya', //here 'type' => 'single_image', 'name' => esc_html__( 'Single Image', 'text-domain' ), ], ], ]; return $meta_boxes; }Long Nguyen
ModeratorHi,
Thanks for your reporting. I also experience this issue. WordPress 5.6 seems does not set the max width for the editor, I will create a feature request for the developer team to improve this case.
Long Nguyen
ModeratorHi Nuno,
Please go to Admin Dashboard > Settings > Permalinks > Save the current settings (Post Name) again to update the permalink for the post type.
Long Nguyen
ModeratorHi,
This is a public forum so you should share the login credentials via this form https://metabox.io/contact/.
Long Nguyen
ModeratorHi Steve,
WPBakery is a premium plugin so I've not checked the shortcode with this builder before. Please share a copy of this plugin via the contact form https://metabox.io/contact/, I will test the shortcode on my end.
FYI, I also test the shortcode with Elementor and it works as well.
December 17, 2020 at 10:45 PM in reply to: ✅problem initializing a text field value in a block. #23602Long Nguyen
ModeratorHi,
You can change the JavaScript code to
jQuery(document).ready(function($) { $('body').on('change', function() { var myParamsStr = JSON.stringify(window.params_object); if (myParamsStr) { console.log(myParamsStr); var x = JSON.parse(myParamsStr); console.log(x); var y = JSON.parse(x.json_params); console.log(y.result); $('body').find('#text_41r32ufnhu8').val(y.result); } }); });to add the value for the text field
text_41r32ufnhu8. But it will show the old value of the fieldnumber_uqjo7f193fbecause the Block Editor does not reload the page after update/save the post and the codewp_localize_script( 'test_script', 'params_object', array ('json_params' => json_encode($array_params),));still localize the old result.
I think you can use some JavaScript code to get the field
number_uqjo7f193fvalue on typing and show on the block fieldtext_41r32ufnhu8immediately.jQuery(document).ready(function($) { $('body').on('keyup', function() { var number = $('#number_uqjo7f193f').val() $('body').find('#text_41r32ufnhu8').val(number); }); });Long Nguyen
ModeratorHi,
I think it's the auto-fill username and password function of the browser or a browser add-on. Please try again with the Incognito mode to check your username and password.
https://support.google.com/chrome/answer/95464You can also send an email to the new user by using the hook rwmb_profile_after_process and the function wp_new_user_notification() base on the user ID.
Long Nguyen
ModeratorHi,
I do not see the user name and password of the logged-in user in the Registration form. Screenshot https://share.getcloudapp.com/z8u4kQxN.
Could you please check the shortcode again?
Long Nguyen
ModeratorHi,
If you use the Builder to create the field, please go to the tab Code to get the code snippet. Then add the snippet to the file functions.php in the theme folder and start adding the validation for custom fields. See my screen record https://share.getcloudapp.com/6quxE8v8.
Remember to delete the field groups in the Builder to avoid conflicting fields.
Recommend: Using the child theme or plugin Code Snippets to run the snippet.
Long Nguyen
ModeratorHi Rebecca,
To register users on the frontend even logged in, please add the attribute
show_if_user_canto the shortcode Registration form.[mb_user_profile_register id="meta-box-id" label_submit="Register" confirmation="Your account has been created successfully." show_if_user_can="manage_options"]For new users, you can use the Edit profile form to allow users edit their profile.
Get more details in the documentation: https://docs.metabox.io/extensions/mb-user-profile/#shortcodes
-
AuthorPosts