Replies
- Brajesh Singh on April 20, 2018 at 11:29 pm in reply to: [Resolved] BP Profile Tab Pro – Default Tab Error #14692
Thank you for the kind words Sujee.
I am looking forward to assist you and hope that the decision to switch will have a positive impact on your project.
Best Regards
Brajesh - Brajesh Singh on April 20, 2018 at 10:50 pm in reply to: Location of buddypress main nav – sub nav #14690
Hi Julia,
I have posted to your other topic. You should not modify the files where this function is declrade.Also, the last line of code should be do_action not so_shortcodes.
Regards
Brajesh - Brajesh Singh on April 20, 2018 at 10:48 pm in reply to: [Resolved] BP Profile Tab Pro – Default Tab Error #14689
Hi Sujee,
Your assumptions are correct. The best way to solve the issue is to use a custom post type and use the shortcode like[bp-user-last-post post_type='custom-post-type-name']That way, The user can publish the post and it won’t get affected.
Regards
Brajesh - Brajesh Singh on April 20, 2018 at 7:03 pm in reply to: Activities : no storage, erase all activities automatically every year #14687
Hi Herve,
My code was not for disabling filter, It was to filter out the activity list and exclude those types.Your code for hiding filter is incorrect.
You will need to use something like this
/** * Remove activity filters in all context. * * @param array $filters filters. * * @return array */ function buddydev_remove_activity_filters_from_dropdown( $filters ) { $hidden = array( 'friendship_accepted,friendship_created',// yup, use it as single key to hide Friendship. 'joined_group', 'new_blog_comment', ); foreach ( $hidden as $key ) { if( isset( $filters[$key] ) ) { unset( $filters[$key]); } } return $filters; } add_filter( 'bp_get_activity_show_filters_options', 'buddydev_remove_activity_filters_from_dropdown' );Add the keys to hidden and they will be filtered out.
PS:- I will be helping out with the other topic but need some time on that. Hopefully tomorrow I will be able to rethink on that issue and provide code.
Regards
Brajesh - Brajesh Singh on April 20, 2018 at 6:50 pm in reply to: [Resolved] Redirect admin URL profile and setting profile to 404 & dropdown profile tabs #14685
You are welcome.
- Brajesh Singh on April 20, 2018 at 6:50 pm in reply to: Notifications shows 1, but then when you click it, it ways no new visitors? #14684
Hi Joanne,
Thank you for purchasing the plugin.
Excluding admin role should not cause that issue.Are you using any plugin or code that hides users from lists?
Please let me know and I will be able to assist.
Thank you
Brajesh - Brajesh Singh on April 20, 2018 at 6:46 pm in reply to: [Resolved] BP Profile Tab Pro – Default Tab Error #14683
Hi Sujee,
Please use the following code
https://gist.github.com/sbrajesh/e932e6d8bbfd4a515e070f520ce40ef4and in the post content box, you can simply use
[bp-user-last-post]Regards
Brajesh Hi Julia,
I have fixed the layout.You may use the following code instead
bp_nav_menu();That will generate proper menu with sub menu.
Regards
Brajesh- Brajesh Singh on April 20, 2018 at 1:28 pm in reply to: Force redirect user to profile edit page if required profile fields are empty #14675
Hi Tosin,
You may want to keep an eye over this topichttps://buddydev.com/support/forums/topic/force-profile-data/
Reagrds
Brajesh - Brajesh Singh on April 20, 2018 at 1:26 pm in reply to: [Resolved] Redirect admin URL profile and setting profile to 404 & dropdown profile tabs #14674
For 1,3, Please use the following code
function buddydev_redirect_admin_url() { // part 1. redirect to user profile if accessing the home page. if ( is_user_logged_in() && is_front_page() ) { bp_core_redirect( bp_loggedin_user_domain(), 301 ); } if ( bp_is_user() && ! bp_is_my_profile() && user_can( bp_displayed_user_id(), 'manage_options' ) ) { bp_core_redirect( site_url( '/404/' ) ); } } add_action( 'bp_template_redirect', 'buddydev_redirect_admin_url' );Regards
Brajesh