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: 25448
    Brajesh Singh on in reply to: BP Member Type Generator – Default Type #3989

    Hi Allison,
    Welcome to BuddyDev.
    Do you have any way to know which member type a user should be assigned at the time of registration. If yes, Then It can be easily done.

    Please let me know and I will post the code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448
    Brajesh Singh on in reply to: [Resolved] (BuddyDev) BP Poke #3985

    Hi Keith,
    Can you please let me know if it worked or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Hi Tyler,
    My apologies for the inconvenience. We have yet to find the issue or reproduce it. Can you please help me in understanding which browser caused it? That will help us to fix it in the future updates.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Hi Israel,
    Welcome back 🙂

    1. Yes, It is doable but we will need to update activity auto loader for that. I will update you tonight about it.

    Thank you. I am glad you liked the logo 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25448
    Brajesh Singh on in reply to: Buddypress menu #3982

    Hi MM,
    Welcome to Buddydev. There are multiple ways to do it.

    Let us go with the easy ones.

    1. You can use this function bp_get_loggedin_user_nav(). Please be warned that it has been marked as deprecated but it is not going anywhere soon.

    2. Or, you can create a custom menu in the Dashboard->Menus and use links from BuddyPress link group(If not visible, see the screen options to enable it) and then add that menu to the sidebar.

    Hope that helps.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448
    Brajesh Singh on in reply to: [Resolved] xprofile field group #3981

    Hi Saran,
    Welcome back.
    Yes, It is doable and here is an example. Please make sure to change the profile group ID in the code.

    
    
    //step 1: Add a new Tab
    function buddydev_setup_new_xprofile_tab() {
    
        $slug = bp_get_profile_slug();
    
        bp_core_new_subnav_item( array(
            'name'          => 'About',//label
            'slug'          => 'about',//slug
            'parent_slug'   => $slug,
            'position'      => 12,
            'parent_url'    => trailingslashit( bp_loggedin_user_domain() . $slug )  ,
            'screen_function' => 'buddydev_screen_profile_data'
        ));
    }
    
    add_action( 'bp_setup_nav', 'buddydev_setup_new_xprofile_tab' );
    
    //Step 2: Load the plugins template file
    function buddydev_screen_profile_data() {
        //filter loop
        add_filter( 'bp_after_has_profile_parse_args', 'buddydev_filter_args_for_profile_group' );
        //load loop
        add_action( 'bp_template_content', 'buddydev_show_profile_group_data');
    
        bp_core_load_template( 'members/single/plugins');
    }
    
    function buddydev_filter_args_for_profile_group( $args ) {
        ///CHANGE IT
        $args['profile_group_id']  = 2; //Your Profile Group ID Here
    
        return $args;
    }
    //Load the loop
    function buddydev_show_profile_group_data() {
    
        bp_get_template_part( 'members/single/profile/profile-loop' );
    }
    
    

    Please do let me know how it goes with you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Hi Chris,
    Welcome to BuddyDev forums.

    You can use the following code in your bp-custom.php to do that

    
    
    function buddydev_setup_dummy_nav() {
    
        $friends_slug = bp_get_friends_slug();
    
        bp_core_new_subnav_item( array(
            'name'          => 'Invite',
            'slug'          => 'do-invite',
            'parent_slug'   => $friends_slug,
            'parent_url'    => trailingslashit( bp_loggedin_user_domain() . $friends_slug )  ,
            'link'          => get_permalink( buddypress()->pages->members->id ), //where the Link should pint to for this sub nav?
            'screen_function' => function () {}
        ));
    }
    
    add_action( 'bp_setup_nav', 'buddydev_setup_dummy_nav' );
    
    

    Hope it helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Hi Javier,
    Thank you for the details.
    1. yes, It will be extendable in future.

    2. You can use the hook ‘bp_before_activate_content’ or ‘bp_before_activate_content’ to add extra content/terms

    I or Ravi will work on this on the weekend and provide you the code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Thank you for the links. The links are correct. Please contact the theme author and let them know the issue. They should be able to fix it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25448

    Hi Javier,
    Thank you for posting and I am sorry i could not follow up on the mail due to some personal things.

    A few things to note:-
    1. User are sitewide and they will appear in the members directory
    2. A group admin will not be able to delete/edit user

    Questons:-
    1. Do you want the users to manually activate their account or automatically set to be active ?

    If these two things are ok, @ravisharma or I will assist you with it.

    Thank you
    Brajesh