Replies
- Brajesh Singh on December 19, 2019 at 5:41 am in reply to: Maintain Xprofile fields when registering via Google Account #27049
Hi Daniel,
Please have a look at the BuddyPress profile completion plugin
https://wordpress.org/plugins/buddypress-profile-completion/It may help.
Regards
Brajesh - Brajesh Singh on December 17, 2019 at 2:05 pm 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 - Brajesh Singh on December 17, 2019 at 7:29 am 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 - Brajesh Singh on December 16, 2019 at 9:56 pm in reply to: DISCUSSION "comment" SETTINGS 'saved changes are not taking effect at all' #27037
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 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
BrajeshHi 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
BrajeshHi 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
BrajeshHi 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- Brajesh Singh on December 14, 2019 at 5:20 am 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 - Brajesh Singh on December 14, 2019 at 5:17 am in reply to: [Resolved] Hide in BuddyPress Activity ShortCode #27022
You are welcome.