• 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

    https://www.londonbbmpinswap.co.uk

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dude

    (@pinhit)

    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: https://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: https://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

    (@pinhit)

    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.