BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24257

    Also, I have moved the topic to BuddyPress sub forum.

  • Keymaster
    (BuddyDev Team)
    Posts: 24257

    Hi Ian,
    Welcome to the BuddyDev forums.

    The problem lies with the profile search plugin. I just had a cursory look at it but could not find any proper hook. Please ask Andrea to if there is any available hook or can she provide an action or filter to allow us generate custom output.

    As soon as she adds the hook, I can provide some custom code but I nead some hook from the bp profile search plugin.

  • Keymaster
    (BuddyDev Team)
    Posts: 24257

    Please do download and upgrade. It is available on the site now.
    I am looking forward to your feedback.

  • Keymaster
    (BuddyDev Team)
    Posts: 24257

    Hi Rojo,
    Thank you.

    I have updated both the plugins now. It fixes the typo and allows you to control where to redirect from the BuddyBlog settings.

    Please make sure o upgrade to BuddyBlog 1.1.3 and Simmple Front End Post 1.2.1.
    The redirect feature needs BP Simple Front End Post 1.2.1

    If you are looking for easy upgrade, you might want to install BuddyDev Dashboard, that allows automatic upgrade for our plugins.

    https://buddydev.com/support/forums/topic/now-you-can-get-automatic-upgrades-for-all-buddydev-plugins/

    Please do check and let me know if it works for you or not?

  • Keymaster
    (BuddyDev Team)
    Posts: 24257

    Hi Rojo,
    Thank you.
    I am glad that you figured out most 🙂

    For the typo and the redirect, I will update the plugin again today and post back then.

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
  • Keymaster
    (BuddyDev Team)
    Posts: 24257

    Hi Rojo,
    Welcome to the BuddyDev Forums.

    I am sorry that we could not get back to you over mail. Things have been a little bit hectic here as we are trying to improve the support experience.

    Now getting back to the topic, which version of BuddyBlog you are using? Is it version 1.1 or above? If yes, most of the things you want can be configured from Admin settings.

    Please visit Dashboard->settings and click on the ‘BuddyBlog’ menu. You will see the settings option there.

    1. Please check the settings for ‘Show single posts on user profile?’ make sure it is set to yes. That will make the posts to be linked on profile. They will be still visible on the blog archive post(on main site, I will get back on excluding in a minute.

    2. To exclude the posts from the main blog:- There are multiple ways to achieve it. I am not sure which will suit you the best, so I will list both the approach.

    2a) If possible, you can create a custom post type and select that as the BuddyBlog post type from the settings page. This will make sure that the custom post type is never visible on your main blog.

    2b) Second approach is to limit posts to 1 category and exclude that category from main blog.

    It will need some code

    
    add_action( 'bsfep_post_saved', 'buddydev_add_default_category_to_post' );
    function buddydev_add_default_category_to_post( $post_id ) {
    	
    	$post = get_post( $post_id );
    	
    	
    	if( ! $post )
    		return ;
    	if( $post->post_status == 'publish' ) {
    	
    		$term = 'alpha-beta';//change this to your category slug
    
    		wp_set_object_terms( $post->ID, $term, 'category');
    	}
    }
    
    

    Please change ‘alpha-beta’ to your category slug in the above. Make sure you have Enable taxonomy disabled in the settings. Now when the user will post, It will be assigned the given category.

    Excluding category

    
    function buddyblog_custom_exclude_category( $query ) {
    	//don't modify in admin list or on BuddyPress pages
    	if( is_admin() || is_buddypress() )
    		return ;
    	
        if ($query->is_main_query() ) {
            $query->set( 'cat', '-32' );//IMPORTANT: change 32 to your category id. Please make sure to keep the minus(-)
        }
    	
    }
    add_action( 'pre_get_posts', 'buddyblog_custom_exclude_category' );
    

    Make sure to change 32 to the user category id.

    I will prefer the first approach though as that is very straightforward

    3. Change slug ‘buddyblog’ from url

    
    define( 'BP_BUDDYBLOG_SLUG', 'some-slug-that-you-want');
    
    

    Put that code in the bp-custom.php( link: https://buddydev.com/docs/guides/guides/buddypress-guides/what-is-bp-custom-php/) and that should do it.

    Let me know if you need further assistance.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
    Brajesh Singh on in reply to: [Resolved] Dates in Testimonials are not localized #55

    Thank you for being a valuable member and a good friend Hans.
    Always happy to be at your service 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24257

    Hi Tim,
    No problem. At BuddyDev, we value your membership. For refunds, we have a no question policy. Your happiness is more important.
    All the best with your project and please do let us know in future if we can be of any help.

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
    Brajesh Singh on in reply to: [Resolved] Dates in Testimonials are not localized #50

    Hi Hans,
    I have put an update now.
    Can you please check version 1.0.6
    https://buddydev.com/plugins/bp-user-testimonials/

    Please note, there is a change in the name of plugin directory. It has been changed from ‘bp-testimonial’ to ‘bp-user-testimonials’ to allow us enable automatic upgrade for this plugin in future.

    While upgrading from version 1.0.5 to 1.0.6(It will need manual update), first delete the old plugin and then upload this one.

    Please do let me know if this works for you or not?

    Thank you
    Brajesh