Problem displaying user avatar
-
Hello,
I use this function to display the user avatar but for some reason the image is not displayed.
function author_avatar_shortocode_handler($atts) { return "<img src='". bp_core_fetch_avatar ( array( 'item_id' => $atts, 'type' => 'full' ) ). "' >"; }
Firebug show that image URL starts with
//
as in :src='<img src="//www.gravatar.com/avatar/cfb543ca40e1d2c06d297f83bac37bfd?s=150&r=g&d=monsterid" class="avatar user-Array-avatar avatar-150 photo" width="150" height="150" alt="Photo du profil" />'
Do you have an idea how to remove this ?
Thank you,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem displaying user avatar’ is closed to new replies.