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: 25478

    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: 25478
    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: 25478
    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: 25478
    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: 25478
    Brajesh Singh on in reply to: BuddyBlog, multisite posting #17800

    Sure. All the best.

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

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25478

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25478

    Hi Kerem,
    Thank you for using the plugin.

    You will need some translation tool to translate a file.

    I suggest using POEdit. You may find this guide useful
    https://www.hostinger.com/tutorials/wordpress/how-to-translate-wordpress-theme-using-poedit
    Regards
    Brajesh

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

    Hi Hervé,
    Welcome to BuddyDev forums.

    No, The plugin can not post to multiple blogs at one time. It can post to one site.

    You will need some kind of syndication plugin to move sync contents between blogs.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25478
    Brajesh Singh on in reply to: [Resolved] Integration with PMPro #17787

    Hi Irene,
    Thank you for posting.

    Please see the guide here.
    https://buddydev.com/docs/buddypress-member-types-pro/assigning-paid-memberships-pro-memberships-based-on-member-type/

    Hope it helps.

    Regards
    Brajesh