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: 25406
    Brajesh Singh on in reply to: Make one page public on site #17668
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: [Resolved] Mediapress 1.5 #17666

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Hi Margrita,

    1.We won’t be adding any functionality to restrict user’s interaction on site. It is beyond the scope of MediaPress.

    But, with 1.5, It will be few lines of code that I will share with you if you needed to restrict the user.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: BP Force Profile Photo – error #17664

    Hi Margarita,
    Please let me know a few more things and I will post some code for the same.

    1. If the user is not allowed to interact on the site, what should they will be allowed to do?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Hi Atlantis,
    Thank you for using the plugin.

    I am sorry but there is no feasible solution for this case. I will explain the issue.

    1. You have set a member type to trigger role change
    2. You have also setup role to trigger member type change

    Now, when you add a user on a sub site with a specific role, you want the role to trigger the member type change(works) and then this member type change to trigger role change(does not work).

    It does not work as it will cause an infinite cycle role triggering membertype triggering role. To avoid this loop, we only allow either member type to role or role to member type in one transaction.

    Hope it clarifies.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Hi Max,
    Please use the updated file from here

    https://buddydev.com/downloads/coub-custom/versions/coub-custom-1-0-1.zip

    It allows both the embeddable url or the default view url.

    Please make sure to update field id and styelsheet url.

    Regards
    Brajesh

    PS:- It won’t work with auto update. You will need to delete old and upload new.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Hi Andi,
    I am sorry for the delayed reply.

    1. It seems to me there is another tab there which is using the position. Can you please tell me what is the “Berater Dashboard”?

    2. Sure, Please use ‘public’.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: Make one page public on site #17655

    Hi Chris,
    Here is the updated code. Add your page slug to the excluded pages and those pages will be excluded.

    
    
    /**
     * Make a WordPress site Private, works with/Without BuddyPress
     *
     * @author sbrajesh
     * @global string $pagenow
     *
     */
    function buddydev_private_site() {
    
    	//do not restrict logged in users
    	if ( is_user_logged_in() ) {
    		return ;
    	}
    	//first exclude the wp-login.php
    	//register
    	//activate
    	global $pagenow;
    
    	//if we are here, the user is not logged in, so let us check for exclusion
    	//we selectively exclude pages from the list
    
    	//are we on login page?
    	if ( $pagenow == 'wp-login.php' ) {
    		return ;
    	}
    
    	// let us exclude the home page.
    	if ( is_front_page() ) {
    		return ;
    	}
    
    	// Exclude some page.
    	$excluded_pages = array( 'terms' ); //add all your pages that you want to exclude.
    
    	if ( is_page( $excluded_pages ) ) {
    		return;
    	}
    
    	//handle Special case of BuddyPress registration/Login
    	if ( function_exists( 'is_buddypress' ) && is_buddypress() ) {
    
    		if ( bp_is_activation_page() || bp_is_register_page() ) {
    			return ;
    		}
    	}
    
    	$redirect_url = wp_login_url( site_url('/') );//get login url,
    
    	wp_safe_redirect( $redirect_url );
    	exit( 0 );
    }
    
    add_action( 'template_redirect', 'buddydev_private_site', 0 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Hi Max,
    Just came back to work again. Will have an update within 3-45 minutes.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: [Resolved] Tabs Creator Pro, 404 not found #17650

    No, It does not uses css. It removes them completely using

    
    
    bp_core_remove_nav_item();
    bp_core_remove_subnav_item()
        
    

    Regards
    Brajesh