Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25407

    Hi Richard,
    I am sorry for the inconvenience.

    Please Visit Dashboard-> Settings->BuddyPress->Components and let me know if “Site Tracking” is enabled? If not, please enable it and try posting a comment.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    Brajesh Singh on in reply to: [Resolved] Disable Member Directory #17814

    Hi Mimi,
    Welcome to BuddyDev.

    Here is abetter strategy. We buffer the page content and discard it.

    
    
    /**
     * Start Buffering the members directory content.
     */
    function buddydev_start_members_dir_buffering() {
    	ob_start();
    }
    
    add_action( 'bp_before_directory_members', 'buddydev_start_members_dir_buffering', - 1 );
    
    /**
     * Discard the members directory content.
     */
    function buddydev_end_members_dir_buffering() {
    	// discard.
    	ob_end_clean();
    }
    
    add_action( 'bp_after_directory_members', 'buddydev_end_members_dir_buffering', 100001 );
    

    You can put it in your bp-custom.php or in your theme’s functions.php

    Hope it helps

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    Brajesh Singh on in reply to: [Resolved] Custom avatar by type #17813

    Hi CDS,

    Thank you for the details. Let me try this code on a site of mine and get back to you later today.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407

    Hi Kerem,

    Thank you.

    Please remove this line

    
    define ('WPLANG', 'my new file name');
    

    or change it to

    
    define ('WPLANG', 'YourLocaleName');
    

    The WPLANG should be set to the locale(e.g en_US fr_FR). What is your current locale, I can suggest the proper value.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    Brajesh Singh on in reply to: [Resolved] Custom avatar by type #17806

    Hi CDS,
    You have done it correctly by adding

    
    add_filter( 'bp_core_default_avatar_user', 'buddydev_set_default_use_avatar_based_on_member_type', 10, 2 );
    

    That line is required.

    I am hoping that example.com is replaced with the correct url path.

    Also, I will suggest that you should try changing a user’s member type and see if it has any effect on the avatar. Your code seems fine to me.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    Brajesh Singh on in reply to: Disabling Buddypress Group Deletion Non Site Admin #17804

    Hi Kerem,
    Thank you for posting.

    BuddyPress 3.0 has changed the way functions are loaded and this function is loaded conditionally now. That might be the reason.

    I was unable to recreate it. Still, you can use the following code to avoid any such notice.

    
    /**
     * Disable group deletion by non site admins.
     */
    function buddydev_disable_group_delete_by_non_site_admin() {
    
    	if ( ! bp_is_group() || is_super_admin() ) {
    		return;
    	}
    
    	$parent = groups_get_current_group()->slug . '_manage';
    	bp_core_remove_subnav_item( $parent, 'delete-group', 'groups' );
    
    	// BuddyPress seems to have a bug, the same screen function is used for all the sub nav in group manage
    	// so above code removes the callback, let us reattach it
    	// if we don't , the admin redirect will not work.
    	if ( function_exists( 'groups_screen_group_admin' ) ) {
    		add_action( 'bp_screens', 'groups_screen_group_admin', 2 );
    	}
    
    }
    
    add_action( 'groups_setup_nav', 'buddydev_disable_group_delete_by_non_site_admin' );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    Brajesh Singh on in reply to: [Resolved] Buddypress and Woocommerce #17801

    Thank you for letting me know.

    Glad that you found a solution.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    Brajesh Singh on in reply to: BuddyBlog, multisite posting #17800

    Sure. All the best.

  • Keymaster
    (BuddyDev Team)
    Posts: 25407
    Brajesh Singh on in reply to: [Resolved] Link Page to Groups #17799

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25407

    Hi Kreatsya,
    You are welcome. Glad that it is resolved.

    Yes, disabling minification will have performance ramifications.

    Most of the minify plugins provide a way to exclude certain files. Please notify the developer of minify plugin that it is causing problem with front end usage of WordPress media uploader and they should be able to help.

    Regards
    Brajesh