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

    Hi Chris,
    Thank you.

    I am glad it worked.

    Let us continue the discussion about profile field and search here

    https://buddydev.com/support/forums/topic/member-types-pro-conditional-fields-not-compatible-with-bp-search-profile/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336
    Brajesh Singh on in reply to: [Resolved] Profile Button Order #24094

    Hi Axel,
    Please put this in your bp-custom.php or your theme’s functions.php

    
    
    /**
     * Move friendship button to the end.
     */
    add_action( 'bp_nouveau_return_members_buttons', function ( &$buttons ) {
    
    	$button = isset( $buttons['member_friendship'] ) ? $buttons['member_friendship'] : '';
    	if ( empty( $button ) ) {
    		return $buttons;
    	}
    
    	unset( $buttons['member_friendship'] );
    	$buttons['member_friendship'] = $button;
    
    } );
    

    That should do it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi,
    No, The plugin does not support multiple grous currently.

  • Keymaster
    (BuddyDev Team)
    Posts: 25336
    Brajesh Singh on in reply to: [Resolved] Multi-Network/Xprofile Conflicts #24064

    Hi Zach,

    Welcome to BuddyDev forums.

    The issue is not caused by either of the plugins above.

    BuddyPress has a bug which manifests when multiblog/multi network mode is enabled(It was when I had checked last time). You may disable the xprofile custom field types and the error will appear.

    I will need to setup multi network and check for the error/solution again(I vaguely remember changing 1 line in xprofile admin).

    I will update you on Monday.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi,
    The plugin does not support icon out of the box.
    The reason is different BuddyPress themes use different approach for tab icons. Some use css(::before selector) some inject the markup.

    Since BuddyPress does not support icon nav, adding this will make it an issue for the theme’s support.

    That’s why we don’t have it.

    Which theme are you using? I might have simple suggestions to the icon working.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336
    Brajesh Singh on in reply to: [Resolved] BuddyCommerce with subscriptions #24061

    Hi,
    Welcome to BuddyDev.

    I am sorry, I am unable to re-produce your issue.

    here is what I see

    https://i.imgur.com/ezCiuWH.png

    https://i.imgur.com/EWTVwzi.png

    Is this not appearing for you?

    PS:- Did you add slug for the subscriptions tab?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Chris,
    Thank you.

    I am sorry, I thought it was about the use of legacy BuddyPress template pack.

    2. Redirect to profile on Login:- I have setup it. To see it, Please visit
    Dashboard->settings->BP Ajax registration
    Click on Login Tab.

    I have set
    “Action after successful login?” -> Redirect to Another page
    “After login, redirect to?” – [user.url]

    [user.url] and a few other predefined placeholders allow you to link to dynamic pages.

    1. You can move the fields from First Field group to another and they will go away from registration.
    Steps:-
    Please visit Dashboard->Users->profile Fields.
    At the top you will note “Base” which is primary profile field group(currently holding all fields).

    Tip:- Field groups allow you to organize your fields into multiple section.

    At the top, you will find “Add New Field Groups” Use that to create another field group.

    Once you are done with the Field Group creation, You can drag and drop the fields from first group to second. Please move the fields there.

    The fields will be available on edit profile but not on registration.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Colin,
    Welcome to BuddyDev.

    Can you please confirm if you see the “Profile Privacy” in adminbar account menu(under settings) or under your Profile->Settings tab.

    If not, then the plugin might not be enabled for users. Please visit plugin settings in dashboard and make sure to enable it.

    If you see the above links and on clicking page is not opened or content is not shown, the possible reason will be plugins.php template may be missing the bp_template_content hook.

    If possible, Please share the plugins.php code( you can use backtick(`) ) to share the code in forum.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Sure, Please give it a shot and let me know how it goes 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25336

    Hi Jared,
    Thank you for your patience.

    Here is the code that you can put in your bp-custom.php

    
    
    /**
     * When a post is published, create a new entry on the secondary blog.
     *
     * @param string  $new_status nes status.
     * @param string  $old_status old status.
     * @param WP_Post $post Post object.
     */
    function buddydev_propagate_post_to_other_blog( $new_status, $old_status, $post ) {
    
    	$primary_id          = 1; // change with yours main site where BuddyPress is active.
    	$publish_blog_id     = 2; // Change with the blog id where to publish.
    	$buddyblog_post_type = 'post'; // change with the post type.
    
    	$post_id = $post->ID;
    	if ( get_current_blog_id() != $primary_id ) {
    		return;
    	}
    
    	if ( $new_status == $old_status || $new_status !== 'publish' || $post->post_type != $buddyblog_post_type ) {
    		return;
    	}
    
    	// if we are here, switch blog and insert post.
    	switch_to_blog( $publish_blog_id );
    	$post = clone $post;
    	unset( $post->ID );
    	$id = wp_insert_post( get_object_vars( $post ) );
    	restore_current_blog();
    	// Keep a reference for future usage.
    	if ( $id && ! is_wp_error( $id ) ) {
    		update_post_meta( $post_id, '_mapped_post_id', $id );
    	}
    }
    
    add_action( 'transition_post_status', 'buddydev_propagate_post_to_other_blog', 10, 3 );
    
    

    Please change the primary id, publish blog id and post type as you need.

    When a post is published, It creates an entry on the secondary blog.

    Please do note that if a post is published then unpublished and then published again, It will create two entries.
    You can improve it to handle that(I have stored the mapped post id in meta). It is a basic example to show how it works.

    PS:- If you are using custom post type with BuddyBlog, That must be available on your secondary blog too.

    Hope that helps.

    Regards
    Brajesh