Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 181 through 195 (of 3,704 total)
  • Author
    Posts
  • in reply to: Custom Field that works with MB_Relationships API #20617
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think there's a way to prevent the MB Relationships from saving to the database using the save_field parameter for field settings (I haven't tested it yet). This param tells Meta Box to not save field value to the DB. So, you can try it by specify it explicitly in the field param of the relationship.

    add_action( 'mb_relationships_init', function () {
        MB_Relationships_API::register( [
            'id'   => 'class_present_to_student',
            'from' => [
                'post_type' => 'class',
                'field' => [
                    'save_field' => false,
                ],
            ],
            'to'   => [
                'post_type' => 'student',
                'field' => [
                    'save_field' => false,
                ],
            ],
        ] );
    } );
    in reply to: Refund Request #20421
    Anh TranAnh Tran
    Keymaster

    Hi Suraj,

    Would you mind sharing with us what are your needs? Maybe we can help you use the MB Group extension to complete the task.

    in reply to: no twig tags rendering #20361
    Anh TranAnh Tran
    Keymaster

    Hi Michael,

    Can you please share the screenshot of the view(s) screen? I think there is something that we miss in the discussion that might cause the error.

    Thanks,
    Anh

    in reply to: Meta Box builder not working after update #20275
    Anh TranAnh Tran
    Keymaster

    Hey guys, it's just the browser cache problem. Please use Ctrl-F5 or clear the browser cache and refresh again.

    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. I've just fixed it and will release a new version soon.

    Anh TranAnh Tran
    Keymaster

    Hi,

    I commented on the PR. Let's keep discussing over there for better reference of the code.

    Thanks for your help!

    in reply to: Hide custom fields except for specific term #19939
    Anh TranAnh Tran
    Keymaster

    Hi Steve,

    It's best to use MB Include Exclude.

    in reply to: Unable to download Meta Box AIO (Version 1.11.8) #19743
    Anh TranAnh Tran
    Keymaster

    Please try again. There was a small problem with your account which we've fixed.

    in reply to: Retrieving data right after saving #19595
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    It might relate to how rwmb_meta work with custom tables. We implemented a cache layer for the custom table storage, the code is in the inc/class-rwmb-table-storage.php, which is like this:

    public function get( $object_id, $meta_key, $args = false ) {
        if ( is_array( $args ) ) {
            $single = ! empty( $args['single'] );
        } else {
            $single = (bool) $args;
        }
        $default = $single ? '' : array();
    
        $row = MB_Custom_Table_Cache::get( $object_id, $this->table );
    
        return ! isset( $row[ $meta_key ] ) ? $default : maybe_unserialize( $row[ $meta_key ] );
    }

    In this case, as you already use $wpdb to update data, I'd suggest using it to get data to avoid the caching problem.

    in reply to: Backup & Restore not working with Composer loading #19579
    Anh TranAnh Tran
    Keymaster

    Strange, I see it's similar to my setup. I can think only about the downloaded version via Composer. Can you check the files in the vendor folder to see if they're the same as in the individual plugin?

    in reply to: Backup & Restore not working with Composer loading #19552
    Anh TranAnh Tran
    Keymaster

    Hi Joe,

    I've just set up a simple test plugin with nothing than just Meta Box + MB Settings Page and I see the backup & restore field works properly. Please see my video for details:

    https://www.loom.com/share/e4c5122a25fd47ad8f6a364bbac779f0

    in reply to: Feature Request: Allow icons besides Dashicons #19503
    Anh TranAnh Tran
    Keymaster

    We added support for FontAwesome in the version 1.2.0, see this changelog and documetation.

    in reply to: TypeError: logics is undefined #19387
    Anh TranAnh Tran
    Keymaster

    Thank you!

    I've released a new version for MB Conditional Logic. The update for AIO will come next week.

    in reply to: TypeError: logics is undefined #19360
    Anh TranAnh Tran
    Keymaster

    Hey guys, can you help me to test the fix before releasing a new version? Please try changing parse_conditions function to:

    private function parse_conditions( $conditions ) {
        $output = [];
        if ( ! empty( $conditions['visible'] ) ) {
            $output['visible'] = $this->parse_condition( $conditions['visible'] );
        }
        if ( ! empty( $conditions['hidden'] ) ) {
            $output['hidden'] = $this->parse_condition( $conditions['hidden'] );
        }
        return $output;
    }

    The previous code does JSON-encode all field settings, which contains something like field description and value, which might break the JSON. The new code only encodes the conditions, which eliminate this issue and might improve the performance as well.

    in reply to: TypeError: logics is undefined #19357
    Anh TranAnh Tran
    Keymaster

    Thanks a lot for your feedback! Looks like the json encode is the problem. I'll check and fix that.

Viewing 15 posts - 181 through 195 (of 3,704 total)