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

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

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

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

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25312
    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

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

    In other words, I mean the screen the button links to, becomes unavailable for certain users. That’s why any linking pointing to these screen become broken.

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

    Hi Carsten,

    The problem is link needs to be accessible/available to the user. When you change tab’s visibility, the links become unavailable for certain users and that’s why the private message button gets broken.

  • Keymaster
    (BuddyDev Team)
    Posts: 25312

    Hi Andreas,
    Welcome to BuddyDev Forums.

    Here is the stepwise guide to help you.

    1. Changing label and position:- If 15 does not work, THere is a possibility that some plugin is using a lower value. Try using a lower value like 9 or so.

    2. For sub nav, Please use ‘my-friends’ as shown below.

    a. https://i.imgur.com/hlL4dqA.png

    b. https://i.imgur.com/unbqgke.png

    c. https://i.imgur.com/G3wgCnf.png

    d. https://i.imgur.com/7AoWjeL.png

    Please try it and let me know if it works or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25312
    Brajesh Singh on in reply to: [Resolved] BuddyBlog not selecting tags #17642

    Thank you.

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

    Hi Carsten,
    It is expected.

    BuddyPress Private message buttons are hard coded to http://example.com/members/messages/compose url. If you remove the ‘compose’ sub tab, that link breaks.

    A solution is to remove the private message button too if removing compose screen.

    Regards
    Brajesh