Forum Replies Created
-
AuthorPosts
-
March 15, 2016 at 5:43 PM in reply to: Select box option value disappears after import database #2490
Tan Nguyen
ParticipantDear 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!
March 15, 2016 at 4:25 PM in reply to: Select box option value disappears after import database #2488Tan Nguyen
ParticipantDear 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_postmetatable.Cheers!
March 15, 2016 at 1:14 PM in reply to: Select box option value disappears after import database #2485Tan Nguyen
ParticipantHi Yumi,
I have fixed
Add Optionnot 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 seeAdd Optionsection.I'm trying to fix Import / Export features, which
fwritecannot 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
March 15, 2016 at 10:11 AM in reply to: Select box option value disappears after import database #2483Tan Nguyen
ParticipantDear 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
Tan Nguyen
ParticipantDear 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
March 14, 2016 at 6:46 PM in reply to: Select box option value disappears after import database #2474Tan Nguyen
ParticipantDear 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
.datfile.When you hit "Add Option" in Select Box, Radio Button, you'll have Value and Label field to enter data.
Please add my Skype:
tannguyen0901or give me your Facebook address if you need to solve this problem quickly.Regards
Tan
March 14, 2016 at 11:01 AM in reply to: Select box option value disappears after import database #2466Tan Nguyen
ParticipantDear 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_poststable 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
Tan Nguyen
ParticipantBtw, custom callback and custom taxonomy was added in the latest version. Please check and tell me if you have any problem ๐
March 10, 2016 at 11:05 PM in reply to: UPDATES to conditional-logic.js to fix 'in' array logic #2453Tan Nguyen
ParticipantBtw, I've added it to the latest version. Cheers!
Tan Nguyen
ParticipantBtw, 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 }Tan Nguyen
ParticipantOh, 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 ๐
Tan Nguyen
ParticipantDear Mike,
Thanks for your contribution, can you please post your code that you used to register meta boxes? I've tested
instatement 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
Tan Nguyen
ParticipantHi 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
January 21, 2016 at 9:17 AM in reply to: โ Include/Exclude for new/existing posts - Not saving data #2175Tan Nguyen
ParticipantHi 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
Tan Nguyen
ParticipantThe
Textfield hasautocompleteattribute which you can choose from the list or enter custom value. You can check that field ๐ -
AuthorPosts