Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] Left Sidebar, Right Sidebar #12713
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    Hi Chris,
    Sure, No problem.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    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-api

    to 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    Thank you 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: [Resolved] Stats Feed #12692

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    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