ok to elaborate on what I did to give you more of an insight to what’s going on..I created the following wrapper to restrict viewing of activity posts/page:
<?php if ( !is_user_logged_in() ) : ?>
<p><?php echo 'my notification' ?></p>
<?php else : ?>
<?php endif; ?><!--is_user_logged_in-->
To mimic the functionality of the site as in the link above, I opened activity/activity-loop.php and pasted the first part of the conditional `(the if, message & else) immediately AFTER the following line:
<?php do_action( ‘bp_before_activity_loop’ ) ?>`
I Closed the conditional (the endif part) immediately BEFORE the following line:
<?php do_action( 'bp_after_activity_loop' ) ?>
As I mentioned earlier, unfortunately my edits did not replicate the site as mentioned in the earlier link.
Incidently, I have used the same wrapper to function on my members directory, so that logged-out visitors cannot view profiles and associated sensitive information. None of this directory is viewable, however I am quite happy with this outcome.
I am running the following plugins and have tested the usual way of de-activating each one to see if changes are made to the activity stream, of which the outcome drew a blank:
BuddyPress Version 1.2.8 (default)
BP Disable Activation
Facebook Like Box
Mail From