Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 271 through 285 (of 3,708 total)
  • Author
    Posts
  • in reply to: Password length #18491
    Anh TranAnh Tran
    Keymaster

    No, you don't need to. The update only sets the default password_strength to weak, so, it's fine to keep it.

    in reply to: Title of post is removed after updating the post #18490
    Anh TranAnh Tran
    Keymaster

    Hi Cedric,

    To be able to set a custom attribute for title, you need to create a text field and put it in the meta box (which has ID in the shortcode), like this:

    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
        $meta_boxes[] = [
            'title' => 'Your title',
            'id'    => 'your-id',
            'fields' => [
                [
                    'title' => 'Post title',
                    'id' => 'post_title',
                    'disabled' => true,
                ],
                // Other fields here
            ],
        ];
    } );

    And in your shortcode, don't include the post_fields parameter:

    [mb_frontend_form id="your-id"]
    
    Anh TranAnh Tran
    Keymaster

    Hi Nick, you probably need to use a filter to change the value displayed:

    add_filter( 'rwmb_user_email_field_meta', function( $meta, $field, $saved ) {
        $user = wp_get_current_user();
        return $user->user_email;
    }, 10, 3 );
    in reply to: OSM Zoom #18470
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    Zoom is saved in the post meta. So, the plugin will take the value from the post meta, instead of pulling from the parameter.

    in reply to: Textarea and js #18469
    Anh TranAnh Tran
    Keymaster

    Hi Jackky, this issue relates to the sanitization mechanism. Please see this blog post for details and fix.

    Anh TranAnh Tran
    Keymaster

    Hi Johann,

    Thanks for your feedback. We'll check and fix the bug!

    in reply to: Frontend submission for woocommerce #18467
    Anh TranAnh Tran
    Keymaster

    Hi Sergio,

    We haven't had an extension for WooCommerce yet. For now, the MB Frontend Submission might work for WooCommerce (with simple fields like price), but we haven't tested it yet.

    in reply to: Password length #18466
    Anh TranAnh Tran
    Keymaster

    Hi, we've released a new version for MB User Profile 2 days ago addressing this bug. Please update.

    If you're using AIO (which hasn't released a new version yet), please set the password_strength="weak" in the login shortcode.

    in reply to: Textarea field no longer saving HTML #18465
    Anh TranAnh Tran
    Keymaster

    Hi FED,

    This is the sanitization mechanism. Please see this blog post for details and the fix.

    in reply to: Title of post is removed after updating the post #18464
    Anh TranAnh Tran
    Keymaster

    Hi netalys,

    You probably need to set attribute disabled or readonly for the title field. Please see this blog post to know how to create custom settings for post fields.

    in reply to: I am totally lost #18463
    Anh TranAnh Tran
    Keymaster

    Hi Jessica,

    Can you please check that if you choose to store custom fields in a custom table? Please go to Settings tab in the MB Builder (I guess you're using it), and scroll to bottom to see if the checkbox for custom table is checked.

    And do the fields show up on the back end?

    in reply to: Field conditional logic doesn't work with Gutenberg #18432
    Anh TranAnh Tran
    Keymaster

    Hi Yumiko,

    I found the problem. The post_type is not a Meta Box field, so using it the normal way doesn't work. You need to use outside conditions.

    Change your code to:

    add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = array (
            'title' => esc_html__( 'test', 'text-domain' ),
            'id' => 'test',
            'post_types' => array(
                0 => 'post',
                1 => 'page',
                2 => 'general',
            ),
            'context' => 'normal',
            'priority' => 'high',
            'fields' => array(
                array (
                    'id' => $prefix . 'post_mnfi92e2ko',
                    'type' => 'post',
                    'name' => esc_html__( 'Post', 'text-domain' ),
                    'post_type' => 'page',
                    'field_type' => 'select_advanced',
                    'class' => 'your-custom-class',
                ),
            ),
        );
    
        return $meta_boxes;
    } );
    

    Note that I added a your-custom-class to set a CSS class for your field. And then add the following code to your theme's functions.php file (or using a functionality/Code Snippet plugin):

    add_filter( 'rwmb_outside_conditions', function( $conditions ) {
        $conditions['.your-custom-class'] = [
            'visible' => ['post_type', 'page'],
        ];
        return $conditions;
    } );
    in reply to: add custom button to wsiwyg field #18430
    Anh TranAnh Tran
    Keymaster

    Hi,

    The wysiwyg editor uses wp_editor() function to render the editor. So it might use the same hooks as the default editor (I'm not 100% sure about that, this need to be checked and confirmed). You can try disable Gutenberg first, since tinyMCE in Gutenberg is heavily customized and hooks might not work.

    in reply to: [Feature request] Options to use native inputs #18428
    Anh TranAnh Tran
    Keymaster

    I see. For date, time fields, Meta Box uses its own field type. You probably need to create a custom field type to get rid of the overriding from the plugin.

    in reply to: Date Field doesn't save value correctly #18427
    Anh TranAnh Tran
    Keymaster

    Hi arkonisus,

    Thanks for your feedback. The year 2000 is interesting. I haven't experienced a similar issue. Let me check that and fix the bug.

Viewing 15 posts - 271 through 285 (of 3,708 total)