Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress Activity Privacy Plugin

Viewing 17 replies - 1 through 17 (of 17 total)
  • @bphelp

    Participant

    @megainfo
    I forgot to mention this scroll only becomes visible after I activate your awesome plugin but I am sure its probably a quick fix. Thank you again!

    @bphelp

    Participant

    @hnla @mercime
    I thought I put this topic in “creating & extending” but for some reason it showed up in “installing buddypress.” Could you kindly move it there please? Also can you change my topic title to “BuddyPress Activity Privacy Plugin?” Thanks guys! 🙂

    @megainfo

    Participant

    Hi bp-help :P, give me 5 minute plz to read all this posts

    @megainfo

    Participant

    Hi again @bp-help and thanks for feedback,

    The scroll becomes visible also without the plugin, i think is css problem from buddypress (responsive).

    http://s21.postimg.org/j822en8iv/resize_compact.png
    http://s17.postimg.org/wotdu057z/resize_default.png

    you can fix that by adding this css :`
    #activity-privacy {
    margin-top: 2px;
    }
    `

    @megainfo

    Participant

    The problem is from js code who animate #whats-new-options div, he make a div 40px hight.

    i find fix, i will fix the plugin by ading this code in js file

    
            jQuery('#whats-new').off('focus');
            jQuery('#whats-new').on('focus', function(){
                jQuery("#whats-new-options").css('height','auto');
                jQuery("form#whats-new-form textarea").animate({
                    height:'50px'
                });
                jQuery("#aw-whats-new-submit").prop("disabled", false);
            });
    

    @bphelp

    Participant

    @megainfo
    Hey thanks! I just added the code to the plugins js file and it worked like a charm!
    I also fixed the styling in my child Responsive Theme. Its just a matter of adding floats, and margin. On my bp-default child, twenty twelve child, and simplify theme child all work perfect as well!
    Again nice job and thanks for the great plugin!

    @gnetworkau

    Participant

    @megainfo

    Nice plugin. Is it easy for you to include function in this plugin to do either of the following:

    * Automatically block (or make Private) the listing of posts in Activity from specific blogs on the network.

    * Automatically block (or make Private) the listing of posts in Activity from specific users of the network.

    I have been trying to do this for a long time but no such plugin or feature is available yet.

    Thankyou.

    @timvango

    Participant

    @megainfo
    At first: Great plugin!
    I have one question:
    My whole site is only for members, so I want to remove the loggedin choice.
    I have tryed some things, but when I remove something, I get an Syntax error…
    What can I remove and what not?

    Thank you

    @megainfo

    Participant

    Hi @timvango,

    Add this code to your functions.php (make sure using BuddyPress Activity Privacy 1.0.3 or +)

    
    add_filter('bp_profile_activity_visibility_levels_filter', 'bp_remove_loggedin_activity_visibility_levels', 10, 1);
    function bp_remove_loggedin_activity_visibility_levels($profile_activity_visibility_levels){
    	unset( $profile_activity_visibility_levels ['loggedin'] );
    	return $profile_activity_visibility_levels;
    }
    
    add_filter('bp_groups_activity_visibility_levels_filter', 'bp_remove_loggedin_groups_activity_visibility_levels', 10, 1);
    function bp_remove_loggedin_groups_activity_visibility_levels($groups_activity_visibility_levels){
    	unset( $groups_activity_visibility_levels ['loggedin'] );
    	return $groups_activity_visibility_levels;
    }
    
    add_filter('bp_profile_activity_privacy_levels_filter', 'bp_remove_logged_in_profile_activity_privacy_levels', 10, 1);
    function bp_remove_logged_in_profile_activity_privacy_levels($profile_activity_privacy_levels){
    	return array_diff($profile_activity_privacy_levels, array('loggedin'));
    }
    
    add_filter('bp_groups_activity_privacy_levels_filter', 'bp_remove_logged_in_groups_privacy_levels', 10, 1);
    function bp_remove_logged_in_groups_privacy_levels($groups_activity_privacy_levels){
    	return array_diff($groups_activity_privacy_levels, array('loggedin'));
    }
    

    @timvango

    Participant

    Hi @megainfo
    Which functions.php?
    That of my theme or an other one?
    Edit:
    My theme’s functions.php says:
    Don’t edit!

    @megainfo

    Participant

    Yes! in functions.php of your current theme.

    @timvango

    Participant

    Thanks!
    It has worked!

    @funmi-omoba

    Participant

    @megainfo, You are the bomb. Thanks for this great plugin. I voted 5 star already.

    Future suggestion,To make it look cleaner, may be just a padlock icon with a dropdown arrow to replace the word privacy: . So when you click on the padlock it then display all the privacy level. just a suggestion.

    Thanks for your great work

    @timvango

    Participant

    Hello, I have an request.
    A settings page for the user where he can select his default privacy level.
    That would be great!

    Greetings,
    Tim

    @monika

    Participant

    this plugin doesn’t restrict the last activity

    it shows it under my nickname on my profile page..

    :((((

    @bphelp

    Participant

    @monika
    As a temporary fix you could make a copy of “members-header.php” in your child theme and rename it to “original-members-header.php” then in the one named “members-header.php” you can delete lines 35-43 like in the below code and save it. If it causes issues just delete the members-header.php you modified and rename the one you copied “original-members-header.php” back to “members-header.php”

    
    <?php if ( bp_is_active( 'activity' ) ) : ?>
    
    	<div id="latest-update">
    
    		<?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
    
    	</div>
    
    <?php endif; ?>
    

    @monika

    Participant

    Hi bb-help thanks, yes I can do this,
    I’m familiar with work arounds like this you mentioned above 🙂

Viewing 17 replies - 1 through 17 (of 17 total)
  • The topic ‘BuddyPress Activity Privacy Plugin’ is closed to new replies.
Skip to toolbar