Skip to:
Content
Pages
Categories
Search
Top
Bottom

AHP Sitewide Recent Posts and BuddyPress repeat gravatars

  • Hi again,

    I was searching for this issue but haven’t found any solution. The combination BuddyPress and AHP plugin repeat the first gravatar of a user and display for other users as well. I’ve tried to use function bp_blog_avatar but it doesn’t work. The function which I am talking about is this:

    // get gravatar
    if ($use_grav) {$grav_img = get_avatar( $thispost[0]->user_email, ’70’);
    $thisgravatar = ‘‘.$grav_img.’‘;
    } else { $thisgravatar = ”; }

    Any ideas? Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • anyone for help? I am lost.

    nah, I have found a solution:

    change the line which I mentioned above to this:

    $userid = $wpdb->get_var(“SELECT post_author FROM $blogPostsTable”);

    and then find line starting $grav_img = and change it to:

    $grav_img = get_avatar($userid, ’80’, ”);

    and your gravatars will be working fine.


    mrglasspoole
    Member

    @mrglasspoole

    i thought they have support at wpmudev.org?

    This plugin sounds great, but 75$ a month? Other template sites take this for a year…

    I have the same problem. romik84, where do you place the line

    `$userid = $wpdb->get_var(“SELECT post_author FROM $blogPostsTable”);`

    ?

    Can you help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AHP Sitewide Recent Posts and BuddyPress repeat gravatars’ is closed to new replies.
Skip to toolbar