Replies
- Brajesh Singh on October 24, 2024 at 12:03 am in reply to: [Resolved] Hiding Users on BuddyPress based site blog articles? #53384
Hi Kim,
Thank you.
I am glad you have found a solution.Regards
Brajesh - Brajesh Singh on October 24, 2024 at 12:02 am in reply to: [Resolved] Critical error when I Customize Community Pro Theme #53383
Hi Paul,
I am sorry for the issue.1. Are you using the latest version of community Builder pro?
2. Are you using BP classic plugin? Is it active? If not, Please activate this.
https://wordpress.org/plugins/bp-classic/Please let me know if that makes it work or not?
Regards
Brajesh - Brajesh Singh on October 23, 2024 at 10:18 am in reply to: [Resolved] Mediapress not restricting upload storage quota, displayed quota is wrong #53376
Hi Stephanie ,
Thank you for the assistance. I am currently testing it and I will have an update by the day end today.regards
Brajesh - Brajesh Singh on October 23, 2024 at 10:16 am in reply to: BuddyBlog Pro Problem – Images Not Uploading. #53375This reply has been marked as private.
Hi,
Welcome to BuddydDev support forums.I am sorry, that code will not work with BuddyBoss. They have additional customization on buttons. It is very much intertwined with their experience.
I will suggest reaching out to BuddyBoss support for the same to see if they can assist.
Regards
BrajeshHi Katrin,
I am sorry. You are right about the issue it caused.At the moment, BuddyPress does not provide the ability to remove the link. There is a filter
bp_activity_permalink
but if I return empty , It will leave an orphan anchor element in the activity.The other solution is to remove the above code and inject a css class using the following code
add_filter( 'bp_get_activity_css_class', function ( $class ) { $activity_id = bp_get_activity_id(); if ( ! $activity_id ) { return $class; } if ( function_exists( 'bp_is_anonymous_activity' ) && bp_is_anonymous_activity( $activity_id ) ) { $class = $class . ' is-anonymous-activity'; } return $class; } );
Then we can add the folloowing css in custom styles to hide the link.
.is-anonymous-activity .activity-header .activity-time-since{ display:none !important;}
Regards
Brajesh- Brajesh Singh on October 23, 2024 at 9:31 am in reply to: How to add a filter to bp_core_current_time() function and set gmt to OFF #53372
Hi Kevin,
Welcome to BuddyDev.You need to update your code for filtering.
There is a problem with this.add_filter('bp_core_current_time','set_gmt'); function set_gmt ($type,$gmt) { return current_time($type='mysql',$gmt=true); }
It should be
add_filter('bp_core_current_time','set_gmt'); function set_gmt ($time) { return current_time('mysql', false ); }
and even better(prefixing function to avoid conflict)
add_filter('bp_core_current_time','kevin_set_current_time_local_tz'); function kevin_set_current_time_local_tz ($time) { return current_time('mysql',false); }
Please give it a try.
Regards
Brajesh - Brajesh Singh on October 23, 2024 at 9:23 am in reply to: Where do I updated the js code for Select2 in BuddyPress Xprofile Custom Field #53371
Hi,
Welcome to BuddyDev support forums.I am sorry, I do not understand your question. You do not need to update js code for the select2 js. You can select and enable select2 from the right side box of the profile field creation/edit page as shown below.
https://i.ibb.co/db1xz2p/Selection-358.png
Please help me understand the issue a little better if I am missing something.
Thank you
Brajesh Hi Katrine,
Thank you for trying MediaPress.The problem with upload is it needs to be associated with a user. Irrespective of the plugin, the uploads belong to some person and the current implementation of the plugins(RT Media or MediaPress) does not allow showing it without that user references.
This is going to be huge issue with user experience to enable/disable anonymous activity for media(as it is currently implemented). I will need a few days before sharing the status about achieving it.
Regards
Brajesh- Brajesh Singh on October 23, 2024 at 9:16 am in reply to: [Resolved] Hiding Users on BuddyPress based site blog articles? #53369
Hi Kim,
Thank you for the question.Please link me to the post and also provide the name used for the member type(It should be in lowercase, unique identifier of the member type).
I will be glad to assist further.
Regards
Brajehs