Replies
- Tosin on November 12, 2022 at 10:05 am in reply to: [Resolved] Redirect users immediately after profile photo upload #47309
Thanks Brajesh
The code worked perfectly, I solved the perfmatters issue by disabling defer javascript function when viewing logged in user profile with the code below
/* Turn off perfmatters jd defer on change avatar page */ add_filter('perfmatters_defer_js', function($defer) { if(bp_is_my_profile()) { return false; } return $defer; });It would have been awesome if their was a function to target only the (change profile photo) page instead of using bp_is_my_profile()
Alternatively which javascript code does your code work with and where is it located in the buddypress folder maybe I could just exclude the js file path from the defer function
- Tosin on November 11, 2022 at 11:37 am in reply to: [Resolved] Redirect users immediately after profile photo upload #47294
With perfmatters I had defer javascript option enabled, is there a work around?
- Tosin on November 11, 2022 at 11:26 am in reply to: [Resolved] Redirect users immediately after profile photo upload #47293
Tested this again and it now works there was a conflict with perfmatters (https://perfmatters.io/) plugin
I also noticed that there is a redirect when photo is deleted, how can I stop this the redirect should only work for photo upload and not photo delete.
Thanks
- Tosin on November 11, 2022 at 11:22 am in reply to: [Resolved] How to disable all activity meta buttons #47292
Thanks Brajesh this is now resolved
- Tosin on November 10, 2022 at 6:10 pm in reply to: [Resolved] How to disable all activity meta buttons #47286
The filters are ok
I also don’t want the comments to be recorded in database
For example when a user comments on a blog post, buddypress should not record a corresponding activity for the comment.
Thanks
This plugin was the problem https://wordpress.org/plugins/performance-lab/
- Tosin on November 9, 2022 at 1:43 pm in reply to: [Resolved] How to disable all activity meta buttons #47273
im using the legacy template
I tried updating to the new 11.0 beat 1 maybe the issue might be resolved their but this is the debug error im getting
this is the stack trace
Stack trace: #0 /home/site.com/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php(3580): array_filter() #1 /home/site.com/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php(3515): bp_get_send_public_message_button() #2 /home/site.com/public_html/wp-includes/class-wp-hook.php(308): bp_send_public_message_button() #3 /home/site.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #4 /home/site.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /home/site.com/public_html/wp-content/themes/klein/buddypress/members/single/member-header.php(87): do_action() #6 /home/site.com/public_html/wp-includes/template.php(785): require('...') #7 /home/site.com/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template() #8 /home/site.com/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template() #9 /home/site.com/public_html/wp-content/themes/klein-child/functions.php(1276): bp_get_template_part() #10 /home/site.com/public_html/wp-content/themes/klein/buddypress-full-content.php(9): klein_bp_member_head() #11 /home/site.com/public_html/wp-includes/template.php(785): require('...') #12 /home/site.com/public_html/wp-includes/template.php(718): load_template() #13 /home/site.com/public_html/wp-includes/general-template.php(204): locate_template() #14 /home/site.com/public_html/wp-content/themes/klein/buddypress.php(28): get_template_part() #15 /home/site.com/public_html/wp-includes/template-loader.php(106): include('...') #16 /home/site.com/public_html/wp-blog-header.php(19): require_once('...') #17 /home/site.com/public_html/index.php(17): require('...') #18 {main} thrown in /home/site.com/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 3580The activity comment gets deleted only when the delete button link is opened in new browser tab
The activity comment does not delete with ajax while staying in the same browser tab
Maybe 🤔 there is a bug in buddypress