Replies
- Brajesh Singh on March 17, 2018 at 4:39 pm in reply to: images not uploading. on activity stream #13911
Hi Peter,
I tested and It worked for me. It seems the account has admin capabilities.I will suggest 2 things:-
1. Can you please disable RT Media for testing
2. Can you provide me a simple user account since the admin account is not showing me any issue.Regards
Brajesh - Brajesh Singh on March 17, 2018 at 12:03 am in reply to: Can not upload images with Mediapress at BP activity page #13901
Hi Alex,
Can you please upgrade to 1.3.4 and see if it works or not? I have added support to recrate the wall gallery even if it is deleted.Regards
Brajesh - Brajesh Singh on March 17, 2018 at 12:01 am in reply to: No option to save profile photo, cropping doesn't work either. #13898
Hi Audiomonk ,
Are you using a custom theme? It seems like a theme issue to me. - Brajesh Singh on March 16, 2018 at 11:54 pm in reply to: [Resolved] howto define member type url slugs without default "/members/" #13896
You are welcome!
- This reply has been marked as private.
- Brajesh Singh on March 16, 2018 at 11:49 pm in reply to: [Resolved] How to remove buddypress user from all groups #13894
Hi MWale,
In your case, the best way will be to trigger removal when the membership is deactivated
Most probably the following code should work.
function mwale_remove_from_group_on_membership_deactivate( $event, $subscription ) { $member = $subscription->get_member(); $user = $member->get_user(); if ( ! $user || is_a( $user, 'WP_User' ) ) { return; } groups_remove_data_for_user( $user->ID ); } add_action( 'ms_model_event_deactivated', 'mwale_remove_from_group_on_membership_deactivate', 10, 2 );I don’t use the membership2 plugin, so I might have used incorrect api in the following
$member = $subscription->get_member(); $user = $member->get_user();If you can check with their support, that will be nice.
Try the above code and try cancelling a user’s membership. Does that work?
Best Regards
Brajesh - Brajesh Singh on March 16, 2018 at 11:27 pm in reply to: [Resolved] automatic change of type with Member Types Pro #13892
Hi Herve,
Please comment this line
https://gist.github.com/sbrajesh/238153f70f770f957fd1c4b2ba60be77#file-profile-completion-buddypress-php-L93That will do it for future.
- Brajesh Singh on March 16, 2018 at 11:25 pm in reply to: [Resolved] howto define member type url slugs without default "/members/" #13891
Hi Leland,
Thank you for posting.I am sorry but that will be almost rewriting the url parser for BuddyPress.
In BuddyPress, the profile url structure is not very flexible. It will need a lot of work which does not seem worth the outcome to me.
- Brajesh Singh on March 16, 2018 at 11:22 pm in reply to: [Resolved] load newest following activity auto refresh… #13889
Thank you for the kind words Giuly.
Have a nice weekend.Best Regards
Brajesh - This reply has been marked as private.