Skip to:
Content
Pages
Categories
Search
Top
Bottom

avatar image link address

  • Is there any way to get the image address of the avatar.

    What I mean is when I use bb_get_avatar( $user->ID) or post_author_avatar() I get the whole code like <img alt="" src="http://www.gravatar.com/avatar/d415555f00b204cfr535327e?s=80&d=identicon&r=g" class="avatar avatar-80 avatar-noemail" style="height:80px; width:80px;" />

    But all I need is the image address like http://www.gravatar.com/avatar/d415555f00b204cfr535327e?s=80&d=identicon&r=g

Viewing 3 replies - 1 through 3 (of 3 total)

  • chrishajer
    Participant

    @chrishajer

    It looks to me like the link (only) is stored in the variable $src in the file bb-includes/functions.bb-pluggable.php line 928.

    $avatar = '<img alt="" src="' . $src . '" class="' . $class . '" style="height:' . $size . 'px; width:' . $size . 'px;" />';

    So, being that it’s in functions.bb-pluggable.php, I’d say you could probably come up with a plugin to return $src instead of $avatar, but I am unsure of how to do that right now. It’s available, we just need to figure out how to return it for you.

    Thanks for the answer but that’s the problem.I just couldnt pull that out. I am actually trying to configure the rss feed with the author image. This way I can publish latest posts out of WP or forum in a nice way with the author pictures and posts.

    anybody have any idea how to pull this out?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar