Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi zhenglc,
Comment meta is now supported in version 1.4.0. Please update. If you're using AIO, please wait, we'll update it in a few days.
December 11, 2019 at 9:20 PM in reply to: ✅Despite purchasing a lifetime bundle, it warns "Your license key is invalid" #17491Anh Tran
KeymasterHi,
What was your email when you bought it?
I meant the email address that you used to buy the plugins, not the email content. Looks like you have updated your email in your account, so the system doesn't recognize your license. Please just send me your old email and I'll take a look.
December 11, 2019 at 8:34 PM in reply to: ✅Registration: username as email, duplicated fields, avatar, visibility issue #17489Anh Tran
KeymasterHey guys,
I've just released a new version of MB User Profile with support for all of your requests:
- Added a new parameter
email_as_usernamefor the register shortcode, now you just need to addemail_as_username='true'to your shortcode to let users use their email for usernames. - No duplicated fields are displayed in the WP admin area anymore. Feel free to add WP fields such as
first_name,last_name, etc. - For custom avatar, please just use the
imagefield and set'max_file_uploads' => 1. Users won't be able to add more files. - Messages are displayed properly now.
If you have any feedback, please let me know.
Anh Tran
KeymasterHi,
This topic is about blocks, so I thought you're talking about it.
What you want is moving the meta boxes to the sidebar. That can be done with the same parameter
'context' => 'side'for meta boxes. See this docs.Previously, Gutenberg moves all the meta boxes to the "after content" position, which is what you're seeing. It probably changed its behavior to accept
sidecontext. I've updated the Builder to reflect the change, so you can see the option within the Builder.Anh Tran
KeymasterHi,
Regarding the meta boxes aside, it's already supported by MB Blocks. All you need to do is set the
'context' => 'side'for the block. Here is the docs for that:https://docs.metabox.io/extensions/mb-blocks/#context
If you use MB Builder to create blocks, there's an option to set it as well:
Anh Tran
KeymasterHow did you create the gallery? Did you use group for that?
In this case, I think all you need is just using the
image_advancedfield.December 6, 2019 at 4:07 PM in reply to: ✅Set a minimum date in a date field in dependence of another date field #17417Anh Tran
KeymasterHi Daniel,
I tried to format the “to” date in dependence of the from date field. Therefore I used the “minDate” option from the date picker options and hoped that I could get and set the date from the “from” field as a new date in the value field.
I think this can be done only with custom JavaScript.
Here are some steps that I'm thinking:
First, add the following code to
functions.phpfile, this code enqueues a custom JS file:add_action( 'rwmb_enqueue_scripts', function() { wp_enqueue_script( 'custom-code', get_template_directory_uri() . '/custom.js', ['jquery'], '', true ); } );Second, create a file
custom.jsand put it in your theme. And put the following code in that file:$from = $( '#from' ); $to = $( '#to' ); $from.on( 'change', function() { $to.datepicker( "option", "minDate", $from.val() ); } );Here I assume your fields has ID
fromandto. You might want to change it to something else if you have different IDs.December 6, 2019 at 3:53 PM in reply to: Cannot get rwmb_get_object_fields to work for setting object #17416Anh Tran
KeymasterHi,
Thanks a lot for your feedback! There was a bug with that function for settings page. I've just fixed it. Now you can use this code:
$fields = rwmb_get_object_fields( 'settings-page-id', 'setting' );Just note that the 1st item should be settings page ID, not option name.
December 6, 2019 at 3:35 PM in reply to: ✅Group data in custom table not printed via shortcode #17415Anh Tran
KeymasterHi Neal,
Please see this video: https://www.loom.com/share/600b5473ebc343fdaaf440717af7088a
I made a demo based on your code and it works.
December 6, 2019 at 3:23 PM in reply to: Fatal Error after update: cannot redeclare mbb_parse_meta_box_settings() #17414Anh Tran
KeymasterHi, did you activate both AIO and MB Builder? If so, please remove the individual MB Builder. AIO already includes it and you just need to activate it in Meta Box > Extensions.
Anh Tran
KeymasterHi Will,
Thanks for your help. It's added to the new version which has just been released.
Anh Tran
KeymasterGood idea. I think another option like "force_delete" will work on this. I'll implement it in the next version.
December 6, 2019 at 3:08 PM in reply to: ✅Conditional Logic broken by new Frontend Submission release #17409Anh Tran
KeymasterHi Terran,
Can you send me the code of the meta box that has problem with the conditional logic? The latest update of MB Frontend Submission doesn't have anything to do with the output of fields. It's quite strange that it breaks conditional logic.
December 6, 2019 at 3:06 PM in reply to: ✅Despite purchasing a lifetime bundle, it warns "Your license key is invalid" #17408Anh Tran
KeymasterProbably that's right. If there is no plugins in My Account page, the update system will think that's an invalid license key. Have you purchased any premium plugin? What was your email when you bought it?
Anh Tran
KeymasterHi Huy,
Probably this is the sanitization problem. Please see this blog post for details:
- Added a new parameter
-
AuthorPosts