New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Eri,

    You can disable left and right panel by navigating Customizer > Layout > Global. Please check the url set visibility to none to disable

    https://imgur.com/SlLlXZ4

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] How to limit buddypress registrations #30310

    Hello Tosin,

    Thank you for the acknowledgement. I am glad that I could help.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] How to limit buddypress registrations #30308

    Hello Tosin,

    Please make sure page with mentioned id is in published state and site user count is greater than 5000 only then this code will work.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] How to limit buddypress registrations #30303

    Hello Tosin,

    Please try the following code. It will redirect new users to page with id ‘45565’

    
    add_action( 'bp_template_redirect', function () {
    
    	// If logged in nothing to do with it.
    	if ( is_user_logged_in() || ! bp_is_register_page() ) {
    		return;
    	}
    
    	$site_users = get_users( array( 'fields' => 'ID' ) );
    
    	$site_users_count = count( $site_users );
    
    	// If site user count is less than 5000 not need to redirect.
    	if ( 5000 > $site_users_count ) {
    		return;
    	}
    
    	// Check your conditions here. home_url to you page url.
    	bp_core_redirect( get_page_link( 45565 ) );
    } );
    
    

    Please let me know if it works or not. One more question, Are you working with multisite then there will be a slight change?

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] How to limit buddypress registrations #30294

    Hello Tosin,

    Thank you for posting. Try the following code.

    
    add_action( 'bp_template_redirect', function () {
    	if ( bp_is_register_page() ) {
                // Check your conditions here. home_url to you page url.
    		bp_core_redirect( home_url() );
    	}
    } );
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Remove bp_the_thread_delete_link #30292

    Hello Carsten,

    Yes, It sounds like a good fit to your needs.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Can you help me with the small snippet #30274

    Hello Kumar,

    Thank you for posting. Are you looking a way to hide delete activity button for blog posts activities? If yes, please let me know which template pack you are using in BuddyPress so that I can help.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: WordPress Admin Bar #30273

    Hello Steven,

    Thank you for posting. Just to hide the admin bar does need any specific plugin. You can hide it with the following code in your theme “functions.php”

    
    add_filter( 'show_admin_bar', function () {
    	return is_super_admin();
    } );
    
    

    It will only show admin bar to admin only.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Bernard,

    I have checked the feasibility for restricting user as per privacy setting in mention and BuddyBoss Platform messages and found it can be done. So, we are planning to have this functionality by this weekend or early next weekend.

    Thank you for the feature suggestion.

    Regards
    Ravi

    • This reply was modified 6 years, 5 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Remove bp_the_thread_delete_link #30263

    Hello Carsten,

    I have checked the code you have provided and nothing wrong with this code. How are you adding that delete link as that code is not present in above-mentioned code? Please let me know, Are you having any kind of code in “bp-custom.php” or theme “functions.php” file for adding that delete button.

    Regards
    Ravi