Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: [Resolved] BuddyPress admin Actvity hide #47321

    Hi,
    Thank you for the question.

    Please share your BuddyPress version and any changes you have made recently.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Thank you for confirming Tosin.

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Tosin,
    You will need to contact perfmatters about the defer.

    Here is slightly modified script to avoid redirect on deletion.

    
    add_action( 'bp_enqueue_scripts', function () {
    	// you can set the url value to anything.
    	$url = site_url( '/refer-friends/' );
    	ob_start();
    	?>
        bp.Avatar.Attachment.on( 'change:url', function( data ) {
        if( data.get('object') == 'user' && 'deleted' !== data.get('action') ) {
        window.location="<?php echo esc_url( $url ); ?>";
        }
        } );
    	<?php
    	$script = ob_get_clean();
    	wp_add_inline_script( 'bp-avatar', $script, 'after' );
    }, 100 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: Remove overlapping link on -forgot password- page #47299

    Hi Daniel,
    I am sorry, i don’t see any way.

    Your logo is set as background on that element and if we hide it(display:none or visbility:hidden, your logo is hidden too.

    You should contact the theme authors as this is not the default WordPress behaviour.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Tom,
    Thank you.

    I am sorry, i am not familiar with that theme, so I am unable to provide a php snippet.

    Please try to use this css and see if it works.

    
    body.settings.bp-user #item-header {
    	display:none !important;
    }
    
    

    This is not the best one as it simply hides the elements but does not remove them from the actual markup but should serve your purpose.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Amanda,
    Welcome to BuddyDev.

    If you don’t need account settings, I will suggest disabling it in BuddyPress settings.

    You can visit Dashboard->Settings->BuddyPress and under “Components”, you can untick ”
    Account Settings” and save.

    That is the correct way to disable account settings.

    If you only want to hide it and not disable it, you may use the following css

    
    
    #settings-personal-li,
    #wp-admin-bar-my-account-settings {
     display: none !important;
    }
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: BuddyBoss not working #47289

    Hi Anna,
    hope you are doing well.

    I have issued the refund. Please check your PayPal account for the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: [Resolved] PROFILE PHOTO NOT CROPPING #47288

    Thank you for sharing Tosin.

    I hope that it will help others.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Tosin.
    Please use the following code for diabling buttons:-

    
    // Disable activity comment.
    add_filter( 'bp_activity_can_comment', '__return_false' );
    // Disable activity favourite.
    add_filter( 'bp_activity_can_favorite', '__return_false' );
    // Disable activity deletion.
    add_filter( 'bp_activity_user_can_delete', '__return_false' );
    
    

    and you can use the following for blog post comment recording

    
    
    // Disable blog comment recording.
    add_filter( "bp_activity_post_pre_comment", '__return_false' );
    add_filter( "bp_activity_pre_transition_post_type_comment_status", '__return_true' );
    
    

    You should also disable the Blog/Forum post commenting in the Dashboard->Settings->BuddyPress->Options tab.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: BuddyBoss Autologin after Registration #47285

    Thank you Cristi.