• I need to remove the Profile Functionality completely and have the image field option instead. So I will add this code in members-grid and profile php files.

    So any body can help me how to display the image in front view?

    I created a image field called “Profile Image” with meta_name ‘my_profile_img’ this meta field to be added in php files so that my grid and profile pages will display this image in place of Avatar image, I will hide avatar images using css or any php code.

    Thanks
    ram

    • This topic was modified 5 years, 8 months ago by kayapati.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @kayapati,

    This would require some custom coding and changes to the Ultimate member templates.
    If you really need this customization and you are not sure how to do it I suggest hiring a developer for assistance.

    Regards.

    Thread Starter kayapati

    (@kayapati)

    I solved this:

    If any one need to display Image file, create meta field with the name of ‘profile_image’
    and this code in your custom profile page.

    $profile_image_path = um_user_uploads_uri() . um_profile('profile_image');
    get_profile_image = "<img src='$profile_image_path' />";
    echo "<img src=".esc_attr ($profile_image_path).">";

    you can also use this image field in Registration form.

    If you use custom image field for cover images, then you can hide the avatar image.

    • This reply was modified 5 years, 8 months ago by kayapati.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Image in front view’ is closed to new replies.