Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 121 through 135 (of 250 total)
  • Author
    Posts
  • in reply to: Conditional Logic with Tabs #3367
    Tan NguyenTan Nguyen
    Participant

    Dear Nicolas,

    Thanks for using MB Conditional Logic, short answer: It supports Tabs.

    Because Tabs isn't Meta Box's field, it's a DOM Element so you can hide it via using DOM Selector, as already mentioned in the documentation:

    https://metabox.io/docs/meta-box-conditional-logic/#section-use-conditional-logic-outside-meta-box

    In your case, you can add this code to your theme functions.php:

    
    add_filter( 'rwmb_outside_conditions', function( $conditions )
    {
        $conditions['.rwmb-tab-nutrient-content'] = [
            'visible' => ["{$prefix}menu_item_type", 'item_type_a_la_carte']
        ];
        return $conditions;
    } );
    

    Best regards

    Tan

    in reply to: Autocomplete issue #3365
    Tan NguyenTan Nguyen
    Participant

    Hi Sinusite,

    Perhaps in your context, the maps field's script in loaded before Geolocation. To fix that, go to inc/class-meta-box-geolocation.php and replace:

    
    add_action('rwmb_enqueue_scripts', array($this, 'enqueue'));
    

    with:

    
    add_action('admin_enqueue_scripts', array($this, 'enqueue'));
    

    to make sure MB Geolocation loaded first.

    Let me know if it works so I'll put the patch to the next release 🙂

    Also, I don't understand this:

    if $meta_boxes[‘mine’] is called with AND before $meta_boxes[‘with_geo’], it works….
    ( $meta_boxes[‘1’] can contain only 1 text field )

    i also put the demo (adress and map fields) in $meta_boxes[‘1’] and it seems not working if there only one metabox.

    Best regards,

    Tan

    in reply to: Conditional logic relation #3295
    Tan NguyenTan Nguyen
    Participant

    Dear Nicolas,

    Sorry for the long silence. Can you please post your code so I can check?

    Tan

    in reply to: Nested groups & Conditionat logic don't work properly #3162
    Tan NguyenTan Nguyen
    Participant

    Dear Buzzmn,

    Thanks for installing our plugin, MB Conditional Logic currently not fully supported Nested Group. I'm working with it but can't promise release date for it, perhaps late Jul.

    Best regards

    Tan

    in reply to: Auto-complete and map field conflicts #3137
    Tan NguyenTan Nguyen
    Participant

    Glad that you like it \m/

    in reply to: Auto-complete and map field conflicts #3133
    Tan NguyenTan Nguyen
    Participant

    Dear Sinusite,

    Thanks for your contributing, I've updated Map field and MB Geolocation.

    This is the commit for Map field:

    https://github.com/rilwis/meta-box/commit/8fb4448469d80910c6b61ac634b7f95533a7fd04

    In case you need to make map field works for now. Please download the latest version of MB Geolocation (1.0.1) and replace your map.js on js directory with

    https://github.com/rilwis/meta-box/blob/master/js/map.js

    Best regards,

    Tan

    in reply to: MB Conditional logic is compatible with image_select? #3114
    Tan NguyenTan Nguyen
    Participant

    Dear buzzm,

    We've fixed this bug, please update Group to the latest version, and apply this patch by replace Image Select to the latest version related to this issue:

    https://github.com/rilwis/meta-box/issues/860

    The commit here, you can replace file now if you really need, of course, you can wait for the official release:
    https://github.com/rilwis/meta-box/commit/3f39e4b65ef02373677ac221464cf11e273fdf45

    Cheers!

    in reply to: MB Conditional logic is compatible with image_select? #3056
    Tan NguyenTan Nguyen
    Participant

    Dear buzzmn, sorry for late reply, I've tried to fix it but it's a Meta Box bug as reported here:

    https://github.com/rilwis/meta-box/issues/860

    Currently, I haven't workaround for this. You can use Radio instead of current Image Select, we'll try to fix this bug on Meta Box soon.

    Sorry again.

    Tan

    in reply to: Select is not hidden #3055
    Tan NguyenTan Nguyen
    Participant

    Dear Flikweert,

    The problem is there are many hidden field with same post_images name created, I'm checking it and will have an answer for you soon.

    in reply to: Can I use Groups and/or Tabs with the Box Builder? #3053
    Tan NguyenTan Nguyen
    Participant

    Oops! Sorry bro, my bad, I though that I have already answered this. Your site doesn't have MB Tabs extension installed so it won't works.

    Regards,
    Tan

    in reply to: MB Conditional logic is compatible with image_select? #2982
    Tan NguyenTan Nguyen
    Participant

    Dear Buzzmn,

    The problem happens when the ID structure is changed. We're looking into that bug and will have a patch this week.

    Cheers!

    in reply to: Conditional Radio Button Options #2960
    Tan NguyenTan Nguyen
    Participant

    Hi bronnt2,

    Thanks for your question, current version doesn't support nested array in options so we can't use Conditional Logic for now. We're think a way to make this works.

    Best regards,

    Tan

    in reply to: Can I use Groups and/or Tabs with the Box Builder? #2930
    Tan NguyenTan Nguyen
    Participant

    Hmm, let me check it again, I'll have an answer for you within next 24 hrs.

    in reply to: MB Conditional logic is compatible with image_select? #2915
    Tan NguyenTan Nguyen
    Participant

    Hmm, normally, it should works. Seems that it's a bug of new version, we'll try to fix it soon.

    Cheers!

    in reply to: MB Conditional logic is compatible with image_select? #2883
    Tan NguyenTan Nguyen
    Participant

    Yes, it does works with Image Select. Here is the example

    
    add_filter( 'rwmb_meta_boxes', function( $meta_boxes )
    {
    	$meta_boxes[] = array(
    		'id' => 'brand_product',
    		'title' => 'Brands and Products',
    		'post_types' => array( 'post', 'page' ),
    		'context'	=> 'normal',
    		'priority'	=> 'high',
    		// Conditional Logic can be applied to Meta Box
    		// In this example: Show this Meta Box by default. Hide it when post format is aside
    		'hidden' => array( 'post_format', 'aside' ),
    		'fields' => array(
    			array(
    				'id'       => 'image_select',
    				'name'     => __( 'Layout', 'your-prefix' ),
    				'type'     => 'image_select',
    				// Array of 'value' => 'Image Source' pairs
    				'options'  => array(
    					'left'  => 'http://placehold.it/90x90&text=Left',
    					'right' => 'http://placehold.it/90x90&text=Right',
    					'none'  => 'http://placehold.it/90x90&text=None',
    				),
    				// Allow to select multiple values? Default is false
    				// 'multiple' => true,
    			),
    			array(
    				'id' 	=> 'apple_products',
    				'name'	=> 'Which Apple product that you love?',
    				'type'	=> 'radio',
    				'options' => array(
    					'iPhone' 	=> 'iPhone',
    					'iPad'		=> 'iPad',
    					'Macbook'	=> 'Macbook',
    					'iWatch'	=> 'iWatch'
    				),
    			       'hidden' => array( 'image_select', '!=', 'left' )
    			)
    		)
    	);
    	return $meta_boxes;
    } );
    
Viewing 15 posts - 121 through 135 (of 250 total)