Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,541 through 3,555 (of 3,958 total)
  • Author
    Posts
  • in reply to: Tabs #2464
    Anh TranAnh Tran
    Keymaster

    I understand. The problem that made me choose meta box for settings page is keeping the consistency in the code as they share the same API for meta boxes. This is also applied in some famous frameworks such as Genesis or Hybrid Theme.

    Anyway, I will think more about using tabs/sections as another option (later). WordPress uses tabs/sections for its settings page, while using meta boxes for edit pages. This inconsistency of WordPress itself makes developers like us harder to make a good decision. Also the API WordPress offers for them are totally different which make things more inconsistent.

    in reply to: Validation does not work with tabs #2463
    Anh TranAnh Tran
    Keymaster

    Can you post the code?

    in reply to: Problems with update #2462
    Anh TranAnh Tran
    Keymaster

    I see. I will check the updater plugin and the updating system. There might be an issue in the first check.

    in reply to: Callback Condition / hide a file type #2456
    Anh TranAnh Tran
    Keymaster

    Btw, custom callback and custom taxonomy was added in the latest version. Please check and tell me if you have any problem ๐Ÿ™‚

    in reply to: UPDATES to conditional-logic.js to fix 'in' array logic #2453
    Anh TranAnh Tran
    Keymaster

    Btw, I've added it to the latest version. Cheers!

    in reply to: Problems with update #2446
    Anh TranAnh Tran
    Keymaster

    I couldn't read the error when updating. Can you tell me which one? Also, it works when you refresh the browser, doesn't it?

    in reply to: Full-height WYSIWYG #2445
    Anh TranAnh Tran
    Keymaster

    Hi, I've just added this to Github [issue](https://github.com/rilwis/meta-box/issues/803) to keep tracking the development. We will work on this later. Please be patient.

    in reply to: Fields with same ID bug? #2444
    Anh TranAnh Tran
    Keymaster

    Can you post the code to register meta boxes? I want to test that.

    Thanks

    in reply to: Callback Condition / hide a file type #2440
    Anh TranAnh Tran
    Keymaster

    Btw, for User Role, it only change after page load so you can use PHP condition to work with it. For instance:

    
    if ( current_user_can( 'administrator' ) )
    {
      $meta_boxes = []; // Your meta box
    }
    
    in reply to: UPDATES to conditional-logic.js to fix 'in' array logic #2439
    Anh TranAnh Tran
    Keymaster

    Oh, thank you, I'm now knowing the problem, it works when either 32 or 35 selected but not works when both 32 and 35 selected. I've updated code and will release within next few day ๐Ÿ˜‰

    in reply to: Full-height WYSIWYG #2432
    Anh TranAnh Tran
    Keymaster

    Hi Rik,

    I think it's a good feature. However, do you think it will confuse user if they enable it for both default WP editor and WYSIWYG, or 2 WYSIWYG fields?

    in reply to: Fields with same ID bug? #2431
    Anh TranAnh Tran
    Keymaster

    Hi,

    Currently, we have an internal caching mechanism, that will get all fields (by ID) and store in a static variable. This caching mechanism allows us to speed up the rwmb_meta function. Due to field ID is used as the key in the cache, field ID must be unique.

    However, as you said, there can be a situation that 2 post type can have a similar meta box where fields can have the same ID. Therefore, the helper function doesn't know which field it should get meta value for.

    I have just pushed a fixed for this on Github, please try and let me know if it works for you:

    https://github.com/rilwis/meta-box/commit/747375eb1d08176ace49c954de2b8d4a9d1d43d5

    in reply to: UPDATES to conditional-logic.js to fix 'in' array logic #2425
    Anh TranAnh Tran
    Keymaster

    Dear Mike,

    Thanks for your contribution, can you please post your code that you used to register meta boxes? I've tested in statement and see that it still works. This is my example:

    
    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
    
    	 $meta_boxes[] = array(
            'id'         => 'personal',
            'title'      => __( 'Personal Information', 'textdomain' ),
            'post_types' => array( 'post', 'page', 'product' ),
            'context'    => 'normal',
            'priority'   => 'high',
            'fields' => array(
            	array(
            		'name' => 'dummy_checkbox',
            		'type' => 'checkbox_list',
            		'id'	=> 'dummy_checkbox',
            		'options' => array('foo', 'bar', 'baz')
            	),
                array(
                    'name'  => __( 'Full name', 'textdomain' ),
                    'desc'  => 'Format: First Last',
                    'id'    => 'fname',
                    'type'  => 'text',
                    'std'   => 'Anh Tran',
                    'class' => 'custom-class',
                    'visible' => array('dummy_checkbox', 'in', array(1,2))
                ),
            )
        );
    
    	 return $meta_boxes;
    });
    

    Best regards

    Tan

    in reply to: Callback Condition / hide a file type #2424
    Anh TranAnh Tran
    Keymaster

    Hi Sinusite,

    Thanks for contacting us. We're in progress to add Callback, Custom Taxonomy and User Role support and release this month.

    Please wait a couple days to get the update.

    Thank you and best regards,

    Tan

    Anh TranAnh Tran
    Keymaster

    FYI, WYSIWYG field now is cloneable. Please update to v4.8.3 and Group extension to 1.0.6.

    For more info, please check this blog post.

Viewing 15 posts - 3,541 through 3,555 (of 3,958 total)