Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,126 through 1,140 (of 3,707 total)
  • Author
    Posts
  • 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,
    in reply to: How can I achieve "save as" feature while editing form #14495
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    What do you mean "Save As"? Can you give a little more info about that?

    in reply to: Order of Relationship #14494
    Anh TranAnh Tran
    Keymaster

    Hi Matthias,

    Using get_posts is risky, since it auto applies suppress_filters=true, which is used to filter the results (the extension changes the query by applying new WHERE, JOIN clauses). If you want to make it work like WP_Query, I think you need to set it to false.

    Anh TranAnh Tran
    Keymaster

    Thanks a lot for your feedback and help. Let's continue discussing this issue on your PR on Github.

    Update: it's resolved here.

    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    Thanks a lot for your feedback. I've just realized the problem yesterday. Your solution seems right. I'll test it and release a new version.

    in reply to: Limit Image size and dimensions #14460
    Anh TranAnh Tran
    Keymaster

    Hi Michael,

    It's not in the plugin yet. But you can show a description to users to let them know the limit, and use a plugin like Resize Image After Upload to auto resize the images if their dimensions exceed the max width/height.

    in reply to: OSM field and tile server #14453
    Anh TranAnh Tran
    Keymaster

    Hi Toomas,

    At the moment, the URL of the tile server is fixed with OpenStreetMap. I've just re-check the code and found it's not very hard to add options for another tile server. Let me try and update you when it's done.

Viewing 15 posts - 1,126 through 1,140 (of 3,707 total)