Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 151 through 165 (of 250 total)
  • Author
    Posts
  • in reply to: Select box option value disappears after import database #2490
    Tan NguyenTan Nguyen
    Participant

    Dear Yumiko,

    I found the solution, currently MB Builder doesn't accept empty value so it will generate an error after saving it.

    By default, Select field already has "Select an Item" option, so you don't need to add empty value to the last. If you have to, please set a value then exclude by your custom code. For example, I use dash sign:

    
    $field_value = rwmb_meta('your_select_field');
    
    if ( $field_value === '_' )
        $field_value = '';
    

    Cheers!

    in reply to: Select box option value disappears after import database #2488
    Tan NguyenTan Nguyen
    Participant

    Dear Yumi,

    I have checked by create an interview, all post meta data still there after post saved. Check it here:

    /keroseAdm/wp-admin/post.php?post=232&action=edit

    Did you means your post meta data in old website doesn't transfer to new website? If so, you can check by look at wp_postmeta table.

    Cheers!

    in reply to: Select box option value disappears after import database #2485
    Tan NguyenTan Nguyen
    Participant

    Hi Yumi,

    I have fixed Add Option not visible bug you can start to use it for now.

    Detailed Report:

    Your website's security is strict so file_get_content() function doesn't works with files in plugins, this function is used to pull template content and if it doesn't works, template content will shows as blank, that's why you can't see Add Option section.

    I'm trying to fix Import / Export features, which fwrite cannot works properly in your host. If you could, can you please do not change user name / passwords for 4 days, I haven't enough time to replicate the bug in my PC.

    Arigatou

    in reply to: Select box option value disappears after import database #2483
    Tan NguyenTan Nguyen
    Participant

    Dear Yumi,

    Can you please send me your website's information through the contact form included admin login and password? And FTP information if you could.

    Regards

    in reply to: Dynamically add #2480
    Tan NguyenTan Nguyen
    Participant

    Dear Dumas,

    Please update MB Builder to the latest version, it has update for Taxonomy and Taxonomy Advanced.

    You can select any taxonomy, and you can add query args for taxonomy also ๐Ÿ™‚

    Regards,

    Tan

    in reply to: Select box option value disappears after import database #2474
    Tan NguyenTan Nguyen
    Participant

    Dear yumikom,

    To export meta boxes, you can go to Dashboard > Meta Boxes > Check all meta box and in Bulk Options, select Export.

    To import Meta Boxes, go to Dashboard > Meta Boxes > Import, then upload your exported .dat file.

    When you hit "Add Option" in Select Box, Radio Button, you'll have Value and Label field to enter data.

    Please add my Skype: tannguyen0901 or give me your Facebook address if you need to solve this problem quickly.

    Regards

    Tan

    in reply to: Select box option value disappears after import database #2466
    Tan NguyenTan Nguyen
    Participant

    Dear yumikom,

    Our builder data saved in serialized data so if some text was changed, it will break all data.

    I haven't Migrate DB Pro so I can't make sure that it can works with serialized data in wp_posts table or not. In case it can't works with that table. I'd recommend you export data on your old website, delete all meta boxes in new website and import from old website again.

    Best regards

    Tan

    in reply to: Callback Condition / hide a file type #2456
    Tan NguyenTan Nguyen
    Participant

    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
    Tan NguyenTan Nguyen
    Participant

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

    in reply to: Callback Condition / hide a file type #2440
    Tan NguyenTan Nguyen
    Participant

    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
    Tan NguyenTan Nguyen
    Participant

    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: UPDATES to conditional-logic.js to fix 'in' array logic #2425
    Tan NguyenTan Nguyen
    Participant

    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
    Tan NguyenTan Nguyen
    Participant

    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

    Tan NguyenTan Nguyen
    Participant

    Hi ClementN,

    You can use Conditional Logic in this case. Just add

    
        'visible'	 => array('original_post_status', '!=', 'publish'),
    

    When you want to show meta box when post is not published, and vice versa.

    In case you want to show post on specify post status like publish, draft... just put the original status to the value of conditional logic, like so:

    
        'visible'	 => array('original_post_status', 'auto-draft'),
    

    For example:

    
    add_filter( 'rwmb_meta_boxes', function( $meta_boxes )
    {
    	$meta_boxes[] = array(
            'title'      => 'Media',
            'visible'	 => array('original_post_status', '!=', 'publish'),
            'fields'     => array(
                array(
                    'name' => 'URL',
                    'id'   => 'tanurl',
                    'type' => 'text',
                ),
            )
        );
    
    	return $meta_boxes;
    } );
    

    Best regards

    Tan Nguyen

    in reply to: Posts and Users without listing them #2144
    Tan NguyenTan Nguyen
    Participant

    The Text field has autocomplete attribute which you can choose from the list or enter custom value. You can check that field ๐Ÿ™‚

Viewing 15 posts - 151 through 165 (of 250 total)