Replies
- Brajesh Singh on April 12, 2019 at 6:22 pm in reply to: [Resolved] Assign additional Member Type per role but keep existing ones in separate field #22243
Thank you Philip.
That makes sense:)Have a nice weekend to you too.
Regards
Brajesh - Brajesh Singh on April 12, 2019 at 6:00 pm in reply to: [Resolved] BuddyPress Custom Background For User Profile – Background don't work #22242
Hi Michaël,
Thank you for reminding.I am sorry but I have forgotten the context. Can you please remind me again the issue with the profile background plugin? What was the issue with height? Please let me know and I will send an update.
Regards
Brajesh - Brajesh Singh on April 12, 2019 at 8:31 am in reply to: [Resolved] Plugin or snippet for limit the number Go #22235This reply has been marked as private.
Hi AJ,
Thank you for the topic.Which theme are you using? Please let me know and I may be able to assist further.
Regards
BrajeshHi Jessica,
Can you please give it a try and se eif it works?/** * Register widgets. */ function buddydev_custom_theme_register_widgets() { register_sidebar( array( 'name' => 'IGMR Before Container Area', 'id' => 'igmr_before_container_area', 'description' => __( 'Displays above container', 'text_domain' ), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>' ) ); } add_action( 'widgets_init', 'buddydev_custom_theme_register_widgets' ); function igmr_widget_area_above_container() { if ( is_active_sidebar( 'igmr_before_container_area' ) && is_singular( array( 'post', 'page' ) ) ) : ?> <div id="above-container" class="inner clearfix"> <section id="above-container-area"> <?php dynamic_sidebar( 'igmr_before_container_area' ); ?> </section> </div> <!-- #above-container --> <?php endif; } add_action( 'cb_before_container', 'igmr_widget_area_above_container' );In the previous code you shared, it seems that was a misplaced bracket ‘}’
Regards
Brajesh- This reply has been marked as private.
Hi Jessica,
Thank you for sharing.No, There is no special benefit. I personally try to avoid monolithic plugins with too many features and keep single feature focused plugins. That helps when I need to change a plugin for some reason.
There is no difference usability wise for WordPress.
PS:- If you are using Breadcrumb trails, we enhance it by adding support for BuddyPress.
Regards
BrajeshHi Artyom,
Thank you for using the plugin.Please use BuddyPress Notifications Widget. That will work for all your users as it does not need admin bar and it has the ability to let users clear notifications.
Regards
Brajesh- Brajesh Singh on April 12, 2019 at 6:12 am in reply to: [Resolved] BP Multi Network (need some advice, please.) #22226
Hi Rick,
Thank you for the kind words and confirming that the code works.Since role can be passed as the parameter in add_user_to_blog(), it is doable when the need comes.
I do not use the specific plugin for registration, so you can show my code to the author of the plugin and they can update it with the actual role from their form(It should be 1 line change).
I used subscriber as a safe bate, the right thing would have been to use get_option(‘default_role’) which picks the default role for current blog.
We do not need to worry about multiple roles, they should work as expected.
Regards
Brajesh - Brajesh Singh on April 12, 2019 at 6:07 am in reply to: [Resolved] Hide Members directory in Groups #22225
Hi Vivek,
Thank you.Please use this snippet in your bp-custom.php
/** * Hide Group members for everyone except Site Admin, Group admin and group mods. */ function buddydev_custom_disable_group_members() { if ( ! bp_is_group() ) { return; } $group_id = bp_get_current_group_id(); $user_id = get_current_user_id(); if ( is_super_admin() || groups_is_user_admin( $user_id, $group_id ) || groups_is_user_mod( $user_id, $group_id ) ) { return; } bp_core_remove_subnav_item( groups_get_current_group()->slug, 'members' ); } add_action( 'groups_setup_nav', 'buddydev_custom_disable_group_members' );Regards
Brajesh