Replies
What i mean is if a user has 5 post and decides to pay to get featured when the user tries to publish additional post I hope his profile would not be marked as unfeatured
Thanks Brajesh,
Just I use this addon https://github.com/buddydev/bpfm-woocommerce-addon I hope users who pay to get featured wouldn’t be affected by your code above.
Paying customers should should not be affected by post count
Yes sir
Thanks for your assistance
Thanks Brajesh
Can you improve this a little further to prevent user abuse especially when users publish below 25 posts
If post count = 25 mark user as featured
but
If user deletes a post and post count is below 25 mark user as unfeaturedKind reminder sir
Thanks
- Tosin on August 8, 2022 at 8:04 pm in reply to: BuddyPress Friends Suggestion Pro – Mutual Friends or Follow Suggestion #45955
Another option would be suggestions based on your friend/followers circle using your BuddyPress User Circles Plugin
- Tosin on August 8, 2022 at 9:18 am in reply to: [Resolved] BuddyPress Auto Friendship Pro + BuddyPress Featured Members (2) #45951
Thank you RAavi, the code worked perfectly
- Tosin on August 6, 2022 at 6:09 pm in reply to: [Resolved] BuddyPress Auto Friendship Pro + BuddyPress Featured Members (2) #45940
Just in case I have this code related to first login to prevent conflicts
/** * Redirect on first login and second login */ function redirect_user_on_first_login( $user_login, $user ) { if ( ! function_exists( 'buddypress' ) ) { return; } // check for user's last activity. $last_activity = bp_get_user_last_activity( $user->ID ); if ( empty( $last_activity ) ) { update_user_meta( $user->ID, '_user_first_login', 1 ); // Redirect you custom page. bp_core_redirect( bp_get_root_domain() . '/complete-profile/' ); } elseif ( get_user_meta( $user->ID, '_user_first_login', true ) ) { delete_user_meta( $user->ID, '_user_first_login' ); // Try second login here. bp_core_redirect( bp_get_root_domain() . '/create-content/' ); } } add_action( 'wp_login', 'redirect_user_on_first_login', 0, 2 );
I made a rough attempt
add_action( 'publish_post', function () { $site_users = get_users( array( 'fields' => 'ID' ) ); $users_post_count = ts_get_user_posts_count($site_users, array( 'post_type' =>'post', 'post_status'=> 'published' )); if ( 24 > $users_post_count ) { return; } bp_featured_members()->add_user( $user_id ); } );
- Tosin on August 4, 2022 at 8:17 am in reply to: buddyblog medium editor not displaying embeds #45918
Hello Brajesh,
What’s you thought on this im not sure if it makes any sense. would it make sense to remove the inline button only for video urls and embeds and rather use a seperate dedicated input like the post title input for video links. for example see image below