Replies
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
BrajeshHi 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- Brajesh Singh on May 25, 2016 at 12:00 pm in reply to: [Resolved] Buddypress: Add a subnav item to members Profile – Friends #3980
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 - Brajesh Singh on May 25, 2016 at 11:44 am in reply to: [Resolved] Allow Group Administrators to Register Users #3979
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 - Brajesh Singh on May 23, 2016 at 12:50 pm in reply to: BuddyPress Activity Comment Notifier NOT WORKING PROPERLY #3966
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.
- Brajesh Singh on May 23, 2016 at 10:42 am in reply to: [Resolved] Allow Group Administrators to Register Users #3963
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 userQuestons:-
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 - Brajesh Singh on May 19, 2016 at 5:44 pm in reply to: BuddyPress Activity Comment Notifier NOT WORKING PROPERLY #3957
Hi Luca,
Thank you for the details. I mean the url. It is definitely a theme issue if you are on the update. I will need to check the theme. - Brajesh Singh on May 19, 2016 at 5:41 pm in reply to: Suggestions "BuddyPress Notify Post Author on Blog Comment" and error notificat #3956
Hi Jonas,
Deleting notification was my idea. I will update to mark as read and will post back.About the custom development, Do you have time to allow us to work on it after the coming Monday?
Thank you
Brajesh Hi Keith,
Can you please post me a screenshot of the page?It should say that you poked the user.
- Brajesh Singh on May 18, 2016 at 2:31 pm in reply to: Suggestions "BuddyPress Notify Post Author on Blog Comment" and error notificat #3923
Hi Jonas,
1. Did you download the updates from github?We tested it again and It is working.
Can you please tell us how are you testing it?Thank you
Brajesh