Forum Replies Created
-
AuthorPosts
-
May 10, 2024 at 9:30 PM in reply to: Use semver packaging when using PHP Composer to download specific MetaBox-AIO #45425
Peter
ModeratorThank you for your feedback.
Currently, there isn't a plan to implement it. I will inform the development team to consider supporting downloading specific versions from Composer.
May 10, 2024 at 9:05 PM in reply to: Custom Field Select or Select Advance Required still submit on empty selection #45424Peter
ModeratorHello,
I re-check those fields with the Required option enabled and the validation still works properly, screenshot https://imgur.com/NRWQf2Z
Please export your field group to a JSON file and share it here. I will import the field group to my demo site and check the issue.
May 9, 2024 at 11:43 PM in reply to: Use semver packaging when using PHP Composer to download specific MetaBox-AIO #45420Peter
ModeratorHello Juan,
If you use Composer to get the premium version, there isn't a way to use a specific version, you always use the latest version. It is noted in the documentation https://docs.metabox.io/integration/#using-composer
The version of premium extensions specified in composer.json must be dev-master. We don't support version constraints for premium extensions yet. You always use the latest version.May 9, 2024 at 8:39 PM in reply to: โ Relationship Query in Bricks - Unable to sort related entries #45417Peter
ModeratorHello,
In the case of using Bricks Builder, please reach out to them if you have any issues with installation, configuration, compatibility, or usage.
Refer to our support policy https://metabox.io/support/topic/support-policy/Thank you.
Peter
ModeratorHello,
The extension plugin MB Settings Page and MB AIO on your site are very old versions, around 3 years ago. There are many changes in 3 years so you might experience some issues after updating to the new version.
If you want to investigate the issue further, please share your site admin account by submitting this contact form https://metabox.io/contact/
I will take a look.Peter
ModeratorHello,
I import the JSON file to my demo site and export the field group, the JSON file is valid. You can check the export file here https://pastebin.com/f25FtgqE
Please try to export other field groups and check if the issue persists.
May 8, 2024 at 11:03 PM in reply to: Breaking error - Deprecated use of "static" in callables in MetaBox Views #45410Peter
ModeratorHello Juan,
I believe many plugins and themes are not compatible with every new PHP version. It will take time to update the functions in the source code to be adapted with PHP 8.2.18. For now, I suggest using the lower PHP version (8.2.17 as you said or 8.2.0) to solve the issue.
Peter
ModeratorHello Ryan,
I see the view template works if you select a specific term for the category, tag archive. Let me escalate the issue to the development team to check this and I will get back to you later.
Peter
ModeratorHello Mark,
There is an issue with the context of the custom block in the new version, the custom fields are displayed in the sidebar only. I've escalated this issue to the development team to fix it in the next update.
Thank you.
May 8, 2024 at 10:07 PM in reply to: โ API::add and error Column 'ID' cannot be null for query INSERT INTO #45407Peter
ModeratorHello,
- If you use the custom table without using the model:
truesetting when creating the table// Step 2: Create a custom table for the model. add_action( 'init', function() { MetaBox\CustomTable\API::create( 'transactions', // Table name. [ // Table columns (without ID). 'created_at' => 'DATETIME', 'amount' => 'BIGINT', 'email' => 'VARCHAR(99)', 'gateway' => 'TEXT', 'status' => 'VARCHAR(20)', 'screenshot' => 'TEXT', ], ['email', 'status'], // List of index keys. true // Must be true for models. ); } );that means you are using the custom table to store the field value of a post type. The ID column of the table is the post ID of the post so it cannot be null when using the
add()function.This is controlled via metabox so i assume there is no pragmatic way to alter this?
There isn't a way to alter this. Can you let me know the benefit of altering this or your specific case?Peter
ModeratorHello,
You can follow the sample code to use the config, same as user_id:
add_action( 'rwmb_profile_after_save_user', function( $user ) { $config = $user->config; if ( 'my-meta-box' === $config['id'] ) { ... } } );If you want to use the filter hook, you need to have a basic knowledge of coding. If you are not familiar with coding, we offer a customization code for an extra fee. Please contact us here for more details https://metabox.io/contact/.
May 7, 2024 at 10:56 PM in reply to: Create a database table on registering a custom post with metabox #45396Peter
ModeratorHello,
1. No, it won't work. As I mentioned above, you have to create the column for the group field, not the subfields in the group.
https://docs.metabox.io/extensions/mb-custom-table/#group-fields2. Yes, you can try to use a loop to register the model for each value in the loop, I've not tested it before. Also note that, the custom table (step 2) can be run at once. That means after the table is created in the database, you don't need to run the code.
Peter
ModeratorHello,
There are some ways to add a custom field to a user (user meta), here is an example of using the action hook
rwmb_profile_after_save_user:add_action( 'rwmb_profile_after_save_user', function( $user ) { $user_id = $user->user_id; update_user_meta( $user_id, 'custom_field_ID', 'custom_field_value' ); } );Please follow the documentation https://developer.wordpress.org/reference/functions/update_user_meta/
https://docs.metabox.io/extensions/mb-user-profile/#rwmb_profile_after_save_userPeter
ModeratorHello Julien,
Thank you for your feedback.
I've shared your idea with the development team to support other JS libraries to get the rendered HTML via Rest API. I will let you know when I have a response from the dev team.
May 7, 2024 at 10:09 PM in reply to: โ Open Street Map inside Ajax Generated Bootstrap Modal - Displays Empty Container #45393Peter
ModeratorHello,
When a map is rendered, Meta Box loads some script files (CSS, JS) to display the map. The issue is when you call the template via Ajax, the script files aren't loaded and you won't see the map.
Refer to this topic https://wordpress.stackexchange.com/questions/298969/enqueue-script-dinamically
You can try to add some HTML tags like
<script><link rel="stylesheet"in the template and see if it helps. You can find the script files in the filewp-content/plugins/meta-box/inc/fields/osm.php.If you cannot complete the task, we offer a customization service with an extra fee. Please contact us here for more details.
-
AuthorPosts