Replies
Hello Casten,
Thank you for posting here. Please try the following code:
add_filter( 'bp_get_the_profile_group_name', function ( $name ) { if ( ! bp_is_my_profile() && ! is_super_admin() ) { return $name; } global $group; if ( bp_is_user_profile() && ! bp_is_user_profile_edit() ) { $edit_link = bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/' . $group->id; $name = sprintf( '<a href="%s">%s</a>', $edit_link, $name ); } return $name; } );
Please give a try
Regards
RaviHello Carsten,
Thank you for posting here. Please contact your theme author he can help you in a better way with the issue.
Regards
Ravi- Ravi on February 17, 2022 at 5:48 am in reply to: Can’t get WordPress Username Availability Checker to work with my form #43277
Hello Connor,
Welcome to the Buddydev Forums. Please point me to the site so that I can check.
Regards
Ravi - Ravi on February 17, 2022 at 5:34 am in reply to: Auto Friendship Pro not add follow on create new user after Buddypress udapte #43275
Hello,
Sorry for missing your last reply. The current version of the plugin does not this kind of functionality. But in a future release we working on a solution so that user can be synced we will be let you know.
Regards
Ravi - Ravi on February 17, 2022 at 5:29 am in reply to: [Resolved] Upload content only users or modeators #43274
Hello Carlo,
Thank you for posting here. Have you tried the following plugin:
https://github.com/mediapress/mpp-global-shared-gallery/archive/refs/heads/master.zip
It allows the gallery to be shared so that any other site user can upload content to the shared gallery.
Please let me know if helps or not.
Regards
Ravi - Ravi on February 17, 2022 at 5:22 am in reply to: Buddypress Auto-Follow from other registeration page #43273
Hello Iken,
Thank you for the explanation. As per the explanation what I am getting is you need two on User Profile one for MLM Parent with count and the second one is Direct Referrals. Am I getting correctly your points?.
If yes, please let me know the shortcodes or functions for getting MLM direct users and direct referrals users as I am not familiar with the ultimate membership API so that I can help.
Regards
Ravi - Ravi on February 16, 2022 at 2:03 pm in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #43250
Hello Tosin,
Sorry for the inconvenience. I have checked this and it is working fine for me. Please try after commenting custom code if any for pay per post then give it a try.
If still facing the issue please try to debug with the following function ‘bblpro_ppp_get_products’ for getting products based on the search string.
Regards
Ravi - Ravi on February 16, 2022 at 1:43 pm in reply to: [Resolved] Auto Join not working for new users #43248
Hello Raymond,
Thank you for the acknowledgment. I am glad that I could help.
Regards
Ravi - Ravi on February 16, 2022 at 1:41 pm in reply to: Buddypress Auto-Follow from other registeration page #43247
Hello,
Please try the following code:
/** * Get affiliates users * * @return array */ function buddydev_get_affiliates_users() { if ( ! class_exists( 'UAP_Main' ) ) { return array(); } global $indeed_db; $affiliates = $indeed_db->get_affiliates( - 1, - 1, false, '', '', array() ); if ( ! $affiliates ) { return array(); } $users = array(); foreach ( $affiliates as $affiliate ) { $users[ $affiliate['uid'] ] = $affiliate['name']; } return $users; } add_action( 'uap_register_form_before_submit_button', function () { $affiliate_users = buddydev_get_affiliates_users(); ?> <div class="uap-form-line-register uap-form-uap_affiliate_user"> <?php if ( $affiliate_users ) : ?> <label for="uap_affiliate_user" class="uap-labels-register"><?php _e( 'Affiliate User' ); ?></label> <select name="uap_affiliate_user" id="uap_affiliate_user" class="uap-form-element uap-form-element-select" tabindex="-1" aria-hidden="true"> <option value=""><?php _e( 'Choose from affiliate users' ) ?></option> <?php foreach ( $affiliate_users as $user_id => $name ) : ?> <option value="<?php echo esc_attr( $user_id ); ?>"><?php echo esc_html( $name ); ?></option> <?php endforeach; ?> </select> <?php endif; ?> </div> <?php } ); add_action( 'uap_on_register_action', function ( $user_id ) { // No checking nonce as action fire after checking nonce. if ( empty( $_POST['uap_affiliate_user'] ) || ! function_exists( 'bp_follow_start_following' ) ) { return; } $args = array( 'leader_id' => absint( $_POST['uap_affiliate_user'] ), 'follower_id' => $user_id, ); if ( ! bp_follow_is_following( $args ) ) { bp_follow_start_following( $args ); } } );
For automatically follow selected affiliate user on the register.
Regards
Ravi - Ravi on February 15, 2022 at 9:56 am in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #43209
Hello Niculae,
Thank you for your patience. I have updated the plugin. Now the edit post screen also redirects to the checkout page or whichever is selected in the admin. A new product will be added to the cart only if not existed for the post. Please give it a try after removing the old one and let me know if it works for you or not.
https://drive.google.com/file/d/12f56FU_N9VBsH-EIPxqg29gMhliUgN1V/view?usp=sharing
Regards
Ravi