Support Forum » User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Metabox fields not working with wordpress 4.9 #7429
    buzzmnbuzzmn
    Participant

    Yeah! Great! Thanks a lot and congratulations for your plugins!!!

    in reply to: MB Conditional logic is compatible with image_select? #2983
    buzzmnbuzzmn
    Participant

    The bug is created when the id that selects which field to show or hide is named 'layout'. I have changed it and it works!

    Thanks for your attention!

    in reply to: MB Conditional logic is compatible with image_select? #2979
    buzzmnbuzzmn
    Participant

    Hi again,
    I think the problem is about the IDs of the fields, could I assign different IDs in clones groups as an auto-increment index?

    in reply to: MB Conditional logic is compatible with image_select? #2943
    buzzmnbuzzmn
    Participant

    In fact, I have detected the bug exactly what does: When you have conditional logic combined with cloned groups the fields that have to be hidden or visible are defined by the first element of the cloned groups. It doesn't matter if it's select or image_select... Let me know if I have explained it correct, so you can understand the problem and if it has a easy solution. Meanwhile I would not use the conditional logic, what a pitty...

    Cheers!

    in reply to: MB Conditional logic is compatible with image_select? #2909
    buzzmnbuzzmn
    Participant

    In fact I'm using hidden/visible in fields cloned by groups:

    $meta_boxes[] = array(
    		'id'         => 'layout-content',
    		'title'      => 'Contenido',
    		'post_types' => array( 'caso', 'tratamiento' ),
    		'fields'     => array(
    			array(
    				'name'   => 'Añade las filas que desees',
    				'id'     => 'item-row',
    				'type'   => 'group',
    				'clone'  => true,
    				'fields' => array(
    					array(
    						'name'     => 'Esquema',
    						'id'       => 'layout',
    						'required' => true,
    						'type'     => 'image_select',
    						'options'  => array(
    							'textimage' => get_bloginfo('template_url').'/images/settings/layout-textimage.png',
    							'imagetext' => get_bloginfo('template_url').'/images/settings/layout-imagetext.png',
    							'onlytext'  => get_bloginfo('template_url').'/images/settings/layout-text.png',
    							'onlyimage' => get_bloginfo('template_url').'/images/settings/layout-image.png',
    						),
    						'desc'     => 'Si no se escoge ninguna opción por defecto usará el esquema texto a la izquierda e imagen a la derecha'
    					),
    					array(
    						'name'    => 'Texto',
    						'id'      => 'item-text',
    						'type'    => 'textarea',
    						'cols'    => 1,
    						'rows'    => 5,
    						'desc'    => 'Para poder poner negrita se tiene que encapsular el texto entre [negrita][/negrita] (ejemplo: Esto es un [negrita]ejemplo[/negrita].)',
    						'visible' => array( 'layout', 'in', array( 'onlytext', 'textimage', 'imagetext' ) ),
    					),
    					array(
    						'name'      => 'Imágenes',
    						'id'        => 'item-images',
    						'type'      => 'file_advanced',
    						'mime_type' => 'image',
    						'desc'      => 'Las imágenes se mostrarán una debajo de la otra',
    						'visible' => array( 'layout', 'in', array( 'onlyimage', 'textimage', 'imagetext' ) ),
    					),
    				),
    			),
    		),
    	);

    I don't know if the groups or the clone function does affect to the right behavior of the conditional plugin...

    Let me know your opinion.
    Thanks!

    in reply to: I would like to download MB admin columns #2666
    buzzmnbuzzmn
    Participant

    I though that we paid $99 as it costs now, so I really though I could use this awesome new new extensions instead of another extensions alternative use this features...

Viewing 6 posts - 1 through 6 (of 6 total)