Replies
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
- Tosin on August 2, 2022 at 9:23 pm in reply to: buddyblog medium editor not displaying embeds #45905
Thanks Brajesh will be expecting your feedback
- Tosin on July 31, 2022 at 8:27 pm in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #45886
Hello Ravi,
Can multiple products be assigned for different pricing
PRODUCT A – 7 DAYS SPONSORED POST PRICED AT $25
PRODUCT B – 30 DAYS SPONSORED POST PRICED AT $100
PRODUCT C – 60 DAYS SPONSORED POST PRICED AT $180SUBMISSION TYPE WILL NOW HAVE 4 DROPDOWN OPTIONS
1. FREE POST
2. 7 DAYS SPONSORED POST – $25
3. 30 DAYS SPONSORED POST – $100
4. 60 DAYS SPONSORED POST PRICED AT $180 WordPress’s oembed would have been the best resolution