Replies
- Brajesh Singh on January 22, 2018 at 10:47 am in reply to: [Resolved] BuddyPress Notify Post Author on Blog Comment issue #13048
Hi Julia,
I am sorry I am not able to help much with the WooCommerce and woodiscuz. I don’t use woodiscuz and don’t have much idea about it.I had a look at the notify post author plugin
My previous assumption was wrong. It will work with any post type having normal commenting workflow. Please check with woodiscuz and see if they are using WordPress API for adding e.g using wp_new_comment() or doing it directoy.
Thank you
Brajesh - Brajesh Singh on January 22, 2018 at 10:38 am in reply to: [Resolved] User Profile Tabs Creator Pro for groups?? #13047
Hi Sam,
Welcome to BuddyDev forums.It is already in works. we will have it by the end of the month.
Thank you
Brajesh - Brajesh Singh on January 22, 2018 at 10:28 am in reply to: [Resolved] MediaPress Lightbox 50/50 success/failure #13046
Hi Richard,
I am sorry to hear about this.This should not happen randomly.
You don’t need to ask users for providing the details, you can use a tool like
https://www.smartlook.comto record user session and view if the error is happening and how are they able to create it. Once we get the idea, It can be easily fixed.
Thank you
Brajesh Hi Mark ,
It is doable.1. We need to add a filter to strip the @ from the URI while parsing.
2. We will need to make sure that the canonical redirect does not redirect to old urls3. We will need to filter the functions like bp_loggedin_user_domain() and other such functions to use the new url.
This is how it needs to be handled in current BP.
I won’t be able to test it with code today and tomorrow due to my schedule(This code needs attention), but I can help on Tuesday if you want.
Thank you
Brajesh- Brajesh Singh on January 21, 2018 at 3:02 am in reply to: [Resolved] Change order of visibility options. #13034
No problem. Sometimes, overriding is only option. For example, the above code will have issues(If any plugin adds new visibility level, they will be hidden).
So, Please keep that in perspective while adding new visibility level.
Regards
Brajesh - Brajesh Singh on January 21, 2018 at 2:51 am in reply to: [Resolved] Change order of visibility options. #13031
Hi Mark,
Here is how it looks to mehttps://i.imgur.com/mnQbNDk.png
Are you seeing a different order?
If yes, most probably another plugin is updating the order too.
A solution might be to change the priority of the function that we are using to reorder.
For example
add_action( 'bp_xprofile_setup_globals', 'buddydev_update_profile_field_privacy_options' );Can be changed to this
add_action( 'bp_xprofile_setup_globals', 'buddydev_update_profile_field_privacy_options', 1001 );and should most probably work.
- Brajesh Singh on January 21, 2018 at 2:24 am in reply to: [Resolved] Mediapress new optin request – Hide Empty Galleries #13029
Hi George,
We can do it by using pre_get_posts filter in the admin and looking for _mpp_media_count meta on the galleries.I will post this code later today with the other thread(I am sorry I missed to post a solution there).
Thank you
Brajesh - Brajesh Singh on January 21, 2018 at 2:21 am in reply to: Error in Community Builder when using BP Profile Search #13028
Hi Keith,
Which version of Profile Search plugin are you using? It seems they have removed the function.We have the customized template and that’s why you are seeing it(Most probably Andrea has removed the function).
I am going to test with the current version of Profile search and push an update later today for the Community Builder Theme.
Thank you
Brajesh Hi Chris,
Thank you for posting.I had a look and see that the strings are not translatable.
I am letting my team know about this and we will post an update by Tuesday/Wednesday that will allow you to use translation files for the same.
Thank you
Brajesh- Brajesh Singh on January 21, 2018 at 2:13 am in reply to: [Resolved] Change order of visibility options. #13025
Hi Mark,
Thank you for asking.Here is the code that you can put in your bp-custom.php to change the order
/** * Update profile visibility option for BuddyPress. */ function buddydev_update_profile_field_privacy_options() { $levels = buddypress()->profile->visibility_levels; // and now we will override it's order. buddypress()->profile->visibility_levels = array( 'public' => $levels['public'], 'loggedin' => $levels['loggedin'], 'friends' => $levels['friends'], 'adminsonly' => $levels['adminsonly'], ); } add_action( 'bp_xprofile_setup_globals', 'buddydev_update_profile_field_privacy_options' );I am just reusing BuddyPress’s default values in the above code and reordering them.
I am not sure if the follower option is supported by BuddyPress. To add that to profile visibility level, you will need to add a new visibility level and a handler for it.
I wrote a post a few years about the same here
https://buddydev.com/buddypress/extending-buddypress-profile-field-visibility/Hope that helps.
Regards
Brajesh