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: 25348

    Hi Daniel,
    Please have a look at the BuddyPress profile completion plugin
    https://wordpress.org/plugins/buddypress-profile-completion/

    It may help.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Woocommerce price variation by member type #27044

    Hi Tosin,
    Thank you for the question.

    You can easily solve it using our Member Types Pro plugin.

    There exists plugins for Role based pricing. Using our member types pro, you can map member types to roles and use the existing plugins to resolve your issue.

    I do not think we need a plugin for member type based pricing as the role based pricing will serve the purpose.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Buddy Circles – Everyone in Circle #27042

    Hi Christian,
    Welcome to BuddyDev forums.

    Is there any plugin you are using which modifies the members loop or members list in some way?

    Please let me know I will assist.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi,
    It is not a good idea to change it directly in the database. You should most probably consider moving host.

    still, you can the following sql inside phpmyadmin(assuming you have selected your current database)

    
    
    SELECT * FROM wp_options WHERE option_name LIKE 'comment_%'
    
    

    Please change ‘wp_’ with your actual table prefix.

    It will list all the discussion specific settings and allow you modify there.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: bp_core_signup_user set a role #27036

    Hi Jennifer,

    You will need to activate an account(or the user will need to do so).

    You can activate using bp_core_activate_signup($key)
    The key is stored in the user meta using ‘activation_key’.

    If you are on non multisite, you can access this key and activate the user in your first function just before you are returning the result.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Changing slug name of "Gallery" #27035

    Hi Kyle,
    Welcome to BuddyDev forums.

    If you want to change the tab label, you will need to translate it.

    There are multiple ways to translate.

    A simple way to translate will be to use poedit.

    Please open “mediapress/languages/mediapress-en_US.po” in poedit.
    search for “Gallery %d
    and change that with your desired label.

    After that, Please save the file. A new “mo” file will be generated with the name “mediapress-en_US.mo”.

    Please move this file to your wp-content/languages/plugins directory. It will change te label(I have assumed your locale to be en_US, If it is different, Please change the last part to that specific locale).

    Another way to translate will be to use any of the translation plugins for WordPress and translate that string. That will work too.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: bp_core_signup_user set a role #27032

    Hi Jennifer,
    How does the user activate their account?

    The code applies role on account activation. Please let me know how it works and I will be able to assist.,

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: bp_core_signup_user set a role #27025

    Hi Jennifer,
    Thank you for sharing the code.

    I have updated it slightly and it should work.

    
    
    add_action( 'quform_post_process_7', function ( array $result, Quform_Form $form ) {
    	if ( ! function_exists( 'bp_core_signup_user' ) ) {
    		return;
    	}
    	$username = $form->getValueText( 'quform_7_6' );
    	$email    = $form->getValueText( 'quform_7_6' );
    	$password = $form->getValueText( 'quform_7_7' );
    
    	// XProfile fields
    	$usermeta = array(
    		'field_1'  => $form->getValueText( 'quform_7_10' ),
    		//correo
    		'field_43' => $form->getValueText( 'quform_7_6' ),
    	);
    
    	$usermeta['profile_field_ids'] = '1,43';
    	$usermeta['password']          = wp_hash_password( $password );
    
    	$user_id = bp_core_signup_user( $username, $password, $email, $usermeta );
    	if ( $user_id ) {
    		update_user_meta( $user_id, '_is_shop_manager', 1 );
    	}
    
    	return $result;
    }, 10, 2 );
    
    function after_bp_activated_user( $user_id, $key, $user ) {
    	$user = get_userdata( $user_id );
    
    	$role = 'shop_manager';// please changew ith correct role.
    
    	$is_shopmanager = get_user_meta( $user_id, '_is_shop_manager', true );
    	if ( $is_shopmanager ) {
    		$user->set_role( $role );
    	}
    }
    
    add_action( 'bp_core_activated_user', 'after_bp_activated_user', 30, 2 );
    
    

    Please make sure to use correct role in the 2nd function. Also, It will only work on non multisite installation as on multisite ‘bp_core_signup_user’ does not return the user id correctly(currently).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: [Resolved] BuddyPress Course Stats Widget #27024

    Hi,
    You are most probably using a LMS and that is causing it. Please look into your plugins list and see if there is anything related to LMS, try disabling it temporarily to try the customize again.

    If that resolves it, Please report to the plugin author.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: [Resolved] Hide in BuddyPress Activity ShortCode #27022

    You are welcome.