Thanks …
I found out. change in \plugins\buddypress\bp-activity\bp-activity-templatetags.php line 20-21 to
function bp_activity_template( $type, $user_id, $per_page, $max, $timeframe ) {
global $bp, $SHOWFRIENDS, $user_ID;
if ($SHOWFRIENDS == ‘1’) {$user_id=$user_ID;$type=’friends’;}
Don’t edit the main files, it’s a bad idea. Use the template tags:
<?php if ( bp_has_activities( 'type=friends&user_id=' . bp_loggedin_user_id() . '&max=30' ) ) : ?>
<ul id="activity-list">
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<li class="<?php bp_activity_css_class() ?>">
<?php bp_activity_content() ?>
</li>
<?php endwhile; ?>
</ul>
<?php endif;?>
Thanks Andy,
but does that code above show my friends activity? I tried, but it’s nothing but empty…
Do I have to modify it somehow?
<?php if ( bp_has_activities( ‘type=friends&user_id=’ . bp_loggedin_user_id() . ‘&max=30’ ) ) : ?>
<ul id=”activity-list”>
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<li class=”<?php bp_activity_css_class() ?>”>
<?php bp_activity_content() ?>
<?php endwhile; ?>
<?php endif;?>
You just needed to remove the amp; from the above. This should work for you, Im sure it was just a copy paste error