Support Forum » User Profile

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Matej MoharMatej Mohar
    Participant

    Hi,
    thanks for help. Although it's now a long time since I originally asked a question, I needed this again and I decided to write here my solution for anyone that would be in same dilemma. The answer was is almost correct and it pointed me in the right direction.

    I forgot to answer it last year, because I solved this some other way and I totally forgot about this question.

    Because I was using [mb_user_profile_info id="rwmb-user-info"] shortcode, I needed to create a filter like this:

    add_filter( 'rwmb_profile_info_fields', function( $fields ) {
        error_log(print_r($fields, true));
        $fields['password']['attributes'] = [
            'title' => 'Username required text'
        ];
        $fields['password2']['attributes'] = [
            'title' => 'Password required text'
        ];
    
        return $fields;
    });
    
    Matej MoharMatej Mohar
    Participant

    I use this shortcode: https://docs.metabox.io/extensions/mb-user-profile/#login-form

    If you have any example it would be great rf if you can point me in the right direction.
    Thanks.

    Matej MoharMatej Mohar
    Participant

    Thank you, I saw this thread but I can't figure it out. If I use [mb_user_profile_login], how can I add "validation" part to the field group settings?
    I can see that there is a "rwmb_profile_login_fields" filter, but this is only for changing fields, not adding to the field group settings?

    in reply to: Relationship from comments to another CPT #36735
    Matej MoharMatej Mohar
    Participant

    Thank you for your replay. I then solved this problem with custom solution and will switch to metabox if it will become available anytime in the future.
    Thank you and have a nice day.

    in reply to: Change password form shortcode doesn't work #36685
    Matej MoharMatej Mohar
    Participant

    It's also not working for me so for now, I'm using @Joe solution. I can assure it was working before, so I guess there was an update in the meantime.

    Best regards, Matej

Viewing 5 posts - 1 through 5 (of 5 total)