• Resolved stefanius

    (@stefanius)


    Hi everyone,
    i’m currently trying to display an image uploaded over the registration form of a new user on the member directory site. I found this article https://docs.ultimatemember.com/article/1586-add-an-image-field-into-the-profile-card-in-the-member-directory, but it’s not working for me…

    After adding the github snippet into functions.php, i changed the “$key” to “custom_pic” and added the “<# if ( typeof user.custom_pic !== ‘undefined’ ) { #> user.custom_pic.html <# } #>” code into member-list.php. However i never saw any difference on the member directory site, probably im adding the “<# if ( typeof user.custom_pic !== ‘undefined’ ) { #> user.custom_pic.html <# } #>” in the wrong part of the member-list.php… i wasn’t able to found a variable with name “user” there, only something like “$no_users” or “$showuser_info”, where i put it.
    Thanks for the help in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter stefanius

    (@stefanius)

    Update: I figured out how to display the image, but is it possible to add a css class to the image or to put it in a <div> tag?

    Also now i want to add a button, which refers to the profile page of the specific user.
    Any help in form of links, or code snippets is welcome.

    • This reply was modified 1 year, 6 months ago by stefanius.
    Thread Starter stefanius

    (@stefanius)

    Update: I was able to change the appearance of the image with css.
    Still seearching for an option to display a button, which leads the viewer to the profile page of the specific member.

    samchameleon

    (@samchameleon)

    Hi,

    I know this thread was a while ago but could you please explain how you added the image to the members directory. I tried doing the same thing as you by putting the filter into functions.php and changing members-grid.php (I have grid set as the default). But nothing is changing for me. How did you get it to work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can i display a image in the member directory’ is closed to new replies.