Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 601 through 615 (of 3,702 total)
  • Author
    Posts
  • in reply to: refund request #16779
    Anh TranAnh Tran
    Keymaster

    Hi Remy, would you please give us some feedback on the features you need? Perhaps we can help (or better understand your needs).

    in reply to: Warning on metabox for relationship to multiple CPTs #16764
    Anh TranAnh Tran
    Keymaster

    Hi Aart Jan,

    Is there a technical/design reason not to support it this way?

    Yes, it's designed to work for single post type at the moment. Making it works for multiple post types at once is not supported at the moment, due to a lot of technical problems.

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

    I've fixed it in MB Builder 3.2.2. The new version of AIO will come tomorrow.

    in reply to: Clear Field value with Reset Button #16760
    Anh TranAnh Tran
    Keymaster

    Hi Manoj,

    The reset functionality is not built-in. You can add the following code into your theme's functions.php file to add the reset button:

    add_action( 'mb_settings_page_submit_buttons', function() {
        submit_button( 'Reset', 'secondary', 'reset', false );
        ?>
        <script>
            jQuery( function( $ ) {
                $( '#reset' ).on( 'click', function( e ) {
                    e.preventDefault();
                    $( 'input[type="text"]' ).val( '' ); // Clear input values
                    $( 'input[type="radio"],input[type="checkbox"]' ).prop( 'checked', false ); // Uncheck radio, checkbox
                } );
            } );
        </script>
        <?php
    } );

    The JS code is very basic and is just an idea how it works for basic fields. You might need to adjust it to make it work for other fields.

    in reply to: Taxonomy field not saving #16758
    Anh TranAnh Tran
    Keymaster

    Hi Alex,

    I found a bug and fixed it on your site. Please try again. The fix will be added to Meta Box plugin in the next version.

    in reply to: Cloneable group inside MB Block example #16753
    Anh TranAnh Tran
    Keymaster

    Hi Alex,

    I got the access details. And I found that you haven't installed the MB Group extension. I installed it for you and it works.

    in reply to: Taxonomy field not saving #16752
    Anh TranAnh Tran
    Keymaster

    Hi Alex,

    The taxonomy field doesn't save value. Please use taxonomy_advanced instead.

    in reply to: Thumbnail field in frontend form allows any file type #16750
    Anh TranAnh Tran
    Keymaster

    It's the default browser behavior. I found an answer for that here. Please try this:

    add_filter( 'rwmb_frontend_post_thumbnail', function( $field ) {
        $field['attributes'] = [
            'accept' => 'image/*',
            'oninvalid' => 'setCustomValidity()',
        ];
    } );

    And write a custom JS function setCustomValidity to handle the invalidity.

    in reply to: Cloneable group inside MB Block example #16745
    Anh TranAnh Tran
    Keymaster

    Hi Alex,

    Your code works quite well with me. Here is the video that I recorded. And here is the code I used to render the group.

    in reply to: PHP Fatal Error after updating from Version 1.2.5 to 1.2.7 #16741
    Anh TranAnh Tran
    Keymaster

    Hi Darren, can you please try re-installing the plugin? I've just checked and see the Loader class is available within the plugin.

    in reply to: The form saves 3x #16737
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi, I couldn't replicate this problem. Can you please give more details on that? A video/screenshot is appreciated.

    in reply to: MB Relationships + MB Frontend Submission #16736
    Anh TranAnh Tran
    Keymaster

    Yes, it's possible. Each relationship meta box has an ID: {$relationship_id}_relationships_from and {$relationship_id}_relationships_to. You can include these IDs in the form shortcode to show it on the front end.

    in reply to: Thumbnail field in frontend form allows any file type #16735
    Anh TranAnh Tran
    Keymaster

    Hi Ryan, thanks for your feedback. The field actually doesn't filter the file type. There's a small workaround for that which limits the default file picker:

    add_filter( 'rwmb_frontend_post_thumbnail', function( $field ) {
        $field['attributes'] = ['accept' => 'image/*'];
    } );

    I'll see if I can add a code to restrict file types with PHP (which is more secured).

    in reply to: Show Custom Post Type Data in place of ID in WP REST API #16734
    Anh TranAnh Tran
    Keymaster

    As this is a custom code to fetch post data, there won't be a field meta_box in the post details. You can add a specific meta value if you want, like this:

    $arr = [];
    $ids = get_post_meta($post_id, 'prefix-destination-story-field', false);
    foreach ($ids as $id){
        $value = get_post($id, ARRAY_A);
        
        // THIS
        $value['field_id1'] = rwmb_meta( 'field_id1', '', $id );
        $value['field_id2'] = rwmb_meta( 'field_id2', '', $id );
    
        array_push($arr, $value);
    }
    in reply to: License Value not hidden #16723
    Anh TranAnh Tran
    Keymaster

    Done!

Viewing 15 posts - 601 through 615 (of 3,702 total)