Replies
- Brajesh Singh on November 11, 2022 at 5:24 pm in reply to: [Resolved] Redirect users immediately after profile photo upload #47300
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 - Brajesh Singh on November 11, 2022 at 5:19 pm 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 - Brajesh Singh on November 11, 2022 at 5:14 pm in reply to: [Resolved] Removing cover image header from some page #47298
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 - Brajesh Singh on November 11, 2022 at 4:39 pm in reply to: [Resolved] Hide settings navigation tab: “Account-settings” with css? #47297
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 Hi Anna,
hope you are doing well.I have issued the refund. Please check your PayPal account for the same.
Regards
Brajesh- Brajesh Singh on November 10, 2022 at 6:32 pm in reply to: [Resolved] PROFILE PHOTO NOT CROPPING #47288
Thank you for sharing Tosin.
I hope that it will help others.
Regards
Brajesh - Brajesh Singh on November 10, 2022 at 6:31 pm in reply to: [Resolved] How to disable all activity meta buttons #47287
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 - Brajesh Singh on November 10, 2022 at 6:06 pm in reply to: BuddyBoss Autologin after Registration #47285
Thank you Cristi.
- Brajesh Singh on November 10, 2022 at 6:06 pm in reply to: [Resolved] How to disable all activity meta buttons #47284
Hi Tosin,
My suggestion would be override the buddypress/activity/entry.php and remove the code.There are filters to disable the buttons but they will affect all other locations for these buttons.
If that is fine, we can use use the filters instead.
Regards
Brajesh - Brajesh Singh on November 10, 2022 at 6:03 pm in reply to: [Resolved] Removing cover image header from some page #47283
Hi Tom,
Welcome to BuddyDev support forums.Are you using BuddyPress or BuddyBoss? Also, which template pack and theme are you using?
Please share the details and I will assist.
Regards
Brajesh