Replies
- Brajesh Singh on May 18, 2022 at 10:43 pm in reply to: [Resolved] blog page template as forum page. #45007
Thank you Victor.
- Brajesh Singh on May 18, 2022 at 10:27 pm in reply to: [Resolved] Who’s Online widget adjustment #45006
Hi,
The filter ‘widget_title’ is dependent on plugin offering widget(some plugins may not offer it).Depending on which widget you are filtering, the issue is either the plugin not using widget_title filter or the title being different(or the plugin offering the filter but escaping the title).
Regards
Brajesh - Brajesh Singh on May 18, 2022 at 6:47 pm in reply to: Filter and limit member types only in registration form #45004
Hi Andreas,
Welcome to BuddyDev support forums.
Thank you for the question.Please use the following code
add_filter( 'bp_xprofile_member_type_field_allowed_types', function( $member_types ) { if ( ! bp_is_register_page() ) { return $member_types; } // we are on signup page. // do something with member types(add/remove). return $member_types; });You can adapt it as you need.
Regards
Brajesh - Brajesh Singh on May 18, 2022 at 6:24 pm in reply to: [Resolved] Who’s Online widget adjustment #45003
Hi,
Thank you for the questions.1. You are doing it correctly.
2. Please make sure to put the following code at the beginning of your function
if ( ! is_user_logged_in() || empty( $args['type'] ) || $args['type'] !='online' ) { return $args; }That will make sure it does not affect your main loop.
Regards
Brajesh - Brajesh Singh on May 18, 2022 at 5:35 pm in reply to: [Resolved] “BuddyPress User Badges” Update for BuddyBoss 2 #45002
Hi Hussein,
Thank you for purchasing circles.1. The issue with badge is you are using a huge min size(150px for image). There are 2 possible ways.
a. Don’t set min width to a large number.
b. or You can use flex-flow:row wrap; to make sure the badge goes to next line if they don’t fit. The second option will work but does not look good. I will suggest limiting the min size on directory and I can provide the code for justifying the images to center. Please let me know if it works for you.2. For the circle button, we can not add the button to the bottom meta. BuddyBoss plugin has the bottom meta part hardcoded with 2 of their actions and they do not provide any hook to add new.
instead, Please add the following css to make the button a bit better(justifies center and limits the size)
#members-list.item-list li .bp-members-list-hook .circle-button { text-align:center; } #members-list.item-list li .bp-members-list-hook .circle-button a { display:inline-block !important; }Regards
Brajesh - Brajesh Singh on May 18, 2022 at 5:14 pm in reply to: [Resolved] How do I allow all users to create subfolders in all doc folders in BuddyBoss? #45001
Hi Torben,
Thank you for the question.Please contact BuddyBoss about this as they are in better position to assist you.
Currently, we provide limited support for BuddyBoss where the scope is limited to compatibility with our advertised plugins.Regards
Brajesh - Brajesh Singh on May 17, 2022 at 4:05 pm in reply to: [Resolved] How to remove action for BuddyPress Moderation Tools? #44994
Hi Nick,
Thank you for the reply.I will not recommend using the suggested stackexchange approach. It is a hack and you should avoid such hacks as they may break in future.
Regards
Brajesh - Brajesh Singh on May 17, 2022 at 4:03 pm in reply to: MediaPress MultiUpload then Activity only One Entry #44993
Hi Maurice,
The current implementation shows you the notice on your Gallery’s manage page(edit gallery where the uploaded media list is shown).Regards
Brajesh - Brajesh Singh on May 16, 2022 at 11:58 pm in reply to: [Resolved] How to remove action for BuddyPress Moderation Tools? #44990
Hi Nick,
We do not keep the instance or use singleton, so you won’t be able to unhook.That’s why we have added the option to disable it.
Here is the code that you might use
add_filter( 'bpmts_is_item_reportable', function ( $is_reportable, $item_type, $item_id ){ if( 'bp_activity' != $item_type ) { return $is_reportable; } // $item_id is activity id. // do something with it and set the $is_reportable to false to skip the item. return $is_reportable; }, 10, 4);If you update the $is_reportable to false for some activity type, It won’t be put in auto moderation.
There is a side effect though. It will mark that activity type non reportable and user’s won’t be able to report it.
A solution that I see is to use a similar filter for disabling auto moderation by type.We will be certainly adding it in next update. For the time being, Please use the above code(and adapat as you need).
Regards
Brajesh - Brajesh Singh on May 16, 2022 at 10:55 pm in reply to: [Resolved] BuddyPress Moderation Tools Bulk Actions #44988
Hi Nick,
Thank you for the question.1. Currently, the bulk action is not available for delete/restore. We used that space for filtering(hidden/non hidden content).
I do understand that we have overlooked this due to our bias towards the expected workflow(we assumed that all moderation reports will be assessed before taking action ).
We will be adding the bulk restore/delete button in the next update of this plugin.
Regards
Brajesh