I am trying to add the currently logged in users profile info along with a cover image to the activity page on my buddypress site. At the moment I am using this code to echo out the profile data at the top of my my activity.php however for some reason the cover image is not displaying.
<div class="activity-sidebar-left">
<div id="item-header" role="complementary">
<?php
add_filter('bp_displayed_user_id','bp_displayed_outside_bp');
function bp_displayed_outside_bp($id){
return ($id==0) ? get_current_user_id() : $id;
}
if ( bp_displayed_user_use_cover_image_header() ) :
bp_get_template_part( 'members/single/cover-image-header' );
else :
bp_get_template_part( 'members/single/member-header' );
endif;
?>
</div><!-- #item-header -->
</div>
what I am trying to achieve is basically a small box with my users profile link, avatar, most recent activity (possibly friend count) and the cover image.
How would I go about adding the users header cover image? I have searched and searched and cannot find any answers whatsoever anywhere.
thanks guys :)