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

    Hi Gavin,
    Thank you.

    Please use the following code.

    
    
    // Check access for user.
    add_action( 'bp_template_redirect', function () {
    
    	if ( ! is_user_logged_in() || is_super_admin() ) {
    		return;
    	}
    
    	// User has somemeber type?
    	if ( bp_get_member_type( bp_loggedin_user_id() ) ) {
    		return;
    	}
    
    	// redirect as user does not ahve any member type.
    	$redirect_to = site_url( '/' ); //change with where you want to redirect. Make sure it is outside buddypress.
    
    	if ( is_buddypress() ) {
    		// if we are in BuddyPress section, redirect.
    		bp_core_redirect( $redirect_to );
    	}
    } );
    
    

    It redirects user to site home page if they try to access any BuddyPress content.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi,
    Thank you for the suggestion. I will consider it in future.

    You can use code to add it for now. It will need 2 parts. 1 Adding tab and 2 handling ajax request for generating the output.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Add profiles fields in members directory #27548

    Hi,

    Thank you for the question.

    You are using a premium theme and I will suggest contacting the theme author for the same. Our Premium theme comes with this feature pre-built.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: I like this :) #27547

    haha, that is typical Bollywood for us 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Daniel,

    1. Would it be not more beneficial and simpler to just integrate the media upload content to the activity instead of only the information that new media was created?

    That should happen for the media uploads. Is it not showing the actual media with that activity?

    2. The problem is button being overridden by thrive nouveau. It is overwriting the background(which shows control image) and the border for the controls.

    We may need to override that. I am sharing css in a private reply as it contains your site url.

    3. Please use css to hide the history for now.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Gavin,
    Thank you for the topic.

    Yes, It is doable with a few lines of code.

    Can you please help me understand how do you perceive hiding BuddyPress? What features do we restrict fro the user?

    Please let me know the features we need to restrict(example:- do not allow access to profile) and I will assist.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: more words for read more #27533

    Hi Johan,
    Thank you for the suggestion.

    In case of BuddyPress, There is a filter to limit the length but it is by number of characters and not the words.

    I have added this option in the Community Builder Pro(Customize->BuddyPress->Activity). It will be available with next release(Friday/Saturday).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Visible Gallery Only Private Groups #27532

    Hi Javier,
    Thank you for confirming.

    Please use the gallery list shortcode.

    https://buddydev.com/mediapress/shortcodes/mediapress-gallery-listing-shortcodes/

    Regards
    Brajesh