Replies
- Brajesh Singh on October 24, 2024 at 12:31 am in reply to: [Resolved] buddypress gallery slug not working #53388
Hi Brent,
Thank you for using MediaPress.
It seems to be a bug in BuddyPress.Please install BP classic.
https://wordpress.org/plugins/bp-classic/and activate it. Visit Dashboard->Settings->BuddyPress->pages and save it.
After that, the gallery directory should start working.
Please let me know if that works or not?
Regards
Brajesh - Brajesh Singh on October 24, 2024 at 12:27 am in reply to: Mediapress not restricting upload storage quota, displayed quota is wrong #53387
Hi Stephanie,
Thank you for the patience.I tested it today and I do see one issue. I will explain and will proceed based on your feedback.
1. The restriction is working but there is a minor bug. If you set the upload quota to 2MB, and there is available space for say .8Mb but media of more than .8Mb is tried, It will go through.
The reason is we only calculate what has been uploaded and not what is being uploaded.That is causing the last file (which may be larger) to go through and we need to fix this.
I was not able to find any issue. Please let me know if this is the right issue and I will update the plugin.
Regards
Brajesh - This reply has been marked as private.
- 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: 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: 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