• There is some weirdness with sharing buttons being shown on BuddyPress profile pages.

    On the forum page I have two buttons being shown, one for the forum and one for the profile page even though I don’t have show on forums enabled.

    I wonder if there should be an option to turn off buttons on BuddyPress profile pages as many of them are only accessible to the when logged in anyway?

    https://www.ads-software.com/plugins/jetpack/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Could you go to Settings > Sharing in your dashboard, and let me know what checkboxes are currently checked on that page? Does unchecking “Posts” help?

    Thread Starter lyevalley

    (@lyevalley)

    Hi Jeremy ‘Posts’,’Pages’ and ‘Events’. Unchecking posts doesn’t help but unchecking pages turns them off and both buttons disappear. So it seems buddypress profile pages are treated as pages (makes sense) and presumably the bbpress forum is loading as a page within a page maybe?

    This maybe more of a bbPress issue than a Jetpack one, but it would still be nice to be able to turn the share buttons off on buddypress profile pages completely. For example the privacy settings page that is only available to the profile owner has a share button on it, that seems a little counter intuitive.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thanks for giving that a try!

    Could you try to add the following code to a functionality plugin like this one, and let me know if it helps?

    function jptweak_remove_share() {
    	if ( bp_is_user_profile() ) {
    	    remove_filter( 'the_content', 'sharing_display',19 );
    	    remove_filter( 'the_excerpt', 'sharing_display',19 );
    	    if ( class_exists( 'Jetpack_Likes' ) ) {
    	        remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
    	    }
    	}
    }
    add_action( 'loop_start', 'jptweak_remove_share' );

    Hello @jeherve,
    i have a similar problem in that the jetpack sharing plugin is messed up in every bbpress page (activity, profile, settings etc.) I’d want to get rid off all sharing buttons within buddypress. With your function I was able to remove it from the user profile page, could you please tell me how to remove it from all other buddypress pages?
    Thanks in advance and keep up the good work ??

    Nevermind, got it working.
    For anyone having the same problem, use

    function jptweak_remove_share() {
    	if ( is_buddypress() ) {
    	    remove_filter( 'the_content', 'sharing_display',19 );
    	    remove_filter( 'the_excerpt', 'sharing_display',19 );
    	    if ( class_exists( 'Jetpack_Likes' ) ) {
    	        remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
    	    }
    	}
    }
    add_action( 'loop_start', 'jptweak_remove_share' );
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sharing Buttons with BuddyPress’ is closed to new replies.