Hi @nickofnight,
In order to see the sitewide activity stream, by default members can go to: example.com/activity
. Activity related to a particular member can be seen by going to example.com/members/username
Why don’t you just redirect everyone to the first link on login?
Hi, thanks for the response!
I am trying to create a useful page for people once they log in, showing recommended groups for them based on their profile, forum posts they are subscribed to etc – basically a personalised portal to what is going on on the site and what they might be interested in doing.
Showing sitewide activity on that page would be great and encourage them to reply to other peoples comments/status’s etc. Showing only their own activity on it right now is a bit pointless.
In that case, you can just do this:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<?php locate_template( array( 'activity/entry.php' ), true, false ); ?>
<?php endwhile; ?>
<?php endif; ?>
Unless you filter this, it’ll show everything.
Ref: https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/
If I put that code on the users activity page template, it is automatically filtered to that user and I don’t know how overwrite it to say don’t use a user/ID.
Hi, did you find a workaround? I am trying to achieve the samething. that would be, that anybody can see any user activities, its kind to restricted to only friends.
Hi @alitoruiz – yes I did but I used a plugin in the end. It is very lightweight and does almost exactly what I needed: http://buddydev.com/plugins/bp-community-activity-on-profile/
Only problem was it didn’t make the “all activity” tab it creates the default, so I had to change a few links to point to the new tab.
Hope it helps!