Replies
- Brajesh Singh on January 6, 2018 at 1:52 am in reply to: [Resolved] Buddypress – How to Hide / Restrict Primary Name field? #12709
Hi Ekiz,
Please put this code in your bp-custom.php/** * Don't allow changing full name on BuddyPress Edit profile. * * Pre-process $_POST and overwrite the full name field data to avoid update by users. */ function buddydev_overwrite_name_update() { if ( empty( $_POST['field_ids'] ) || is_super_admin() ) { //allow super admins. return; } $field_id = bp_xprofile_fullname_field_id(); $field = 'field_' . $field_id; if ( empty( $_POST[ $field ] ) ) { return; //not set. } // Check the field group exists. if ( ! bp_is_action_variable( 'group' ) || ! xprofile_get_field_group( bp_action_variable( 1 ) ) ) { return; } // overwrite with raw value. // avoiding displayed_user_name and get_field_data as they provide extra filtering. $_POST[ $field ] = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, bp_displayed_user_id() ) ); } add_action( 'bp_screens', 'buddydev_overwrite_name_update', 2 );That will do it for you.
You can hide the field using css. User edit’s won’t have any effect.
Regards
Brajesh - Brajesh Singh on January 4, 2018 at 12:17 pm in reply to: Buddypress User Registration – include mailchimp group signup? #12700
Hi Chris,
Sure, No problem.Regards
Brajesh - Brajesh Singh on January 4, 2018 at 11:28 am in reply to: Buddypress User Registration – include mailchimp group signup? #12698
Hi Chris,
You are welcome.You don’t need s2 member for the same. We can simply use a simple/lightweight PHP Mailchimp API Wrapper like this
https://github.com/drewm/mailchimp-apito achieve the same.
You may hire our team from here
https://buddydev.com/hire-us/If you want to hardcode the mailchimp group ids, It should take 1-2 hours.
If you want to automate the whole process(visually selecting mailchimp group id on group screen), It may take from 3-5 hours(or less).
The joining action is same for the registration/later. Another question will be will you like to sync the BuddyPress groups to Mail Chimp group association(Say when a user leaves a BuddyPress group, should his/her mailchimp groups be updated to reflect the change).
Regards
Brajesh - Brajesh Singh on January 4, 2018 at 10:51 am in reply to: [Resolved] Displaying zip files in documents area giving google error #12694
Thank you 🙂
- Brajesh Singh on January 4, 2018 at 10:51 am in reply to: Buddypress User Registration – include mailchimp group signup? #12693
Hi Chris,
Welcome to BuddyDev.As I see your problem can be divided into following steps:-
1. You save the mailchim list id somewhere(most probably you have already done it)
2. Associate a Mail Chimp group with BuddyPress Group(You will need Mail Chimp group id not name)
3. When a user is added to a group, use the mailchm API to subscribe the user to the list and specify the groups as the interest.Question:-
Do you only want to add to the list/update the mail chimp group when your members join your site for the first time or the always want to update it when a user joins a group?In my opinion, It is more suitable for custom coding and if you are familiar with coding, you can easily accomplish it.
I haven’t seen a general purpose plugin for the same yet.
Hope that helps.
Regards
Brajesh Hi Shelley,
This is beyond the scope of a theme.Most probably it can be accomplished by something like this
https://wordpress.org/plugins/buddypress-community-stats/
At the moment, the above plugin has not been updated for quiet sometime and I am not sure if there exists any alternative.
Regards
Brajesh- Brajesh Singh on January 3, 2018 at 9:54 am in reply to: [Resolved] MediaPress Gallery Tab in Private Groups #12685
Hi Graham,
Please allow me to look at this and update today.The redirection is done by BuddyPress due to the tab privacy. I will make sure that it is not visible too.
Regards
Brajesh Thank you for the prompt response Kevin.
I am glad it is working now.Marking it as resolved.
Regards
Brajesh- Brajesh Singh on January 3, 2018 at 9:37 am in reply to: [Resolved] BP Featured Members Avatar Size #12682
Hi Nick,
Thank you. That makes sense.
Please compare your overridden template with the new one and update. we had to update the templates to pass the avatar size.Regards
Brajesh Hi Kevin,
Please upgrade to 1.0.2
https://buddydev.com/plugins/buddypress-user-profile-tabs-creator-pro/It should work in all cases with mutlsite now.
Please check and let me know.
Regards
Brajesh