Title: control activity posts
Last modified: August 20, 2016

---

# control activity posts

 *  [dude](https://wordpress.org/support/users/pinhit/)
 * (@pinhit)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/control-activity-posts/)
 * how do i control what posts are made to my activity wall?
    for example: every
   time a member joins my site these posts show on the activity stream
 * for now i have to go in and delete manually.
 * the same applies to members becoming friends etc
 * thanks
 * kenny
 * [http://www.londonbbmpinswap.co.uk](http://www.londonbbmpinswap.co.uk)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [dude](https://wordpress.org/support/users/pinhit/)
 * (@pinhit)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/control-activity-posts/#post-2152667)
 * ok so for now I’ve managed to completely deny the viewing of the entire activity
   stream on my site to logged-in members only (also changed the site name to: [http://www.londonpings.co.uk](http://www.londonpings.co.uk))
   incase anyone would like to go check.
 * Anyway, I’m not aiming to censor the entire stream, but to be more precise I’m
   trying to restrict the viewing of my members posts, albeit in an ideal world 
   I’d like to continue showing the stream, and each member including their avatar,
   but be able to display a notice on each post instead, something similar to this
   wordpress/buddypress set-up: [http://www.swapbbm.com](http://www.swapbbm.com)
 * I’ve tried for several weeks now alas to no avail to be able to do this and have
   failed miserably 🙁
 * If anyone would be kind enough to help me nail this matter I’d be extremely appreciative!!
 * many thanks.
 *  Thread Starter [dude](https://wordpress.org/support/users/pinhit/)
 * (@pinhit)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/control-activity-posts/#post-2152668)
 * 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

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘control activity posts’ is closed to new replies.

## Tags

 * [Activity](https://wordpress.org/support/topic-tag/activity/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [dude](https://wordpress.org/support/users/pinhit/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/control-activity-posts/#post-2152668)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
