Group Admins

  • Profile picture of Steve

BuddyPress Troubleshooting and Support

Public Group active 4 years, 7 months ago ago

BuddyPress support from our community

Activity Stream Commenting not Working

This topic contains 1 reply, has 1 voice, and was last updated by  Margarete Koenen 4 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3062

    Margarete Koenen
    Participant

    Activity stream commenting is not working on our website, http://leadernet.org. When you click the button the input box simply does not show. Interestingly on my local identical installation everything works fine.

    I believe that the problem is due to the fact that the buddypress.js (buddypress > bp-templates > bp-legacy > js > buddypress.js )file is not loading on the activity page. It does so on the members page where there is no problem with commenting. What might this be due to and what can I do about it?

    (The issue persists when I switch from Buddyboss to Twentyfourteen and when I turn all other plugins off. The console shows no errors.)

    #3063

    Margarete Koenen
    Participant

    I ended up loading the missing scripts from my functions file. It looks like this:

    function mk_add_bp_js() {
      if (!is_admin() && bp_is_group()) {
        wp_enqueue_script( 'buddypress-js-min', plugins_url() . '/buddypress/bp-templates/bp-legacy/js/buddypress.min.js','jquery', '2.1.1');
          wp_enqueue_script( 'buddypress-cookie', plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js', 'jquery', '2.1.1');
          wp_enqueue_script( 'buddypress-query', plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js','jquery', '2.1.1');
          wp_enqueue_script( 'buddypress-atwho', plugins_url() . '/plugins/buddypress/bp-core/js/jquery.atwho.min.js', 'jquery','2.1.1');
          wp_enqueue_script( 'buddypress-deprecated-scroll', plugins_url() . '/buddypress/bp-core/deprecated/js/jquery-scroll-to.min.js', 'jquery','2.1.1');
          wp_enqueue_script( 'buddypress-widget-members', plugins_url() . '/buddypress/bp-core/js/widget-members.min.js', 'jquery','2.1.1');
      }
    }
    add_action('wp_enqueue_scripts', 'mk_add_bp_js');

    If anyone has a better way of doing it, please let me know

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.