Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 631 through 645 (of 3,702 total)
  • Author
    Posts
  • in reply to: Prompt to change password shows on Edit Form #16648
    Anh TranAnh Tran
    Keymaster

    Hi Marge,

    1. When password is added via rwmb-user-info meta box, it's always required. You can change it with the rwmb_profile_info_fields filter.
    add_filter( 'rwmb_profile_info_fields', function( $fields ) {
        $fields['password']['required'] = false;
        $fields['password2']['required'] = false;
        return $fields;
    } );
    1. I don't see that problem on my localhost. Please see this video. Please check in the user profile to see if the user has set first name = username.

    2. It's possible. You need to hook to get avatar function to change the avatar URL.

    3. The image field actually doesn't show any file name. If you meant the "file" field, then yes, it shows only the file name.

    4. You can hook to rwmb_profile_info_fields to add email fields to add email field, like this:

    add_filter( 'rwmb_profile_info_fields', function( $fields ) {
        $fields['email'] = [
            'name' => 'Email',
            'id'   => 'user_email',
            'type' => 'email',
        ];
        return $fields;
    } );
    Anh TranAnh Tran
    Keymaster

    Hi Sam,

    You can disable MB REST API in the Meta Box AIO settings and use an earlier version of it from wordpress.org.

    The plugin doesn't have any control on access permission. Please try deactivating it, and use only FacetWP to see if the problem still happens.

    in reply to: Is there any way to create timeslots ? #16631
    Anh TranAnh Tran
    Keymaster

    is there any way to avoid it ?

    I'm afraid not. You might need to work on jQueryUI date picker to prevent this from happening.

    But this will also be time consuming for user to create those things manually

    You can also set the default value for groups. See the docs for details: https://docs.metabox.io/extensions/meta-box-group/#setting-default-group-values

    in reply to: Not able to deselect default dropdown value #16629
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. I'll check and fix it.

    in reply to: Is there any way to create timeslots ? #16628
    Anh TranAnh Tran
    Keymaster

    If your clients want to set time slots for each day, then you can use MB Group to do that, something like this (this is a group field):

    [
        'type' => 'group',
        'name' => 'Time Slots',
        'clone' => true,
        'fields' => [
            [
                'id' => 'start',
                'type' => 'time',
                'name' => 'Start',
            ],
    
            [
                'id' => 'end',
                'type' => 'time',
                'name' => 'End',
            ],
        ],
    ]

    Then you can get the slots in the front end for your booking app:

    echo '<select>';
    $slots = rwmb_meta( 'slots' );
    foreach ( $slots as $k => $slot ) {
        echo '<option value="' . $k . '">' . $slot['start'] . ' - ' . $slot['end'] . '</option>';
    }
    echo '</select>';

    Some notes: Your problem is very specific and what I'm trying to help you here is just an idea how to do that. This is out of the support scope. So, please understand it's might not a correct/final solution.

    Anh TranAnh Tran
    Keymaster

    Hi,

    The better way to check is via function_exists or class_exists. For MB Term Meta, this check will work:

    if ( function_exists( 'mb_term_meta_load' ) ) {
    }
    in reply to: Problem with getting Field Value #16623
    Anh TranAnh Tran
    Keymaster

    Hi,

    You need to provide the option name in the settings page and put it in the 3rd parameter:

    $settingData = rwmb_meta( 'bike_resources_detail', ['object_type' => 'setting'], $option_name );
    
    in reply to: Is there any way to create timeslots ? #16622
    Anh TranAnh Tran
    Keymaster

    Hi Akram,

    Please give us some time to answer your ticket. Your ticket was submitted at 2:37 AM and I'm answering now.

    Can you provide more details on the meaning of time slots you're trying to create? Are there any rules for time slots?

    in reply to: License key is expired with Lifetime bundle #16620
    Anh TranAnh Tran
    Keymaster

    Hi Sandra,

    I've just checked your license key and see it works as expected. Can you check if you have Meta Box Updater installed? If yes, please remove it. It's not needed anymore.

    in reply to: Page VIew #16612
    Anh TranAnh Tran
    Keymaster

    Please try setting query_var and publicly_queryable to true.

    in reply to: intermittent problem with submitting forms #16599
    Anh TranAnh Tran
    Keymaster

    FYI, I fixed the bug in the version 2.0.5 of MB Frontend Submission.

    in reply to: intermittent problem with submitting forms #16593
    Anh TranAnh Tran
    Keymaster

    Hi Mary,

    Sorry for the delay. I've looked at the wp-cron.php file at line 111 and see it's a WordPress code that loops through a list of registered crons. The another line of error wp_privacy_delete_old_export_files tells us this is a WP cron that delete old exported privacy files.

    All of that relates to the WP crons. I'll check your code in the email.

    in reply to: select_advanced with Ajax #16592
    Anh TranAnh Tran
    Keymaster

    Hi Will,

    Your solution on sanitize callback is true. In Meta Box 5.1, we introduced the sanitization mechanism to make the data safe before saving into the DB.

    For choice fields, the value stored is considered safe only if it's available in the field's options. In this case, the options is dynamically populated via Ajax, the sanitization will break.

    One solution is bypass it at all, as you did. Another solution is write your own callback. Both should work well.

    in reply to: update_post_meta for cloneable group fields #16591
    Anh TranAnh Tran
    Keymaster

    Hi Manoj,

    To update a cloneable group field, please use this snippet:

    $values = [];
    $values[] = [ 'sub_field_1' => 'value1', 'sub_field_2' => 'value2' ]; // Value of clone 1
    $values[] = [ 'sub_field_1' => 'value1', 'sub_field_2' => 'value2' ]; // Value of clone 2
    
    update_post_meta( $post_id, 'group_id', $values );
    in reply to: MB Settings Page in REST API #16590
    Anh TranAnh Tran
    Keymaster

    Hi Tobias,

    Here is a very detailed guide on this: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/

Viewing 15 posts - 631 through 645 (of 3,702 total)