Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 211 through 225 (of 3,958 total)
  • Author
    Posts
  • 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.

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

    Hi Brian, Aart and Austin,

    I've debugged with your code and still can't reproduce the error. Although I can add code as Austin suggested, but am not sure the root cause. I also tried Aart's code above, and Austin case with taxonomy and still see nothing.

    Can you guys provide me a full code that shows the error?

    in reply to: User Profile and display_name #19328
    Anh TranAnh Tran
    Keymaster

    I've added support for display_name and other user fields in version 1.7.0. Thanks @pza for your suggestion.

    Anh TranAnh Tran
    Keymaster

    Hi Amanda,

    That's right. For groups, the data is sent as raw, similarly to what you get via the helper function.

    in reply to: Post title and post content fields #19304
    Anh TranAnh Tran
    Keymaster

    I've just updated the plugin to show the fields in the admin if the post type doesn't have support for them. If you want to show them, make sure you remove post type support for the post type, like this:

    add_action( 'init', function() {
        // Remove post type supports and show Meta Box fields for them.
        remove_post_type_support( 'post', 'title' );
        remove_post_type_support( 'post', 'thumbnail' );
    } );
    in reply to: TailwindCSS #19231
    Anh TranAnh Tran
    Keymaster

    Hi Robert,

    TailwindCSS is not included in MB Views. We use it in the video for building the HTML quickly (otherwise, we have to write a lot of CSS). You can use any theme, any CSS framework with MB Views. Think like MB Views provides you the HTML only.

    Anh TranAnh Tran
    Keymaster

    Hi Axel,

    Thanks for your feedback. It's a deprecated function that is used in the MB Template extension. We'll update it soon.

Viewing 15 posts - 211 through 225 (of 3,958 total)