Replies
- Brajesh Singh on January 6, 2018 at 9:30 am in reply to: [Resolved] Left Sidebar, Right Sidebar #12713This reply has been marked as private.
- Brajesh Singh on January 6, 2018 at 1:54 am in reply to: [Resolved] Adding a gallery automatically on post creation #12711
Hi George,
I am sorry, I could not post the code earlier. Will do today(in next couple of housr when I get to work on my system again).Congratulations. Learning is fun and I am sure you are enjoying it 🙂
Will love to see you extend MediaPress and will be ready to assist all the time 🙂
Best regards
Brajesh - Brajesh Singh on January 6, 2018 at 1:52 am in reply to: [Resolved] MediaPress Gallery Tab in Private Groups #12710
Hi Graham,
Sorry for the delayed reply.I fixed it in the morning.
https://github.com/buddydev/mediapress/commit/afa88ebac51c9019eb31e9c70fb81b2f33d32e5c
I have pushed a release on WordPress.org and the fix is available in 1.3.3
https://wordpress.org/plugins/mediapress/Thank you
Brajesh - 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