Replies
- Tosin on June 6, 2022 at 7:16 pm in reply to: [Resolved] Buddyblog change author if post is published in a specific category #45196
will be expecting your feed back sir.
thanks
- Tosin on June 3, 2022 at 2:20 pm in reply to: [Resolved] Buddyblog change author if post is published in a specific category #45182
1. No I dont want to limit the scope, this update should be applicable to all forms
2. Yes i’m referring to post category (category id = 1487) while use ID that will inherit the submitted post = 4766806
Thanks
- Tosin on June 1, 2022 at 7:05 am in reply to: [Resolved] Buddyblog change author if post is published in a specific category #45153
Kind reminder sir
Thanks
- Tosin on May 30, 2022 at 1:00 pm in reply to: BuddyPress Auto Friendship Pro + BuddyPress Featured Members Feature Suggestion #45135
I want new users to be friends with all the featured members.
- Tosin on May 23, 2022 at 12:59 pm in reply to: [Resolved] Buddyblog change author if post is published in a specific category #45059
I already tested the code but it did not work
- Tosin on May 23, 2022 at 9:31 am in reply to: [Resolved] Buddyblog change author if post is published in a specific category #45053
Hello Brajesh,
Please any update thanks a lot
- Tosin on May 19, 2022 at 11:59 am in reply to: [Resolved] Buddyblog change author if post is published in a specific category #45017
Gentle reminder sir
Thanks
- Tosin on May 15, 2022 at 5:09 pm in reply to: [Resolved] Buddypress confirm action on registration exit #44970
Ohh! cool
thanks Brajesh
- Tosin on May 14, 2022 at 1:22 pm in reply to: [Resolved] Redirect users immediately after profile photo upload #44949
It did not work after photo upload
This is my code
add_action( 'bp_enqueue_scripts', function () { // you can set the url value to anything. $url = site_url( '/refer-friends/' ); ob_start(); ?> bp.Avatar.Attachment.on( 'change:url', function( data ) { if( data.get('object') == 'user' ) { window.location="<?php echo esc_url( $url ); ?>"; } } ); <?php $script = ob_get_clean(); wp_add_inline_script( 'bp-avatar', $script, 'after' ); }, 100 );
- Tosin on May 13, 2022 at 6:00 pm in reply to: [Resolved] Redirect users immediately after profile photo upload #44943
I also tried this but did not work
It also seems that profile photo is uploaded via ajax so would a redirect be possible
function redirect_after_avatar_upload() { if ( ! function_exists( 'buddypress' ) ) { return; } // check for user's last activity. $last_activity = bp_get_user_last_activity( $user->ID ); if ( empty( $last_activity ) ) { $page_url = site_url( '/onboard-invite-friends/' ); bp_core_redirect($page_url); } } add_action('xprofile_avatar_uploaded','redirect_after_avatar_upload' );