• Resolved ocbroadband

    (@ocbroadband)


    Is it possible to have a profile form that does ‘not’ contain the image/name of the user and only contains whatever fields I put into the form? It appears that these are ‘defaults’ and I’d rather specify exactly what I want in the form.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ocbroadband

    You can try checking this tutorial to make the Profile Form headerless.

    Regards,

    Thread Starter ocbroadband

    (@ocbroadband)

    Hi @champsupertramp,

    So, I took a look at that, however, I’m using Oxygen as my builder, and it disables the theme system. How do the templates work in this case with UM?

    My goal is actually to have a member list, and have peoples profiles visible, but there’s custom fields(ACF) that are part of the profile that I only want the owner to see and be able to edit, but hide from eveyrone else. I was thinking of creating 2 different forms, and insert them as shortcodes on the page, and show/hide each based on the user, however, BOTH shortcodes insert the header area vs. just the form/fields I created. Would be good to just have an option in the plugin to ask if the header should be included in the output on the member page or profile page.

    Thoughts?

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ocbroadband

    You can try the following code snippet to hide the profile header:

    add_action("um_before_profile_form_is_loaded","um_111821_remove_header");
    function um_111821_remove_header( $args ){
        
        if( $args["form_id"] == 123 ){
            remove_action( 'um_profile_header_cover_area', 'um_profile_header_cover_area', 9 );
            remove_action( 'um_profile_header', 'um_profile_header', 9 );
            remove_action( 'um_profile_menu', 'um_profile_menu', 9 );
        }
    }

    Just change the form ID 123 to your profile form ID that you want to remove the header.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ocbroadband

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved..

    ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

    Thread Starter ocbroadband

    (@ocbroadband)

    Hi @champsupertramp,

    Sorry, I never saw any replies, so I was able to try the above snippet. Works, but it removes ‘both’ the default and the one I want to actually show.

    This is before applying the snippet.
    https://prntscr.com/23fnoq1

    This is after applying the snippet.
    https://prntscr.com/23fnrig

    So, it is working, but it’s applying to both instances of the picture/name. – RESOLVED

    So, now, my dilemma is that when a member views their own profile, they should be able to see all the fields, but if another member views their profile, the extra fields should be able to be hidden or not shown. Is this possible?

    PS, I could not change the post title.

    Thanks,

    Lyle

    • This reply was modified 2 years, 11 months ago by ocbroadband.
    • This reply was modified 2 years, 11 months ago by ocbroadband.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ocbroadband

    How did you add the second Profile Photo? Are you using a custom code?
    https://drive.google.com/file/d/16R09pmHR3lhMBYxgxLBzwrYiGiMWhGUD/view

    Regards,

    Thread Starter ocbroadband

    (@ocbroadband)

    Hi @champsupertramp,

    I have 2 templates, but I resolved that. I updated my previous post with the issue remaining now.

    Extra fields that I included should only be shown to the member profile that is logged in. If viewing another member, I don’t want the extra fields shown. Is this possible?

    Thank you,

    Lyle

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ocbroadband

    Have you tried changing the visibility of the field to show it to the profile owner only?
    https://drive.google.com/file/d/16U5tVGQkiwX_SQALfvsNHG-rhQnLoLpQ/view?usp=sharing

    Regards,

    Thread Starter ocbroadband

    (@ocbroadband)

    Hi @champsupertramp,

    Well heck, I didn’t see that. That resolves it. ??

    So, I would just suggest an update feature to include the option of the snippet code above as a feature in the application. In this case, I’m using Custom Fields that should only be visible to the member, but not other members.

    Thanks for all your assistance, works like a charm!

    Regards,

    Lyle

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Members Profile’ is closed to new replies.