Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,131 through 2,145 (of 3,708 total)
  • Author
    Posts
  • in reply to: Bulk options adding #9845
    Anh TranAnh Tran
    Keymaster

    I'm afraid you have to do it manually. Because the plugin provides UI to users to interact, you should interact :). To shorten the time, you can just enter the Value, the Key will be automatically filled in.

    in reply to: control posts comments on or off #9844
    Anh TranAnh Tran
    Keymaster

    Hi,

    Please use this snippet:

    add_filter( 'rwmb_frontend_insert_post_data', function( $data, $config ) {
        if ( 'meta-box-id' == $config['id'] ) {
            $data['comment_status'] = 'closed';
        }
        return $data;
    }, 10, 2 );
    in reply to: How to create columns? #9842
    Anh TranAnh Tran
    Keymaster

    Hi,

    As you're using text_list, they'll display in a row like this:

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

    All you need to do is using simple text fields for them. Please create 3 text fields for year, berths and fixed beds. And you'll get them in a column.

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

    Hi, I've just updated the plugin to remove the debug function in the #2 error :(. Sorry about that.

    Regarding the #1: you need to change the code at this line to your code that register users. If you submit multiple times, it returns the same user info and thus, WordPress will throw an error of existing username/email.

    in reply to: Home Page Include #9803
    Anh TranAnh Tran
    Keymaster

    I think the way you access to global $post is incorrect. That global object is not available when registering meta box. To get the post ID, please use this code instead:

    https://github.com/wpmetabox/library/blob/master/conditional-display/better-include.php#L66

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

    Hello,

    I've just updated the plugin (v1.0.1) that add support for ignoring the register process and allow you to register the user by your own. Please update and see the demo code here:

    https://github.com/wpmetabox/library/blob/master/extensions/mb-user-profile/register-user-manually.php

    in reply to: How to set the post title to my Name input field? #9800
    Anh TranAnh Tran
    Keymaster

    Oops, the Default value is missed from the Builder. I'll fix it asap. In the mean time, you can set via custom attribute. Just set the key to std and the value to ID of the category:

    https://imgur.elightup.com/8xep7GQ.png

    To get the category ID, see this screenshot:

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

    in reply to: Suggestions #9799
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    Currently the Meta Box doesn't have custom CSS class and ID. Because the wrapper HTML is controlled by WordPress, the plugin can handle only the inner HTML. Can I ask what do you need it for?

    in reply to: How to set the post title to my Name input field? #9776
    Anh TranAnh Tran
    Keymaster

    Hi,

    To assign a fixed value to the category, use the taxonomy field. And set the default value (std parameter) to the category ID. Then that default value will be used when you submit the form.

    In order to hide the field, just add a custom CSS class to the field (like hidden) and add this line into your theme, or in Customizer > Additional CSS:

    .hidden { display: none; }

    That's it. Please try and let me know how it goes.

    in reply to: Field style for MB Term Meta #9775
    Anh TranAnh Tran
    Keymaster

    Hi oome,

    Can you post a screenshot of non-matching style? We have tried to make all the style follow WP style.

    in reply to: any plans about adding post tags #9737
    Anh TranAnh Tran
    Keymaster

    Oh, that's a nice idea. Let me try it.

    in reply to: How to set the post title to my Name input field? #9736
    Anh TranAnh Tran
    Keymaster

    I've checked on your site and I see you created a field with ID post_title. But as it's a field in a meta box, it can't be a post field.

    To add post field, you need to change the shortcode to:

    [mb_frontend_form id="dominantgegevens,diensten" post_fields="title"]

    And the template for post title now works.

    Just a note: post fields (such as post title, editor, thumbnail, etc.) are not part of meta boxes, so you can't wrap it in tabs. They will appear above the tabs.

    Here is the screenshot of the page:

    http://prntscr.com/jmu4hs

    in reply to: Where to define the tooltip? #9735
    Anh TranAnh Tran
    Keymaster

    Hello,

    You can add tooltip via Custom Attributes. Please go to Advanced tab, click "+ Attribute" button under Custom Attributes and add key = 'tooltip', value = tooltip text. If you want to use a custom icon for tooltip, add 3 attributes:

    1. Key: tooltip.icon, value: dashicon icon or URL of the icon. See list of dashicons here https://developer.wordpress.org/resource/dashicons/
    2. Key: tooltip.content, value: the content of the tooltip
    3. Key: tooltip.position, value: left|right|top|bottom (one of them) to specify the position of the tooltip. It's optional.

    Please try it and let me know if you need any help further.

    in reply to: How to define Field type Image? #9672
    Anh TranAnh Tran
    Keymaster

    In the Builder, please select the “HTML image” field.

    in reply to: How to set the post title to my Name input field? #9671
    Anh TranAnh Tran
    Keymaster

    Yes, please send me a temporary account to [email protected]. I’ll check it.

Viewing 15 posts - 2,131 through 2,145 (of 3,708 total)