Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 616 through 630 (of 3,708 total)
  • Author
    Posts
  • 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!

    in reply to: Readonly Date Input Still Shows Datepicker #16721
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. Somehow readonly is ignored by jQueryUI datepicker. I fixed it here.

    in reply to: Using Gravity Forms (or any form) with a CPT #16719
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    I think it's possible:

    • You have a CPT - training
    • Each post with the "training" has a video, which is a Meta Box's field.
    • It also has a quiz attached to it. Quiz can be created in GF or any plugin. Then attach to the CPT with Meta Box's select field (or any field that allows you to choose a quiz). The options of the select field might need custom code to fetch all available quiz to select from.

    On the front end, you can simply display the video and the button to start the quiz. When the quiz is done, see if there's any hook to allow you to update the post (training). If yes, then simply add the tracking data you want. If you want to track the video ID, then you can add the video (attachment) ID.

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

    Hey Sharath,

    Please don't just copy and paste my code. I put a comment "Modify your value here", which means you should get the post details from the post ID ($value) there. Something like this:

    add_filter( 'rwmb_get_value', function( $value, $field, $args, $post_id ) {
        // Change value only for REST API.
        if ( ! defined( 'REST_REQUEST' ) ) {
            return $value;
        }
    
        if ( 'p' !== $field['id'] ) {
            return $value;
        }
    
        $value = get_post( $post_id, ARRAY_A );
        return $value;
    }, 10, 4 );
    in reply to: Using Geolocation in my front end #16703
    Anh TranAnh Tran
    Keymaster

    Yes, you can. If you have your front end form created with MB Frontend Submission, then you can use MB Geolocation for the fields.

    If you're looking for a way to support other forms, then it won't work. The extension works only for Meta Box fields.

    in reply to: License Value not hidden #16702
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for your feedback. I've been thinking about this, too. Probably I'll replace the value with *** when the license is valid.

    in reply to: How to provide key to users so they can update extensions #16701
    Anh TranAnh Tran
    Keymaster

    You can ignore some updates if not necessary. We constantly add more features to the plugins, and have to update them. If those are not the features you use, then you might not need to update them immediately.

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

    Hi Sharath,

    The values are returned via function rwmb_get_value and it has a filter with the same name rwmb_get_value for you to modify the values.

    So, I think you can do something like:

    add_filter( 'rwmb_get_value', function( $value, $field, $args, $post_id ) {
        // Change value only for REST API.
        if ( ! defined( 'REST_REQUEST' ) ) {
            return $value;
        }
    
        if ( 'your_field_id' !== $field['id'] ) {
            return $value;
        }
    
        // Modify your value here.
        return $value;
    }, 10, 4 );
    in reply to: How to provide key to users so they can update extensions #16696
    Anh TranAnh Tran
    Keymaster

    Unfortunately, it's not permitted to give the license to your users. To avoid updates, you can bundle the extensions inside your theme directly. See this guide for details.

    in reply to: In how many items extensiins can be used ? #16695
    Anh TranAnh Tran
    Keymaster
Viewing 15 posts - 616 through 630 (of 3,708 total)