Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,321 through 1,335 (of 3,958 total)
  • Author
    Posts
  • in reply to: HTML5 date input #13770
    Anh TranAnh Tran
    Keymaster

    Hi,

    For the date picker, as the plugin already supports a custom 'date' field, so it's not available to use default HTML5 input types. In short, the field types that are already supported by the plugin will overwrite the HTML input types.

    in reply to: custom post type capabilities #13769
    Anh TranAnh Tran
    Keymaster

    Hi Guy,

    I've added that attribute. But in my test, even when adding it, the post type doesn't show in the admin menu for admins to view/edit them.

    Anh TranAnh Tran
    Keymaster

    Glad that you found the filter. I missed it, too. Just added the docs for it. Thanks for your feedback!

    in reply to: How to edit Email and Password #13746
    Anh TranAnh Tran
    Keymaster

    Hi Infolu, you just need to include the meta box with ID rwmb-user-info to the list of meta boxes in the shortcode, like this:

    [mb_user_profile_info id="your-meta-box-id,rwmb-user-info"]

    Anh TranAnh Tran
    Keymaster

    You can modify the readonly attribute with the value like this:

    'readonly' => ! is_admin(),

    So, on the admin, it's true, on the front end - false.

    in reply to: Duplicate fields on the backend #13744
    Anh TranAnh Tran
    Keymaster

    Hi,

    Good trick on get_current_screen()!

    Regarding the user language, the field ID (for user meta) is locale. However, the list of options you need to make by yourself.

    The display name has the field ID display_name.

    The "Sessions" button is just a simple button and you can do that with button field. However, to make sure it works like WordPress, you have to do the code to log out from everywhere by yourself.

    in reply to: group_title from field incfrementing value #13742
    Anh TranAnh Tran
    Keymaster

    @Ale: I've just updated MB Group to version 1.3 which supports flexible group title like this:

    'group_title' => '{headline} {#}',

    Please try that and let me know if you find any bug.

    in reply to: Group title not showing #13741
    Anh TranAnh Tran
    Keymaster

    Hi Vladimir,

    Can you please clear browser cache and try again? I've just re-checked and it seems to be working for me.

    in reply to: Error with Image Advanced in Gutenberg #13725
    Anh TranAnh Tran
    Keymaster

    I've fixed this bug in this commit. You can download the dev version here. I'm optimizing the JS code and will release a new version soon.

    in reply to: How can I update the post instead of Insert #13706
    Anh TranAnh Tran
    Keymaster

    I got it. I think the hard part in this situation is detect if there's any existing post with the same title. I'm afraid I don't have any that code available.

    Once you get that post (with post ID), you can use update_post_meta function to manually update fields.

    Anh TranAnh Tran
    Keymaster

    Hi Camilo,

    I got it. So if you use the helper function rwmb_meta to get the value, you can use a filter to remove the extra zeros. This is the filter:

    apply_filters( 'rwmb_meta', $meta, $key, $args, $post_id );

    So you can do something like this:

    add_filter( 'rwmb_meta', function( $meta, $key, $args, $post_id ) {
        if ( 'your_field_id' === $key ) {
            $meta = your_function_remove_extra_zeros( $meta );
        }
        return $meta;
    }, 10, 4 );
    in reply to: Empty date field with save_format causes error #13704
    Anh TranAnh Tran
    Keymaster

    Hi Ryan, thanks a lot for your feedback. It's fixed in this commit.

    Anh TranAnh Tran
    Keymaster

    Hi Ryan, thanks a lot for your feedback. I've just fixed it in this commit.

    in reply to: How can I update the post instead of Insert #13681
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq, how do you save posts? I mean do you run a code to save posts or use Meta Box plugins?

    If you need to hook after Meta Box save post data, you can just use 'rwmb_after_save_post' hook, or save_post (with priority > 10). And then use update_post_meta to update meta data to an existing post of your choice.

    in reply to: Meta Boxes options in Conditional Logic #13676
    Anh TranAnh Tran
    Keymaster

    Hi Mark,

    I've found that the AIO plugin loads the files quite late. I've just updated the plugin with a fix for that. Please upgrade.

Viewing 15 posts - 1,321 through 1,335 (of 3,958 total)