Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 931 through 945 (of 3,708 total)
  • Author
    Posts
  • in reply to: Default full size for single image field #15340
    Anh TranAnh Tran
    Keymaster

    I got it. I didn't notice it was for background. Let me check that.

    in reply to: Saving settings page data to custom table? #15334
    Anh TranAnh Tran
    Keymaster

    I think the main problem with your settings is the unknown (probably huge) number of settings. There must be some way to resolve it beyond the custom table or options table. Because both solutions probably don't work well with this kind of data structure (options table uses serialized array, while custom table requires fixed columns).

    I'm not sure about how you save data. IMHO I'd suggest reworking on the data structure first, then choose a way to store data.

    If you need any help from my side, I'm happy to do so.

    in reply to: Conditional Logic based on Settings Page value #15333
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. Regarding the speed, yes, I optimized it several months ago. I'll take a look more about this.

    in reply to: Php Warning when using image upload #15332
    Anh TranAnh Tran
    Keymaster

    Hi Axel,

    Thanks a lot for your bug report. I've fixed the issue with cloneable single image here. The notice for image select is because you haven't add any options for the field. Please see this docs.

    in reply to: Conditional Logic based on Settings Page value #15328
    Anh TranAnh Tran
    Keymaster

    Hi Gary,

    The Conditional Logic extension works only for fields in one page. So if you have a settings page, you can set conditions for the fields inside. But you can't set conditions from another settings page. The purpose of the Conditional Logic extension is make a field visible/hidden in real time, and thus, it has to know the fields in the current page.

    As the settings page is created by you, you can control how many fields are there and can avoid a super large array of settings. WordPress supports quite well for the length of option value in the database.

    in reply to: Code ignored in favor of Builder? #15327
    Anh TranAnh Tran
    Keymaster

    Hi Gary,

    Thanks for choosing Meta Box!

    In Meta Box, code that you're using in your PHP files and the field groups you created in the MB Builder work independently and simultaneously. There's no connection between the code and the fields created in MB Builder.

    Unless you export the code from the MB Builder and put it in your theme/plugin. In that case, what loads first will take effect. But you should avoid this as it's confusing. If you want to use code, you should move the field group in MB Builder to Trash (or switch to Draft) to prevent it from loading.

    Besides, in MB Builder, the custom attributes feature is powerful enough for you to add custom settings for the meta box or for the fields. Using this feature will help you achieve the same effect as using code. However, if you want to use code, please just use it.

    in reply to: Saving settings page data to custom table? #15326
    Anh TranAnh Tran
    Keymaster

    Hi Gary,

    Thanks for a great question. The settings page doesn't support for saving to a custom table yet. The problem (technically) is the storage set for a setting page is fixed to use only options table.

    Besides, the custom table also maps fields with an entry (post, term or user) via its ID. In case of the settings page, there's no such an ID. Thus, breaking the structure of the custom table.

    I'm curious why do you want to save settings to custom table? I don't see any benefit using it over standard options table.

    in reply to: Default full size for single image field #15325
    Anh TranAnh Tran
    Keymaster

    Hi, Elementor already has the image size option, please use it:

    https://imgur.elightup.com/EySXFtK.png

    in reply to: Errors with debug logging turned on #15319
    Anh TranAnh Tran
    Keymaster

    Hi Peter,

    Glad that you found the problem. That's what I said in the previous comment. However, I've added a simple check for the Meta Box plugin that allows you to have a meta box with no fields. Try it here.

    Anh TranAnh Tran
    Keymaster

    OK, let me take a look.

    in reply to: No Admin Columns Showing #15307
    Anh TranAnh Tran
    Keymaster

    I know this is a stupid question, but have you activated the MB Admin Columns extension? Some users forget to do this.

    in reply to: Errors with debug logging turned on #15306
    Anh TranAnh Tran
    Keymaster

    Hi Peter,

    These errors happen because some meta box is mis-configured. Please check the code for meta box registration to make sure it follows the docs. These are usual problems:

    • Forget to return the $meta_boxes variable from the callback for the rwmb_meta_boxes filter.
    • Forget to add fields to the meta boxes.
    in reply to: Unable to Validate Required File Upload Correctly #15298
    Anh TranAnh Tran
    Keymaster

    Hi,

    Please use the 'require' => true parameter for the field. The validation doesn't work in this case.

    in reply to: CSS + jQuery + Bootstrap4 Optimization #15297
    Anh TranAnh Tran
    Keymaster

    Hi Ben,

    These are interesting questions!

    • CSS: in the MB Frontend Submission extension, the CSS is outputted in the same location as the form. It's not in the header nor footer. The plugin uses wp_enqueue_style to output the CSS. Unfortunately, this function doesn't support the location of the CSS (header, footer). I'd suggest optimizing the CSS with a minify plugin like Autoptimize.
    • jQuery: jQuery is registered by WordPress and you should not remove it. A safe way to use the latest version of jQuery is using the plugin Use Google Libraries or this technique. In either way, please test it first.
    in reply to: Help ! All my fields gone ! #15291
    Anh TranAnh Tran
    Keymaster

    Hi Ben,

    Sorry, the contact form and the forum doesn't accept attachments, just for security reason. You can upload the file to https://send.firefox.com or https://wetransfer.com and send me the link.

Viewing 15 posts - 931 through 945 (of 3,708 total)