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: 25275
    Brajesh Singh on in reply to: Plugin Request #8033

    Thank you Carl 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    You are welcome Thank you for confirming Dandy 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    Hi George,
    Thank you for asking. It is a very good question.

    yes, It is easily doable.

    here is the code that you can use to display a different page on home page for logged in user

    
    
    /**
     * When a user is logged in, tell WordPress to use 'page' on front page of the site
     * @param string $value
     *
     * @return string
     */
    function buddydev_set_page_as_front_for_loggedin_user( $value ) {
    	if ( is_user_logged_in() ) {
    		$value = 'page';//page is set as front page
    	}
    
    	return $value;
    }
    add_filter( 'pre_option_show_on_front', 'buddydev_set_page_as_front_for_loggedin_user' );
    
    /**
     * For logged in users, set our static page to act as home page
     *
     * @param $value
     *
     * @return int
     */
    function buddydev_set_context_based_page_on_front( $value ) {
    
    	if( ! is_user_logged_in() ) {
    		return $value;
    	}
    
    	//for logged in user, use page id 9
    	return 5;//change with your own page id.
    }
    add_filter( 'pre_option_page_on_front', 'buddydev_set_context_based_page_on_front' );
    
    

    You can change the page_id with your own id.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: The stealth mode is only active for one Admin #8030

    Hi,
    You can login as the other user( You can use https://wordpress.org/plugins/user-switching/ for switching user) and set it from their profile settings screen.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: Embedding Media in MediaPress #7978

    Hi Xochi,
    I am sorry, it is not yet possible. We will add it this quarter for sure.

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: Displaying title and user on shortcode pages #7977

    Hi Xochi,
    I am not sure of the issue. I am going to ask @ravisharma to take a fresh look at this and see if he can help here.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: [Resolved] Bp branded login and activation links #7976

    Hi Daniele,
    Thank you for posting.

    You are right, It seems we did not consider the activation as we only considered BuddyPress registration.

    We can add support for custom account activation page or we can let wp-login.php handle it.
    What will be more useful for you ? Please let me know and we can update the plugin.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: sort galleries? #7975

    Hi Clay,
    Thank you for posting.

    We support “order” and “orderbyy” options in teh gallery list shortcode. By default, it is sorted by date in descending order.

    You can use the following options in the shortcode
    [mpp-list-gallery order =’DESC’ orderby = ‘date’]

    All the values for order/orderby supported in WP_Query are supported in the shortcode.

    https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: [Resolved] Conditional Profile Fields #7964

    Thank you Denis,
    I and my team will be a bit off tomorrow. Please allow me to post a solution on Monday.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: Problem with upload images #7963

    You are welcome. Please do let me know if using the plugin worked for you or not?

    I can provide code to avoid any image generation by Community Builder but that may not be the best solution.