Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,146 through 2,160 (of 3,702 total)
  • Author
    Posts
  • in reply to: How to set the post title to my Name input field? #9635
    Anh TranAnh Tran
    Keymaster

    Hello,

    The post title is displayed in the post_fields attribute of the shortcode. Please use the MB Frontend Submission to add other fields to the form.

    In your situation, it sounds like changing the label for post title from "Post Title" to "Name".

    So, please create a folder in your theme called mb-frontend-submission. Inside that folder, create a sub-folder called post. And inside post, create a file title.php, which contains the following code (don't worry, just copy and paste):

    <?php
    $title = $data->post_id ? get_post_field( 'post_title', $data->post_id ) : '';
    $field = apply_filters( 'rwmb_frontend_post_title', array(
        'type' => 'text',
        'name' => esc_html__( 'Name', 'rwmb-frontend-submission' ),
        'id'   => 'post_title',
        'std'  => $title,
    ) );
    $field = RWMB_Field::call( 'normalize', $field );
    RWMB_Field::call( $field, 'admin_enqueue_scripts' );
    RWMB_Field::call( 'show', $field, false, $data->post_id );

    That's it!

    Please try and let me know how it works.

    in reply to: Order of multiple meta boxes on a page #9633
    Anh TranAnh Tran
    Keymaster

    Hello,

    When you reorder meta boxes in the edit screen, the order is saved in the user meta called meta-box-order_$posttype. So, to get that order, you need to run:

    $order = get_user_meta( get_current_user_id(), 'meta-box-order_yourposttype', true );
    var_dump( $order );

    See this answer on WPSE for some other info:

    https://wordpress.stackexchange.com/q/70204/2051

    in reply to: Loads options of select that depends of other select #9632
    Anh TranAnh Tran
    Keymaster

    Hi,

    This is very specific, so I think the only way to do that is via custom JavaScript.

    • You listen on "change" event of the parent select
    • Get the options' values you want to combine from 3 selects
    • Update the list of options of a select field.

    Without custom JavaScript, I can't think about another solution.

    in reply to: Can we create mutlistep form #9631
    Anh TranAnh Tran
    Keymaster

    Hi,

    Unfortunately, the plugin hasn't supported multiple steps yet :(.

    in reply to: Image to show on page #9630
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    I've done some work on this. I created a plugin called "MB Beaver Builder Integration" at:

    https://github.com/wpmetabox/meta-box-beaver-themer-integrator

    When you choose a field to connect to (like a heading field), you'll see Meta Box Field under the Posts group. And from there you can choose which field to insert. Please try and let me know how it goes.

    in reply to: required fields #9610
    Anh TranAnh Tran
    Keymaster

    Hello,

    It would be hard as the custom fields created by Meta Box needs to hook in to the wp_insert_user to save the data. If you manually create the user, that code should happen before the form is processed. Let me see if I can provide a way to do that. Please wait.

    Anh

    Anh TranAnh Tran
    Keymaster

    Hello,

    Are you using the User Registration addon? Can you please send me a copy to check it via email [email protected]? I have only a copy of the core plugin, which doesn't have the user fields.

    in reply to: Forgotten test code on line 30 #9599
    Anh TranAnh Tran
    Keymaster

    It's fixed now. Please try again.

    Anh TranAnh Tran
    Keymaster

    Hello,

    The address field is just a text field. While it's used to auto-suggest the map location, it acts like a normal text field. So you can just use the helper function to get its value and output it in the frontend.

    Anh TranAnh Tran
    Keymaster

    Hello,

    This can be done with custom JavaScript. Here is the pseudo-code:

    First step: enqueue your JS file:

    add_action( 'rwmb_enqueue_scripts', function() {
        wp_enqueue_script( 'your-js-id', 'url-to-your-js', ['jquery'], '', true );
    } );

    And in your JS file:

    jQuery(function(){
        var $start = $( '#start_date' ),
            $end = $( '#end_date' );
        $start.datepicker( {
            onSelect: function( dateText ) {
                $end.val( dateText );
            }
        } );
    });
    Anh TranAnh Tran
    Keymaster

    Hello,

    To make the plugins work together, the key for user meta fields must be exactly the same. I remember Gravity Forms automatically creates key for fields which includes some numbers (the number 7 in your screenshot). I'll check more with GF. In the meantime, can you check if you can change the key for fields? It must be case-sensitive.

    in reply to: Forgotten test code on line 30 #9590
    Anh TranAnh Tran
    Keymaster

    Strange. Let me check the update system again. Thanks for letting me know.

    in reply to: Custom table save error #9576
    Anh TranAnh Tran
    Keymaster

    Hi, I've just fixed the bug in the version 1.1.3. Please update and let me know how it goes.

    in reply to: WP All Import/Export Add-on #9575
    Anh TranAnh Tran
    Keymaster

    Hi Jason,

    Yes, it's on the roadmap. We faced a heavy workload in the past few months, so we couldn't work on this feature. I'll try to get back to this as soon as I can.

    in reply to: Custom table save error #9564
    Anh TranAnh Tran
    Keymaster

    Hello, I got what you meant. Let me debug it.

Viewing 15 posts - 2,146 through 2,160 (of 3,702 total)