Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,141 through 1,155 (of 3,958 total)
  • Author
    Posts
  • in reply to: image_upload validation error #14580
    Anh TranAnh Tran
    Keymaster

    I'm very sorry, but I don't have a quick solution for that at the moment.

    in reply to: "MB" vs "Meta Box" #14565
    Anh TranAnh Tran
    Keymaster

    Hi,

    Nice question!

    This is actually my personal inconsistent. At first, I and other developers used "Meta Box" simply because it's the name of the main plugin. And then, I realized the name is quite long, so I changed to "MB". That's why you see 2 "versions" now.

    From now on, everything will be just "MB" for short.

    in reply to: Javascript Error disable switching the editor tabs #14563
    Anh TranAnh Tran
    Keymaster

    Thanks a lot for your feedback. WordPress 5.2 added another version of the clipboard library into its core, which conflicts with the current version of the MB Builder.

    I've just fixed and updated the extension and AIO. Please update.

    in reply to: image_upload validation error #14562
    Anh TranAnh Tran
    Keymaster

    I got it. Thanks for your code.

    This problem is expected behavior because the validation module doesn't support image_upload. The fields image_upload, image_advanced works differently from other fields since they use the Media Library and thus, the validation can't inject into the process.

    Anh TranAnh Tran
    Keymaster

    I've just checked the field and I don't see the problem.

    Does the user have the privilege to upload?

    in reply to: image_upload validation error #14534
    Anh TranAnh Tran
    Keymaster

    I've just checked the field and I don't see the problem. Can you give me more details? What's the code for the meta box?

    in reply to: Not working with conditional check from inside group #14532
    Anh TranAnh Tran
    Keymaster

    Hi aaron,

    The problem here relates to the scope of the conditions. When a condition is put on a field that inside a cloneable group, the plugin sets the scope = the group. So it searches for elements inside the group only.

    In this case, the scope of the condition for the field "Column Image" is the group. And the plugin can't search outside it.

    in reply to: Validation does not work when field is clonable #14530
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    The problem is the jQuery selector $("input[name$='fill-time\]'], input[name$='peak-pressure\]']" ). It's static, while cloning creates new elements.

    To fix that, you need to listen to a higher element, such as body, like this:

    $( 'body' ).on("focusout", "input[name$='fill-time\]'], input[name$='peak-pressure\]']", function (){} );

    in reply to: MB Custom Table beginner questions #14529
    Anh TranAnh Tran
    Keymaster

    Hi Brian,

    Is there something I can add to phpmyadmin so that on import of the csv file it also creates the needed info for each in the wp_post table?

    Creating a new post in the wp_posts table requires coding. So, I think this can be done with custom code only. Take a look at this tutorial on how to process a CSV file with PHP.

    Is there a hook that I can add to functions.php to tell my field to output the full url path and not the ID.

    File and image fields save attachment IDs in the database instead of URL. To get file URL, you can use wp_get_attachment_url function.

    Anh TranAnh Tran
    Keymaster

    Thanks for letting me know. Let me check it.

    in reply to: image_upload validation error #14517
    Anh TranAnh Tran
    Keymaster

    Thanks for letting me know. Let me check it.

    in reply to: Php code in the frontend submission form #14516
    Anh TranAnh Tran
    Keymaster

    The custom_html field allows you to set a callback (a PHP function name), where you can use a PHP function to output anything. Please try it.

    in reply to: MB Custom Table beginner questions #14515
    Anh TranAnh Tran
    Keymaster

    Hi Brian,

    Once the table is created should I delete this code?

    It's fine if you delete the code. If you keep the code, it will check for table existence before trying to create.

    If your data set is large do you advise setting all your fields to VARCHAR(length) NOT NULL

    Varchar is for a text that you don't know the length. It's usually used for fields like title, short description. If the field is large, I'd recommend using TEXT.

    What's the best way to import xml or csv data into my newly created custom post type that uses the mb custom table?
    I set the field ID to AUTO_INCREMENT. This allowed me to import my csv file and everything in the custom mb table imported correctly. But when I go to my custom post type in wp admin these listings do not show. This is driving me bananas.

    The ID column must map the ID of the posts in the WordPress's table. Otherwise, the plugin can't know which post that a row belongs to.

    I think, you need to edit the ID column first. Then using phpMyAdmin to import.

    in reply to: How can I achieve "save as" feature while editing form #14514
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    That sounds like a "copy" function. It's not supported at the moment :(.

    in reply to: Create terms taxonomy field #14513
    Anh TranAnh Tran
    Keymaster

    Hi Sergio,

    You can add condition to the parameter, like this:

    $can_add_new = current_user_can( 'manage_options' );
    
    // then in the field settings, set
    'add_new' => $can_add_new,
Viewing 15 posts - 1,141 through 1,155 (of 3,958 total)