WordPress.org

Ready to get started?Download WordPress

Forums

Active Directory Thumbnails
Avatar in user profile (4 posts)

  1. oldirtdog
    Member
    Posted 10 months ago #

    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...

    http://wordpress.org/extend/plugins/active-directory-thumbnails/

  2. Omar Mir
    Member
    Plugin Author

    Posted 10 months ago #

    http://wordpress.org/support/topic/how-to-display-avatar

    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.

  3. oldirtdog
    Member
    Posted 10 months ago #

    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...

  4. Omar Mir
    Member
    Plugin Author

    Posted 6 months ago #

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

    http://wordpress.stackexchange.com/questions/56736/how-to-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 :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.