Support » Plugin: Active Directory Thumbnails » Avatar in user profile

  • Resolved oldirtdog


    Is it possible to have the avatar in a user profile to always show up as the one generated from this plugin? In particular, I’m looking to the users list and would like that to show the correct thumbnail based upon the one that I pulled from AD… the octet string shows fine in the profile of a user that has a photo in AD… however, I can’t get the photo to show up anywhere else…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Omar Mir


    The avatar is just another field, add another for the image. You may want to ask in the general support forums how to do that but the post above shows you how to get the image itself and put it anywhere you want.

    Yeah, I am able to get the new image to show on a post or page. However, I’m trying to actually use this as the default avatar for the user. If I am in admin and go to the user list, I’d like their AD thumbnail to appear there as well… I can’t seem to get that to happen…

    Plugin Author Omar Mir


    I don’t have a step by step but you can filter get_avatar

    From above, essentially the $myavatar = get_bloginfo('template_directory').'/images/custom-gravatar.jpg'; can be replaced with the plugin’s image URL.

    Make sure to read the second answer as well as that will give you an idea on how to get the User ID which you will need.

    I haven’t tried this but let me know if it works for you 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Avatar in user profile’ is closed to new replies.