BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 900

    Thanks Brajesh my issue is now resolved

  • Participant
    Level: Guru
    Posts: 900

    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

  • Participant
    Level: Guru
    Posts: 900

    With perfmatters I had defer javascript option enabled, is there a work around?

  • Participant
    Level: Guru
    Posts: 900

    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

  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: [Resolved] How to disable all activity meta buttons #47292

    Thanks Brajesh this is now resolved

  • Participant
    Level: Guru
    Posts: 900
    Tosin on 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

  • Participant
    Level: Guru
    Posts: 900
  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: [Resolved] PROFILE PHOTO NOT CROPPING #47280
  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: [Resolved] How to disable all activity meta buttons #47273

    im using the legacy template

  • Participant
    Level: Guru
    Posts: 900
    Tosin on in reply to: Buddypress activity not deleting #47262

    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 3580