Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

  • teeboy4real
    Participant

    @teeboy4real

    I had the option Allow activity stream commenting on posts and comments disabled I also have some code in custom.php file. I am not sure if it could have any effect

    /* Disable comment for all activity but still enable @mention autosuggestion. */
    function disable_activity_comments($can_comment, $activity) {
        // Disable comments
        $can_comment = false;
        return $can_comment;
    }
    add_filter('bp_activity_can_comment', 'disable_activity_comments', 10, 2);
    
    /* Hide comment from activity page */ 
    add_action( 'bp_after_has_activities_parse_args', function ( $r ) {
        if ( bp_is_activity_directory() || bp_is_single_activity() ) {
            $r['display_comments'] = false;
        }
        return $r;
    } );
    
    // Exclude activity updates from subscribers who are not logged in on the activity directory page.
    function hide_new_member_activities_from_unlogged_users( $args ) {
        if ( ! is_user_logged_in() ) {
            $args['action'] = array(
                'activity_comment',
                'activity_update',
                'last_activity',
                'new_avatar',
                'new_blog_comment',
                'new_blog_post',
    			'new_classified',
                'updated_profile'
            );
        }
        return $args;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'hide_new_member_activities_from_unlogged_users' );
    

    teeboy4real
    Participant

    @teeboy4real

    Hello,

    I just updated wordpress to version 6.4.1 and buddypress buddypress 12.0 beta 4 and this error no longer occurs.


    teeboy4real
    Participant

    @teeboy4real

    Kindly note that this error still occurs while using the default Twenty Twenty-Four theme


    teeboy4real
    Participant

    @teeboy4real

    I updated to wordpress 6.4 while using buddypress beta 3. Accessing a members profile while I was logged out triggerd a fatal error. This is the info in my debug log below

    2023-11-08T16:55:16+00:00 CRITICAL Uncaught TypeError: Illegal offset type in /var/www/wptbox/wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php:800
    Stack trace:
    #0 /var/www/wptbox/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php(1038): bp_activity_post_type_get_tracking_arg()
    #1 /var/www/wptbox/wp-includes/class-wp-hook.php(324): bp_blogs_new_blog_comment_query_backpat()
    #2 /var/www/wptbox/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #3 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(401): apply_filters()
    #4 /var/www/wptbox/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php(291): bp_parse_args()
    #5 /var/www/wptbox/wp-content/themes/klein-child/buddypress/activity/activity-loop.php(3): bp_has_activities()
    #6 /var/www/wptbox/wp-includes/template.php(792): require('...')
    #7 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template()
    #8 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template()
    #9 /var/www/wptbox/wp-content/themes/klein-child/buddypress/members/single/activity.php(41): bp_get_template_part()
    #10 /var/www/wptbox/wp-includes/template.php(792): require('...')
    #11 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template()
    #12 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template()
    #13 /var/www/wptbox/wp-content/themes/klein-child/buddypress/members/single/home.php(34): bp_get_template_part()
    #14 /var/www/wptbox/wp-includes/template.php(792): require('...')
    #15 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template()
    #16 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template()
    #17 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(407): bp_get_template_part()
    #18 /var/www/wptbox/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-theme-compat.php(212): bp_buffer_template_part()
    #19 /var/www/wptbox/wp-includes/class-wp-hook.php(324): BP_Members_Theme_Compat->single_dummy_content()
    #20 /var/www/wptbox/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #21 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-theme-compatibility.php(767): apply_filters()
    #22 /var/www/wptbox/wp-includes/class-wp-hook.php(324): bp_replace_the_content()
    #23 /var/www/wptbox/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #24 /var/www/wptbox/wp-includes/post-template.php(256): apply_filters()
    #25 /var/www/wptbox/wp-content/themes/klein/buddypress-full-content.php(20): the_content()
    #26 /var/www/wptbox/wp-includes/template.php(792): require('...')
    #27 /var/www/wptbox/wp-includes/template.php(725): load_template()
    #28 /var/www/wptbox/wp-includes/general-template.php(206): locate_template()
    #29 /var/www/wptbox/wp-content/themes/klein-child/buddypress.php(90): get_template_part()
    #30 /var/www/wptbox/wp-includes/template-loader.php(106): include('...')
    #31 /var/www/wptbox/wp-blog-header.php(19): require_once('...')
    #32 /var/www/wptbox/index.php(17): require('...')
    #33 {main}
      thrown in /var/www/wptbox/wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 800

    teeboy4real
    Participant

    @teeboy4real

    Hello @imath @vapvarun ,

    I would like to seek advice and express my concern about a particular buddypress plugin (Buddypress Follow) in relation to the upcoming version of buddypress 12.0.0.

    I decided to test buddypress 12.0.0 beta 1 & 2 and noticed that clicking the user navigation menu for following and followers tab triggers an error. The plugin is not compatible with the upcoming buddypress 12.0.0.

    Honestly I believe this plugin should have been a part of the default buddypress component long time ago as an the option to select (connection type) would be awesome. Not every community can be built around friendship component.

    For example my site has member types (business) and (organisation), it would not make sense for a business to add another business as friends only human entities should do that, using the follow component would be more appropriate.

    My fear and frustration now is that ive built a community around this follow plugin with lots of already established follow connections. Upgrading to buddypress 12.0.0 would be almost impossible

    The plugin author (ray) has not been responsive about maintaining this plugin, even the team at Buddydev are ready to help develop and maintain the plugin but the author has been silent see Brajesh’s request at https://github.com/r-a-y/buddypress-followers/issues/111

    I also raised my issue at https://github.com/r-a-y/buddypress-followers/issues/125

    But not feedback from the author.

    Your help would be much appreciated in contacting ray

    Thanks & regards


    teeboy4real
    Participant

    @teeboy4real

    Hello @imath

    I just want to share this with you just for your awareness

    https://wordpress.org/support/topic/buddypress-photo-crop-problem/


    teeboy4real
    Participant

    @teeboy4real

    Hello @imath

    I justed tested this beta version but I can see a bunch of errors in my debug log, please pardon my approach as i’m not so sure this is the proper way to share my log with you, im new to stuff like this.

    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
      
    PHP Warning:  Attempt to read property "activity" on null in /home/site.com/public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 970  

    teeboy4real
    Participant

    @teeboy4real

    There’s a premium plugin at buddydev.com that does this


    teeboy4real
    Participant

    @teeboy4real

    You can try this plugin by imath it works https://github.com/imath/modal-buddy/


    teeboy4real
    Participant

    @teeboy4real

    As a free software I just can’t explain how much I love the buddypress project and I would like to give some suggestions.

    1. Buddypress Community Fund (Donations)- It would be awesome if a donation fund can be set up to support the development of buddypress. This fund would be used to incentive developers who would like to support and improve the buddypress project there by increasing the speed of development and progress on buddypress.

    Personally buddypress has added tremendous value to me and I would not hesitate to contribute to this fund on a monthly basis. I also feel that among thousands of site’s that are running on buddypress, there would always be thousands of people ready to support buddypress development financially.

    2. I would really like the development team to have different roles so buddypress development can be improved on from multiple angles simultaneously. For example

    1. Buddypress Technical Team
    2. Buddypress Design Team
    3. Buddypress Support Team

    This are just my personal opinions and I would like to know what your feedback or opinions are on this suggestions. Thanks


    teeboy4real
    Participant

    @teeboy4real

    Problem solved

    Solution provided by buddydev.com

    Paste the following code in your bp-custom.php file

    
    function buddydev_hide_add_friend_button( $button ) {
    
    	$displayed_user_id = bp_displayed_user_id();
    
    	$user_id = ( $displayed_user_id ) ? $displayed_user_id : bp_get_member_user_id();
    
    	$member_type = bp_get_member_type( $user_id );
    
    	if ( 'business' !== $member_type ) {
    		return $button;
    	}
    
    	return '';
    
    }
    add_filter('bp_get_add_friend_button', 'buddydev_hide_add_friend_button');
Viewing 11 replies - 1 through 11 (of 11 total)
Skip to toolbar