Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_comment_author_avatar() not displaying fall-back default gravatar

  • @ahjira

    Participant

    I want to show large avatars (full 96px) for those who comment on blog posts. To do this, I had to create a custom version of the bp_comment_author_avatar function so full-sized images were used rather than 48px thumbnails. My version of the function is identical except that I added the following arguments to the bg_core_fetch_avatar(array)

    ‘type’ => ‘full’, ‘height’ => ’96’, ‘width’ => ’96’

    This works perfectly for any commenter that happens to be a member. But for some reason, if the commenter is not a member and does not have a gravatar account, nothing is returned. I looked at the bg_core_fetch_avatar() function and it appears it should produce a default gravatar in that case.

    If anyone has any insights into why this isn’t working, I’d appreciate the help. If necessary I can post my code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @ahjira

    Participant

    I should add that regardless if I use bp_comment_author_avatar() or my custom version of it, the problem still exists. It doesn’t return an avatar for non-members with no gravatar account.

    @djpaul

    Keymaster

    What versions of WordPress and BuddyPress are you using, please?

    @ahjira

    Participant

    WP 3.0.3 and BP 1.2.6

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bp_comment_author_avatar() not displaying fall-back default gravatar’ is closed to new replies.
Skip to toolbar