Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 751 through 765 (of 3,708 total)
  • Author
    Posts
  • in reply to: Auto-populate field #16126
    Anh TranAnh Tran
    Keymaster

    Hi,

    1st and 2nd problem: I guess you're using Gutenberg, thus the required parameter doesn't work, because WordPress submits values via Ajax. Until now, there's no solution for that yet.

    3rd problem: I see you miss std from my code, so of courses, fields are not filled.

    Regarding the filter: you might want to try Search & Filter plugin. It's free on wordpress.org.

    Anh TranAnh Tran
    Keymaster

    Done! Here you are. The class is rwmb-activate-license.

    Anh TranAnh Tran
    Keymaster

    Hi Swami, how about adding a CSS class to the "Activate License" text? You can hide them with CSS.

    in reply to: Auto-populate field #16111
    Anh TranAnh Tran
    Keymaster

    Here is the code with std:

    https://pastebin.com/QHaMAXY2

    Regarding filtering results on the front end, please use a search & filter plugin like FacetWP. We support FacetWP via a free extension.

    in reply to: File Upload Validation #16110
    Anh TranAnh Tran
    Keymaster

    Hi Ranadeep,

    The extension validation is an add-on for the jQuery validation library and it's not included in Meta Box.

    In order to use it, please download the extension.js file from Github:

    https://github.com/jquery-validation/jquery-validation/blob/master/src/additional/extension.js

    And enqueue it like this:

    add_action( 'rwmb_enqueue_scripts', function() {
        wp_enqueue_script( 'jquery-validation-extension', 'url to the js file', '', '', true );
    }

    Then you can use the extension rule.

    in reply to: Example code for Geo location Meta fields #16109
    Anh TranAnh Tran
    Keymaster

    Here you are:

    <?php
    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
        $meta_boxes[] = [
            'title' => 'Test',
            'geo' => [
                'api_key' => 'your_api_key',
            ],
            'fields' => [
                [
                    'id' => 'address',
                    'type' => 'text',
                    'name' => 'Address',
                ],
                [
                    'id' => 'administrative_area_level_1',
                    'type' => 'text',
                    'name' => 'State',
                ],
                [
                    'id' => 'country',
                    'type' => 'text',
                    'name' => 'Country',
                ],
            ],
        ];
        return $meta_boxes;
    } );
    in reply to: Cant get image with php object #16107
    Anh TranAnh Tran
    Keymaster

    I see. That syntax is for PHP >= 5.4 which supports short array syntax. Please try:

    $room_show_img = RWMB_Image_Field::file_info( $room_img_id, array( 'size' => 'thumbnail' ) );
    

    It's better to upgrade to PHP 7.2, the performance is twice better than PHP 5.

    in reply to: License key says invalid and edit/save link also broken #16106
    Anh TranAnh Tran
    Keymaster

    Hi, please deactivate the Meta Box Updater module in AIO. It's no longer needed since the updater is merged into Meta Box.

    FYI: new version of AIO includes free extensions as well, so you might want to remove them from the plugin list.

    in reply to: Relationship field performance #16105
    Anh TranAnh Tran
    Keymaster

    I got it. Thanks for the clarification.

    I'm afraid there's no way to detect a field is closed or open, especially in different context (classic or block editor).

    At the moment, the queries when page loads are minimal as they query only selected items. I don't think that's a performance bottle neck.

    in reply to: Cant get image with php object #16091
    Anh TranAnh Tran
    Keymaster

    Hi,

    What do you mean "not php object way"? Is there any relation with PHP 5.6?

    in reply to: Date fields allow to enter random numbers #16090
    Anh TranAnh Tran
    Keymaster

    Hi Mauro, you can disable the manual entry by setting 'readonly' => true.

    in reply to: ℹ️Integrate builder as a custom field #16089
    Anh TranAnh Tran
    Keymaster

    Hi Daniel,

    Could you please provide more info? Is this like creating a field to select saved templates from page builders?

    in reply to: Auto-populate field #16088
    Anh TranAnh Tran
    Keymaster

    Hi,

    Doesn't the std settings work? You can get the current post info (post ID is grabbed from $_GET) and put the post info in the std settings for the fields.

    in reply to: PHP warning when using clone w/ date formatting #16087
    Anh TranAnh Tran
    Keymaster

    Hi Ronald,

    Thanks for bug reporting. It's fixed here.

    Anh TranAnh Tran
    Keymaster

    Hi,

    Can you please give me more details on how you "enter them in our relevant WP plugins"? Do you set the license key programmatically?

Viewing 15 posts - 751 through 765 (of 3,708 total)