BuddyPress Activity Plus Compatibility Problem With BP Group Hierarchy

Hi guys, I've just discovered a compatibility problem with BuddyPress Activity Plus and the excellent BP Group Hierarchy plugin - http://wordpress.org/plugins/bp-group-hierarchy/ In short, members of any 'Sub Group' cannot upload pictures (comes back with failed every time) when trying do so within any 'Sub Group'

This has been reported also, here:


I'm using the latest versions of both plugins, together with the latests versions of both WordPress and BuddyPress.

@Vladislav could you please look into making the BuddyPress Activity Plus plugin compatible? Or if support could provide a quick hack I'd really appreciate it...

Hope to hear from you guys soon.


  • PC
    • WPMU DEV Initiate

    Hello Rob,

    Greetings and thanks for posting on the forums.

    While I test this on my lab site, I have sent a quick note to our lead developer @Vladislav so that he can look into it too.

    He should be here sooner than later.

    Cheers, PC

  • godrob
    • Site Builder, Child of Zeus

    Hi @PC, thanks again for coming back to me. I've been pulling-my-hair-out over this and confirm that there is still a compatibility issue...

    After a lot of trial-and-error testing, I've discovered that if you are NOT a member of the Parent Group then you cannot upload pictures to any of the Sub Groups held within that Parent Group. It still comes back as 'failed' when uploading a picture.

    Can you or @Vladislav please provide a fix as both plugins are now essential to my site?


  • godrob
    • Site Builder, Child of Zeus

    Hi @PC and @Vladislav,

    I'm sorry but I think the issue is related to my functions.php file after all this... This is disabled locally on my dev machine, but is active on my live site. Anyway, I now believe the code below (which allows only me as 'Admin' access to the backed) is responsible for images failing to upload in BuddyPress Activity Plus.

    Moreover, I thinks it's the 'custom_is_ajax_request' function that was kindly provded as a work-a-round by @Vladislav for a similar issue; here:


    Here's the code:

    //Allows Only Admin To Access The Backend
    function no_accesss_for_others(){
        global $current_user;
            wp_safe_redirect (get_bloginfo('url'));
    function custom_is_ajax_request(){
    	if (defined('DOING_AJAX') && DOING_AJAX) return true;
        if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest')
            return true;
        return false;

    Can you please help me with an updated version that will make BuddyPress Activity Plus compatible with BP Hierrachy? Thanks Rob

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.