• I’m using threaded comments with a callback function on wp_list_comments to control the comment display loop. I have these lines in my callback function

    <?php if($depth==2) $avatar_size=32; else $avatar_size=48 ?>
    <?php echo get_avatar($comment,$size=$avatar_size); ?>

    And in the User Photo options I have the thumbnail dimension set to 48px, and both Serve Avatar as Fallback and Override Avatar checked. When users have uploaded avatars it is serving them up at a different sizes than 48px, is that just because they don’t get resized on the filesystem? Do I need to manually resize them?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter donzacharias

    (@donzacharias)

    Answering my own question:

    1. Resize the photos by hand to fit your new dimensions
    2. delete from wp_usermeta where meta_key like 'userphoto_thumb_width'
    3. delete from wp_usermeta where meta_key like 'userphoto_thumb_height'

    It removes all thumbnail dimensions from the DB, so they will just display without those in the IMG tag but they will be the correct size.

    Thread Starter donzacharias

    (@donzacharias)

    …following up my own answer, it does NOT automatically read the new dimensions, you have to update them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: User Photo] user photo size with get_avatar’ is closed to new replies.