Info
- 4 posts
- 2 voices
- Started 2 years ago by Start Action
- Latest reply from incirus
- This topic is resolved
avatar image link address
-
- Posted 2 years ago #
Is there any way to get the image address of the avatar.
What I mean is when I usebb_get_avatar( $user->ID)orpost_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 likehttp://www.gravatar.com/avatar/d415555f00b204cfr535327e?s=80&d=identicon&r=g -
- Posted 2 years ago #
It looks to me like the link (only) is stored in the variable
$srcin 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.
-
- Posted 2 years ago #
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.
-
- Posted 2 years ago #
anybody have any idea how to pull this out?
-
You must log in to post.