Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 4,051 through 4,065 (of 4,839 total)
  • Author
    Posts
  • in reply to: Add class to button(submit) rwmb_login form #22896
    Long NguyenLong Nguyen
    Moderator

    Hi Totis,

    There are 3 forms supported:
    - Registration form
    - Login form
    - Profile form

    with the corresponding form ID:
    - register-form
    - login-form
    - profile-form

    You can use the form ID to select the submit button on a form like this: #login-form #submit

    in reply to: Bug (maybe) MB Custom Table with Select Advanced field #22875
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I'm going to check it out and let you know later.

    Thank you.

    in reply to: Custom Slug for Custom Post Type with Custom Taxonomy #22861
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The extension MB Custom Post Type only supports to create the CPT and rewrite the CPT slug. If you want to add the taxonomy slug to the CPT URL, please follow this topic from WPSE https://wordpress.stackexchange.com/questions/94817/add-category-base-to-url-in-custom-post-type-taxonomy.

    in reply to: https-URL of single image - original size #22860
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Use the helper function rwmb_meta() to get the field single_image value returns an array of image information.

    So you just need to echo the array key full_url to show the image URL.

    function acf_picture($mb_field) {
        $output_array = rwmb_meta($mb_field, ['storage_type' => 'custom_table', 'table' => $wp_square] ); 
            echo $output_array['full_url'];
    }

    Regarding the cache, the extension MB Custom Table supports caching the query. That means, if you call the helper function several times for the same $post_id, it will only query once with the default expiration time (0 seconds). See more in this documentation https://developer.wordpress.org/reference/functions/wp_cache_set/.

    in reply to: Date picker conditions #22855
    Long NguyenLong Nguyen
    Moderator

    Hi Toni,

    You need to add a class for the start date.

    array(
        'name' => 'Group date',
        'id' => 'group_date',
        'type' => 'group',
        'clone' => true,
        'fields' => array(
            array(
                'name' => 'Date To Text',
                'id' => 'date_to_text',
                'type' => 'text',
                'class' => 'date_to_text'
            ),
            array(
                'name'       => 'Start Date',
                'id'         => 'start_date',
                'type'       => 'date',
    
                // Date picker options. See here http://api.jqueryui.com/datepicker
                'js_options' => array(
                    'dateFormat'      => 'yy-mm-dd',
                    'showButtonPanel' => false,
                ),
                'class' => 'start_date' // here
            ),
    
        ),
    ),

    then change the JavaScript code to:

    $('body').on('change', '.start_date input', function() {
        var startDate = $(this);
        startDate.parents('.rwmb-group-clone').find('.date_to_text input').val(startDate.val());
    });

    See my screen record https://share.getcloudapp.com/d5upZkj0.

    in reply to: Is it possible to suppress the title from showing? #22848
    Long NguyenLong Nguyen
    Moderator

    Hi Martin,

    To remove the meta box title in the user profile page, please add this code to the file functions.php in the theme folder or use the plugin Code Snippets.

    add_action( 'init', function() {
        remove_all_actions( 'rwmb_before_metaboxID' );
    }, 99 );

    Change metaboxID with your meta box ID, see https://share.getcloudapp.com/L1uQqRp4.

    in reply to: Select fields do not show values in MB Group #22831
    Long NguyenLong Nguyen
    Moderator

    Hi Clayton,

    I've received your ticket via Freshdesk:

    I keep getting an error when trying to submit more information on this bug. I hope all of this information goes through fine.
    
    To recreate this issue, 
    - Install Metabox and MB Groups on WP. 
    - Register the group field. 
    - Register the taxonomy. 
    - Create taxonomy terms. 
    - Create a post. 
    - Select a taxonomy term with the select field in the group field. 
    - Save the post. 
    - Refresh the page.
    What you will see is the select field has no value but the database stored the proper value from the select field. The new raw filter for the group field is preventing the field from showing the actual value. Please have a look at the first comment from this ticket to see where we think the problem is.

    The field taxonomy doesn’t store any terms in the post meta. Instead, it sets post terms. Just like a replacement of Category or Tag meta box of WordPress so it does not work with Group. If you want to save the taxonomy as the post meta, please use the field taxonomy_advanced.

    For more information, please follow these documentations.
    https://docs.metabox.io/fields/taxonomy-advanced/
    https://docs.metabox.io/fields/taxonomy/#data

    in reply to: Is it possible to suppress the title from showing? #22830
    Long NguyenLong Nguyen
    Moderator

    Hi Martin,

    The text "Meta Box Title" is the default title which displays when the meta box has an empty title. If you use the code to show the meta box and fields, leave the title with a space to remove it.

    $meta_boxes[] = array(
            'id'             => 'meta-box-id',
            'title'          => ' ',
            'post_types'         => 'post_type',
    ...

    Or use this custom CSS code in the admin area to hide it.

    #meta-box-id h2.hndle {
        opacity: 0;
    }

    See https://share.getcloudapp.com/12urWRyB.

    Or use the meta box setting 'style' => 'seamless' remove the wrapper box and display fields seamlessly. Follow the documentation https://docs.metabox.io/creating-meta-boxes/#meta-box-settings.

    Long NguyenLong Nguyen
    Moderator

    Hi Eddy,

    To edit the user profile on the front end, please use the extension MB User Profile with the shortcode [mb_user_profile_info]. See more in the documentation https://docs.metabox.io/extensions/mb-user-profile/#edit-profile-form.

    Long NguyenLong Nguyen
    Moderator

    Hi there,

    If you want to use the Meta Box on the same site instead of Pods, it is possible.

    WordPress saves the post and custom fields in the database even you delete the post type or deactivate the plugin Pods. Just deactivate the plugin Pods and create a new post type by using MB Custom Post Type with the same post-type-slug.

    For custom fields, you can create new fields with the same field ID and the corresponding field type of Meta Box to use the current field value of the post.

    in reply to: Permalink issue with Custom Post Type #22820
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please share your admin site account via this contact form https://metabox.io/contact/. I will check this issue.

    in reply to: Date picker conditions #22815
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The ID of the field when rendering to HTML code for a cloneable group is very complicated. You can add a custom class to the field text.

    array(
        'name' => 'Group date',
        'id' => 'group_date',
        'type' => 'group',
        'clone' => true,
        'fields' => array(
            array(
                'name' => 'Date To Text',
                'id' => 'date_to_text',
                'type' => 'text',
                'class' => 'date_to_text' // here
            ),
    
        ),
    )

    then change the selector in JavaScript code to

    $('.date_to_text input').val(startDate.val());

    to make all text fields in the cloneable group populate the date from the start date.

    in reply to: Select fields do not show values in MB Group #22813
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Have you tried to leave a new comment?

    Long NguyenLong Nguyen
    Moderator

    Hi Arturo,

    No, the plugin Meta Box AIO includes all supported extensions that's why it calls All In One.

    If it shows an empty screen when going to Meta Box > Post Types, please try to deactivate all plugins except Meta Box, Meta Box AIO, and clear the cache then create a new CPT again.

    If you create a post type and don't see the content on the single post page. Please go to Admin Dashboard > Settings > Permalinks > Save the current settings again to update settings for the new CPT.

    in reply to: Nested Relationship #22797
    Long NguyenLong Nguyen
    Moderator

    Hi,

    1. The extension MB Relationships helps you to create relationships (connections) between posts, terms, and users in a flat connection, not a hierarchical or nested connection.
    2. I think you can use the CPT and taxonomies with the hierarchy to easily select on the backend and query to show on the front end.

    3. To limit the number of connections, please use the field setting max_clone. Follow this documentation for more information https://docs.metabox.io/extensions/mb-relationships/#syntax.
Viewing 15 posts - 4,051 through 4,065 (of 4,839 total)