Replies
- Brajesh Singh on March 3, 2017 at 2:34 am in reply to: [Resolved] BuddyPress Profile Visibility Manager- Hidden profile shows in navigation #7549
Hi Cathy,
The last activity time on the directory was happening since BuddyPress introduced live timestamp.To fix it, I have dequeued the live timestamp js on the members directory. also, I have fixed the redirect to redirect to current page(or home page if the url was directly accessed).
We already add the notice of the access redirection.
It will be visible if your theme has this line
<?php do_action( 'template_notices' ); ?>That code is used for inserting the BuddyPress notices on pages.
Please upgrade to 1.4.0 and It all should work.
Thank you
Brajesh Hi Kristin,
Thank you.That is because the BP portfolio plugin has a lot of messy code.
Here is the code from the plugin that is causing the issue
/** * Set upload file type * * @param $mime_types * @return array */ function bpcp_myme_types($mime_types){ //Creating a new array will reset the allowed filetypes $mime_types = array( 'jpg|jpeg|jpe' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp', 'tif|tiff' => 'image/tiff', 'ico' => 'image/x-icon', ); return $mime_types; } add_filter('upload_mimes', 'bpcp_myme_types', 1, 1);It simply resets all the allowed mime types. This kind of code is bound to thousand problems in future.
Please report it to them and they should be able to fix.
Regards
Brajesh- Brajesh Singh on February 28, 2017 at 9:21 pm in reply to: Feature: Featured members in different categories #7536
Hi Waldemar,
It is only visible if you have some member types registered. Do you have any member type registered on your site?
Thank you
Brajesh - Brajesh Singh on February 28, 2017 at 9:20 pm in reply to: Recent Media Widget – Multiple Statuses #7535
Hi Camden,
Welcome to BuddyDev.
Though you can extend the widget and in the MPP_Media_Query pass an array of status, Please do note that the friends status is relative to the owner of the media.
The visibility of a group of media having status private, public, friendsonly will not result in what you might be thinking.If your goal is to list all media, the simple strategy that will work best is just not passing status to the MPP_media_Query.
Thank you
Brajesh Hi Kristin,
Are you on WordPress 4.7.xWordPress 4.7.x has an issue with non image media files. It will be fixed in WordPress 4.7.3
Till then, Please try using
https://wordpress.org/plugins/disable-real-mime-check/That should make it work.
Thank you
Brajesh- Brajesh Singh on February 28, 2017 at 9:12 pm in reply to: Restrict privacy settings by media type #7533
Hi Kristin,
At the time of Gallery creation, the type of gallery is unknown, so we can not limit the privacy type dropdown there.It is feasible to conditionally set the status but that will make a bad UI here. We only allow filtering by Component(member/sitewide/groups) since it is known which component the gallery will be associated to.
- Brajesh Singh on February 28, 2017 at 9:07 pm in reply to: [Resolved] BuddyPress Profile Visibility Manager- Hidden profile shows in navigation #7532
Hi Cathy,
Please give the following code try one more timefunction buddydev_exclude_users_in_bp_user_query( $query ) { if ( ! function_exists( 'bp_profile_visibility_manager' ) ) { return; } $excluded = bp_profile_visibility_manager()->get_users( 'bp_profile_visibility', 'self' ); //should we exclude friends only profile too? $excluded = array_merge( $excluded, bp_profile_visibility_manager()->get_users( 'bp_profile_visibility', 'friends' ) ); $pre_excluded = empty( $query->query_vars['exclude'] ) ? array() : wp_parse_id_list( $query->query_vars['exclude'] ); if ( ! empty( $pre_excluded ) ) { $excluded = array_merge( $excluded, $pre_excluded ); } if ( ! empty( $excluded ) ) { $query->query_vars['exclude'] = $excluded; } } add_action( 'bp_pre_user_query_construct', 'buddydev_exclude_users_in_bp_user_query' , 100);All I have changed here is the priority and the checkl if there is something to exclude.
Even the first code worked for me. When you set a profile as Only me(private) It is not visible in part of the previous/next navigation.
It is possible that some other is overriding the exclude too, so changing the priority might work.
Thank you
Brajesh - Brajesh Singh on February 26, 2017 at 8:52 pm in reply to: [Resolved] BuddyPress Profile Visibility Manager- Hidden profile shows in navigation #7520
Hi Cathy,
Apologies for the delayed reply.I am going to test it with the theme today and will report back with updated code.
Thank you
Brajesh - Brajesh Singh on February 26, 2017 at 8:51 pm in reply to: [Resolved] BuddyPress Limit Group membership Per User Issue #7518
You are welcome. Thank you for marking it resolved.
- Brajesh Singh on February 26, 2017 at 8:50 pm in reply to: [Resolved] Buddypress Branded Login #7516
Thank you.
I am glad it is working for now. we will be looking at it again and update the docs accordingly.Regards
Brajesh