Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 3,946 through 3,960 (of 4,839 total)
  • Author
    Posts
  • in reply to: Administrator for to locate, edit and save any user's data #23657
    Long NguyenLong Nguyen
    Moderator

    Hi 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.

    in reply to: Using Conditional Logic with Taxonomies #23651
    Long NguyenLong Nguyen
    Moderator

    Hi Alex,

    I recommend using the field taxonomy or taxonomy_advanced to 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.

    in reply to: Unable to read multibyte text in code output by the builder #23649
    Long NguyenLong Nguyen
    Moderator

    Hi 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.

    in reply to: retrieving image in post from new field #23648
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    Long NguyenLong Nguyen
    Moderator

    Hi 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_process will 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.

    in reply to: retrieving image in post from new field #23638
    Long NguyenLong Nguyen
    Moderator

    Got 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;
    }
    in reply to: WP 5.6 and text field with size 200 #23631
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    in reply to: Has file - archive not working #23618
    Long NguyenLong Nguyen
    Moderator

    Hi Nuno,

    Please go to Admin Dashboard > Settings > Permalinks > Save the current settings (Post Name) again to update the permalink for the post type.

    in reply to: retrieving image in post from new field #23617
    Long NguyenLong Nguyen
    Moderator

    Hi,

    This is a public forum so you should share the login credentials via this form https://metabox.io/contact/.

    in reply to: retrieving image in post from new field #23605
    Long NguyenLong Nguyen
    Moderator

    Hi 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.

    in reply to: problem initializing a text field value in a block. #23602
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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 field number_uqjo7f193f because the Block Editor does not reload the page after update/save the post and the code

    wp_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_uqjo7f193f value on typing and show on the block field text_41r32ufnhu8 immediately.

    jQuery(document).ready(function($) {   
        $('body').on('keyup', function() {
            var number = $('#number_uqjo7f193f').val()
            $('body').find('#text_41r32ufnhu8').val(number); 
        });
    });
    in reply to: Only Admin to Add New Users #23601
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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/95464

    You 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.

    in reply to: Only Admin to Add New Users #23597
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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?

    in reply to: How to set required message #23594
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    in reply to: Only Admin to Add New Users #23577
    Long NguyenLong Nguyen
    Moderator

    Hi Rebecca,

    To register users on the frontend even logged in, please add the attribute show_if_user_can to 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

Viewing 15 posts - 3,946 through 3,960 (of 4,839 total)