Replies
Hi BD,
My apologies for the delay.Please give us till 5th. The person who is tasked with setting up install on Linode is on leave and that has complicated the things. he is supposed to be back on 4th. Please bear with us for 2 more days.
Thank you
Brajesh- Brajesh Singh on March 3, 2017 at 2:52 am in reply to: Feature: Featured members in different categories #7551
Hi Waldemar,
I am sorry. As I explained in a previous reply, bp_has_members() doess support roles. We I skipped on roles and only supported the member types out of the box.You can still do it for roles using BP_User_Query but you will have to write your own loops. If we did it in the plugin, we will loose one of the views(Theme default), so we had to skip on that.
Hope that clarifies. If you want, I can post here an example of the loop using one of the roles.
Thank you
Brajesh - Brajesh Singh on March 3, 2017 at 2:39 am in reply to: Recent Media Widget – Multiple Statuses #7550
Thank you. I am hoping that it all goes well 🙂
- 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