Replies
Hi Carsten,
I am sorry, I do not see anything wrong with that.You are using the ‘bp_after_member_body’ which gets fired on all user pages. That’s why the button is visible.
I am not sure of your purpose but you should most probably use a different hook.
Regards
Brajesh- Brajesh Singh on March 29, 2020 at 8:49 pm in reply to: Moderated bbPress discussions and replies are still emailed out to users #28415
Hi Nabha,
Thank you.I had a look at these filters. They are fired when an activity is created. We can not take decision when activity is created as the flag for moderation does not exist then.
Once an activity is marked as reported, we need a filter that allows us to exclude items before they are sent via mail. This allows us to check if the activity is in moderation queue and help us take decision.
Please do let me know if you get some response from them.
Regards
Brajesh - Brajesh Singh on March 29, 2020 at 8:41 pm in reply to: [Resolved] Why are menu items pr default listed with dots? #28414
Hi Carsten,
You are welcome.Try right clicking and inspecting the element. There might be an empty list item.
Regards
Brajesh Hi Yuva,
I have sent a copy to your mail.Please do open a new topic if you need assistance with it.
Regards
Brajesh- Brajesh Singh on March 29, 2020 at 7:55 pm in reply to: [Resolved] Replace text on tabs with icons #28409
Hi Carsten,
Thank you for the question.Does your theme support icons for profile tab? I helped on that topic as their theme supported it and I only had to help him with specifying icon code.
Regards
Brajesh - Brajesh Singh on March 29, 2020 at 7:55 pm in reply to: [Resolved] Roles in register form according to option select #28408
Hi Jennifer,
Thank you for the question.Your best bet is to do it on ‘bp_core_activated_user’. Check for the xprofile field and user set_role() over the user object to set role.
Here is an example, Please feel free to customize according to your needs.
add_action( 'bp_core_activated_user', function ( $user_id ) { $user = get_user_by( 'id', $user_id ); $field_id = 20; // Numeric field id. // We need raw data not in displayable form, so I am not using xprofile_get_field_data $field_val = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, $user_id ) ); // example of setting role. if ( 'ans1' == $field_val ) { $user->set_role( 'subscriber' ); } }, 1 );Regards
Brajesh Hi Carsten,
Please share 2 screenshots to show me the issue. I will need more details to provide assistance.Regards
Brajesh- Brajesh Singh on March 29, 2020 at 7:54 pm in reply to: [Resolved] Why are menu items pr default listed with dots? #28406
Hi Carsten,
Thank you for the question.
It is happening because they are list items and by default list items are styled that way.
You can override that by specifying list-style-type:none; on a proper selector(css selector depends on how you have put the code).
Regards
Brajesh Hi Mike,
Thank you.We are doing well. I hope you and your family are safe.
Please replace your display name filter
function my_bp_displayed_user_fullname() { global $bp; return $bp->displayed_user->userdata->user_login; } add_filter( 'bp_displayed_user_fullname' , 'my_bp_displayed_user_fullname' );with this
function my_bp_displayed_user_fullname( $name ) { return bp_get_displayed_user_username(); } add_filter( 'bp_displayed_user_fullname', 'my_bp_displayed_user_fullname' );That will fix it.
Regards
BrajeshHi Yuva,
Thank you for the question.We have the plugin working with Google Cloud storage currently. We haven’t added aws storage support yet. Will be doing that soon.
Please do let me know if you will be interested in the google cloud storage, I will share a copy.
Regards
Brajesh